1 /* dzl-file-chooser-entry.h 2 * 3 * Copyright (C) 2016 Christian Hergert <chergert@redhat.com> 4 * 5 * This file is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; either 8 * version 2.1 of the License, or (at your option) any later version. 9 * 10 * This file is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 */ 18 19 #ifndef DZL_FILE_CHOOSER_ENTRY_H 20 #define DZL_FILE_CHOOSER_ENTRY_H 21 22 #include <gtk/gtk.h> 23 24 #include "dzl-version-macros.h" 25 26 G_BEGIN_DECLS 27 28 #define DZL_TYPE_FILE_CHOOSER_ENTRY (dzl_file_chooser_entry_get_type()) 29 30 DZL_AVAILABLE_IN_ALL 31 G_DECLARE_DERIVABLE_TYPE (DzlFileChooserEntry, dzl_file_chooser_entry, DZL, FILE_CHOOSER_ENTRY, GtkBin) 32 33 struct _DzlFileChooserEntryClass 34 { 35 GtkBinClass parent_class; 36 37 gpointer _reserved1; 38 gpointer _reserved2; 39 gpointer _reserved3; 40 gpointer _reserved4; 41 }; 42 43 DZL_AVAILABLE_IN_3_30 44 GtkWidget *dzl_file_chooser_entry_new (const gchar *title, 45 GtkFileChooserAction action); 46 DZL_AVAILABLE_IN_ALL 47 GFile *dzl_file_chooser_entry_get_file (DzlFileChooserEntry *self); 48 DZL_AVAILABLE_IN_ALL 49 void dzl_file_chooser_entry_set_file (DzlFileChooserEntry *self, 50 GFile *file); 51 DZL_AVAILABLE_IN_3_32 52 GtkEntry *dzl_file_chooser_entry_get_entry (DzlFileChooserEntry *self); 53 54 G_END_DECLS 55 56 #endif /* DZL_FILE_CHOOSER_ENTRY_H */ 57