From eb9c204535962fd2918d1338a292a42b32c3ae10 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 2 Dec 2020 20:15:28 +0100 Subject: gtk: Remove GtkFileChooserButton ... as discussed in the meeting. --- docs/reference/gtk/gtk4-docs.xml | 1 - docs/reference/gtk/gtk4-sections.txt | 25 -------------------- docs/reference/gtk/gtk4.types.in | 1 - docs/tools/widgets.c | 46 ------------------------------------ 4 files changed, 73 deletions(-) (limited to 'docs') diff --git a/docs/reference/gtk/gtk4-docs.xml b/docs/reference/gtk/gtk4-docs.xml index 25ed9eebd7..faae8a2de6 100644 --- a/docs/reference/gtk/gtk4-docs.xml +++ b/docs/reference/gtk/gtk4-docs.xml @@ -283,7 +283,6 @@ - diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt index c6e8f87a58..faad758464 100644 --- a/docs/reference/gtk/gtk4-sections.txt +++ b/docs/reference/gtk/gtk4-sections.txt @@ -1339,31 +1339,6 @@ gtk_file_chooser_widget_get_type GtkFileChooserWidgetPrivate -
-gtkfilechooserbutton -GtkFileChooserButton -GtkFileChooserButton -gtk_file_chooser_button_new -gtk_file_chooser_button_new_with_dialog -gtk_file_chooser_button_get_title -gtk_file_chooser_button_set_title -gtk_file_chooser_button_get_width_chars -gtk_file_chooser_button_set_width_chars -gtk_file_chooser_button_get_modal -gtk_file_chooser_button_set_modal - - -GTK_FILE_CHOOSER_BUTTON -GTK_IS_FILE_CHOOSER_BUTTON -GTK_TYPE_FILE_CHOOSER_BUTTON -GTK_FILE_CHOOSER_BUTTON_CLASS -GTK_IS_FILE_CHOOSER_BUTTON_CLASS -GTK_FILE_CHOOSER_BUTTON_GET_CLASS - -gtk_file_chooser_button_get_type -GtkFileChooserButtonPrivate -
-
gtkfilefilter GtkFileFilter diff --git a/docs/reference/gtk/gtk4.types.in b/docs/reference/gtk/gtk4.types.in index 5981ffb897..9bc79517f7 100644 --- a/docs/reference/gtk/gtk4.types.in +++ b/docs/reference/gtk/gtk4.types.in @@ -87,7 +87,6 @@ gtk_event_controller_motion_get_type gtk_event_controller_scroll_get_type gtk_every_filter_get_type gtk_expander_get_type -gtk_file_chooser_button_get_type gtk_file_chooser_dialog_get_type gtk_file_chooser_get_type gtk_file_chooser_native_get_type diff --git a/docs/tools/widgets.c b/docs/tools/widgets.c index 51889d8e96..884939adb5 100644 --- a/docs/tools/widgets.c +++ b/docs/tools/widgets.c @@ -615,51 +615,6 @@ create_font_button (void) return new_widget_info ("font-button", vbox, SMALL); } -static WidgetInfo * -create_file_button (void) -{ - GtkWidget *vbox; - GtkWidget *vbox2; - GtkWidget *picker; - char *path; - GFile *file; - - vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12); - vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 3); - picker = gtk_file_chooser_button_new ("File Chooser Button", - GTK_FILE_CHOOSER_ACTION_OPEN); - gtk_widget_set_size_request (picker, 150, -1); - gtk_widget_set_halign (picker, GTK_ALIGN_CENTER); - gtk_widget_set_valign (picker, GTK_ALIGN_CENTER); - gtk_box_append (GTK_BOX (vbox2), picker); - gtk_box_append (GTK_BOX (vbox2), - gtk_label_new ("File Button (Files)")); - - gtk_box_append (GTK_BOX (vbox), - vbox2); - gtk_box_append (GTK_BOX (vbox), - gtk_separator_new (GTK_ORIENTATION_HORIZONTAL)); - - vbox2 = gtk_box_new (GTK_ORIENTATION_VERTICAL, 3); - picker = gtk_file_chooser_button_new ("File Chooser Button", - GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER); - gtk_widget_set_size_request (picker, 150, -1); - path = g_build_filename (g_get_home_dir (), "Documents", NULL); - file = g_file_new_for_path (path); - gtk_file_chooser_set_file (GTK_FILE_CHOOSER (picker), file, NULL); - g_free (path); - g_object_unref (file); - gtk_widget_set_halign (picker, GTK_ALIGN_CENTER); - gtk_widget_set_valign (picker, GTK_ALIGN_CENTER); - gtk_box_append (GTK_BOX (vbox2), picker); - gtk_box_append (GTK_BOX (vbox2), gtk_label_new ("File Button (Select Folder)")); - gtk_box_append (GTK_BOX (vbox), vbox2); - - add_margin (vbox); - - return new_widget_info ("file-button", vbox, MEDIUM); -} - static WidgetInfo * create_editable_label (void) { @@ -2144,7 +2099,6 @@ get_all_widgets (void) retval = g_list_prepend (retval, create_combo_box_entry ()); retval = g_list_prepend (retval, create_combo_box_text ()); retval = g_list_prepend (retval, create_entry ()); - retval = g_list_prepend (retval, create_file_button ()); retval = g_list_prepend (retval, create_font_button ()); retval = g_list_prepend (retval, create_frame ()); retval = g_list_prepend (retval, create_icon_view ()); -- cgit v1.2.1