summaryrefslogtreecommitdiff
path: root/gtk/gtkfilechooserdialog.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-01-17 11:26:11 -0500
committerMatthias Clasen <mclasen@redhat.com>2014-01-17 17:52:07 -0500
commitabe29dd18862beba73309596dbb9e5b0587e5f16 (patch)
treefc0a33439c34f01e0e66c788505bcc2a37df7550 /gtk/gtkfilechooserdialog.c
parent32a290129417772954926cfdc42adcdfd68b2a94 (diff)
downloadgtk+-abe29dd18862beba73309596dbb9e5b0587e5f16.tar.gz
Update all internal users of gtk_dialog_get_action_area
Some of these should be revisited and fixed. For now, just avoid the deprecation warnings.
Diffstat (limited to 'gtk/gtkfilechooserdialog.c')
-rw-r--r--gtk/gtkfilechooserdialog.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkfilechooserdialog.c b/gtk/gtkfilechooserdialog.c
index f1169f7539..73c32f602a 100644
--- a/gtk/gtkfilechooserdialog.c
+++ b/gtk/gtkfilechooserdialog.c
@@ -291,7 +291,9 @@ file_chooser_widget_file_activated (GtkFileChooser *chooser,
/* There probably isn't a default widget, so make things easier for the
* programmer by looking for a reasonable button on our own.
*/
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
action_area = gtk_dialog_get_action_area (fc_dialog);
+G_GNUC_END_IGNORE_DEPRECATIONS
children = gtk_container_get_children (GTK_CONTAINER (action_area));
for (l = children; l; l = l->next)
@@ -393,7 +395,9 @@ file_chooser_widget_response_requested (GtkWidget *widget,
/* There probably isn't a default widget, so make things easier for the
* programmer by looking for a reasonable button on our own.
*/
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
action_area = gtk_dialog_get_action_area (fc_dialog);
+G_GNUC_END_IGNORE_DEPRECATIONS
children = gtk_container_get_children (GTK_CONTAINER (action_area));
for (l = children; l; l = l->next)
@@ -466,7 +470,9 @@ ensure_default_response (GtkFileChooserDialog *dialog)
{
GtkWidget *action_area;
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
action_area = gtk_dialog_get_action_area (GTK_DIALOG (dialog));
+G_GNUC_END_IGNORE_DEPRECATIONS
gtk_container_foreach (GTK_CONTAINER (action_area),
foreach_ensure_default_response_cb,
dialog);