[gtk+/wip/baedert/box: 3/29] filechooserbutton: Remove deprecated API



commit 0985a2ae71750fded606820603c09c7b99aefbcb
Author: Timm Bäder <mail baedert org>
Date:   Fri Oct 14 21:19:33 2016 +0200

    filechooserbutton: Remove deprecated API

 docs/reference/gtk/gtk4-sections.txt |    2 -
 gtk/gtkfilechooserbutton.c           |   46 ----------------------------------
 gtk/gtkfilechooserbutton.h           |    5 ---
 3 files changed, 0 insertions(+), 53 deletions(-)
---
diff --git a/docs/reference/gtk/gtk4-sections.txt b/docs/reference/gtk/gtk4-sections.txt
index e87992e..4d95329 100644
--- a/docs/reference/gtk/gtk4-sections.txt
+++ b/docs/reference/gtk/gtk4-sections.txt
@@ -1457,8 +1457,6 @@ 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_focus_on_click
-gtk_file_chooser_button_set_focus_on_click
 
 <SUBSECTION Standard>
 GTK_FILE_CHOOSER_BUTTON
diff --git a/gtk/gtkfilechooserbutton.c b/gtk/gtkfilechooserbutton.c
index d201db9..9eddb10 100644
--- a/gtk/gtkfilechooserbutton.c
+++ b/gtk/gtkfilechooserbutton.c
@@ -41,7 +41,6 @@
 #include "gtkimage.h"
 #include "gtklabel.h"
 #include "gtkliststore.h"
-#include "deprecated/gtkstock.h"
 #include "gtktreemodelfilter.h"
 #include "gtkseparator.h"
 #include "gtkfilechooserdialog.h"
@@ -3119,48 +3118,3 @@ gtk_file_chooser_button_set_width_chars (GtkFileChooserButton *button,
   gtk_label_set_width_chars (GTK_LABEL (button->priv->label), n_chars);
   g_object_notify (G_OBJECT (button), "width-chars");
 }
-
-/**
- * gtk_file_chooser_button_set_focus_on_click:
- * @button: a #GtkFileChooserButton
- * @focus_on_click: whether the button grabs focus when clicked with the mouse
- *
- * Sets whether the button will grab focus when it is clicked with the mouse.
- * Making mouse clicks not grab focus is useful in places like toolbars where
- * you don’t want the keyboard focus removed from the main area of the
- * application.
- *
- * Since: 2.10
- *
- * Deprecated: 3.20: Use gtk_widget_set_focus_on_click() instead
- */
-void
-gtk_file_chooser_button_set_focus_on_click (GtkFileChooserButton *button,
-                                           gboolean              focus_on_click)
-{
-  g_return_if_fail (GTK_IS_FILE_CHOOSER_BUTTON (button));
-
-  gtk_widget_set_focus_on_click (GTK_WIDGET (button), focus_on_click);
-}
-
-/**
- * gtk_file_chooser_button_get_focus_on_click:
- * @button: a #GtkFileChooserButton
- *
- * Returns whether the button grabs focus when it is clicked with the mouse.
- * See gtk_file_chooser_button_set_focus_on_click().
- *
- * Returns: %TRUE if the button grabs focus when it is clicked with
- *               the mouse.
- *
- * Since: 2.10
- *
- * Deprecated: 3.20: Use gtk_widget_get_focus_on_click() instead
- */
-gboolean
-gtk_file_chooser_button_get_focus_on_click (GtkFileChooserButton *button)
-{
-  g_return_val_if_fail (GTK_IS_FILE_CHOOSER_BUTTON (button), FALSE);
-
-  return gtk_widget_get_focus_on_click (GTK_WIDGET (button));
-}
diff --git a/gtk/gtkfilechooserbutton.h b/gtk/gtkfilechooserbutton.h
index bf0fe91..19eaa9b 100644
--- a/gtk/gtkfilechooserbutton.h
+++ b/gtk/gtkfilechooserbutton.h
@@ -87,11 +87,6 @@ gint                  gtk_file_chooser_button_get_width_chars  (GtkFileChooserBu
 GDK_AVAILABLE_IN_ALL
 void                  gtk_file_chooser_button_set_width_chars  (GtkFileChooserButton *button,
                                                                gint                  n_chars);
-GDK_DEPRECATED_IN_3_20_FOR(gtk_widget_get_focus_on_click)
-gboolean              gtk_file_chooser_button_get_focus_on_click (GtkFileChooserButton *button);
-GDK_DEPRECATED_IN_3_20_FOR(gtk_widget_set_focus_on_click)
-void                  gtk_file_chooser_button_set_focus_on_click (GtkFileChooserButton *button,
-                                                                  gboolean              focus_on_click);
 
 G_END_DECLS
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]