diff options
author | Benjamin Otte <otte@redhat.com> | 2020-12-02 20:15:28 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2020-12-03 02:02:27 +0100 |
commit | eb9c204535962fd2918d1338a292a42b32c3ae10 (patch) | |
tree | 07dc41846236d40de9a232678b9a0f627abe5f6c /docs | |
parent | a51f11999a13998c190856951c9a0ae98b824954 (diff) | |
download | gtk+-eb9c204535962fd2918d1338a292a42b32c3ae10.tar.gz |
gtk: Remove GtkFileChooserButton
... as discussed in the meeting.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/reference/gtk/gtk4-docs.xml | 1 | ||||
-rw-r--r-- | docs/reference/gtk/gtk4-sections.txt | 25 | ||||
-rw-r--r-- | docs/reference/gtk/gtk4.types.in | 1 | ||||
-rw-r--r-- | docs/tools/widgets.c | 46 |
4 files changed, 0 insertions, 73 deletions
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 @@ <xi:include href="xml/gtkcolorchooserwidget.xml" /> <xi:include href="xml/gtkcolorchooserdialog.xml" /> <xi:include href="xml/gtkfilechooser.xml" /> - <xi:include href="xml/gtkfilechooserbutton.xml" /> <xi:include href="xml/gtkfilechoosernative.xml" /> <xi:include href="xml/gtkfilechooserdialog.xml" /> <xi:include href="xml/gtkfilechooserwidget.xml" /> 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 @@ -1340,31 +1340,6 @@ GtkFileChooserWidgetPrivate </SECTION> <SECTION> -<FILE>gtkfilechooserbutton</FILE> -<TITLE>GtkFileChooserButton</TITLE> -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 - -<SUBSECTION Standard> -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 -<SUBSECTION Private> -gtk_file_chooser_button_get_type -GtkFileChooserButtonPrivate -</SECTION> - -<SECTION> <FILE>gtkfilefilter</FILE> GtkFileFilter gtk_file_filter_new 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 @@ -616,51 +616,6 @@ create_font_button (void) } 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) { GtkWidget *vbox; @@ -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 ()); |