summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-autorun.c
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-05-13 02:09:36 +0200
committerlukefromdc <[email protected]>2018-05-18 14:03:16 -0400
commit6841bd73832a0f2373f38c3a99e341a9bcdc5db4 (patch)
tree8bd313d4635f64d13f705dcd09f09bb0def189bf /libcaja-private/caja-autorun.c
parentc31de771e227f69911b3666029a62aa1f70bf910 (diff)
downloadcaja-6841bd73832a0f2373f38c3a99e341a9bcdc5db4.tar.bz2
caja-6841bd73832a0f2373f38c3a99e341a9bcdc5db4.tar.xz
avoid deprecated 'gtk_dialog_get_action_area'
Diffstat (limited to 'libcaja-private/caja-autorun.c')
-rw-r--r--libcaja-private/caja-autorun.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/libcaja-private/caja-autorun.c b/libcaja-private/caja-autorun.c
index 23a153dd..e60fe8a6 100644
--- a/libcaja-private/caja-autorun.c
+++ b/libcaja-private/caja-autorun.c
@@ -943,6 +943,7 @@ do_autorun_for_content_type (GMount *mount, const char *x_content_type, CajaAuto
GtkWidget *always_check_button;
GtkWidget *eject_button;
GtkWidget *image;
+ GtkWidget *action_area;
char *markup;
char *content_description;
char *mount_name;
@@ -1150,10 +1151,10 @@ show_dialog:
"process-stop",
GTK_RESPONSE_CANCEL);
- eel_dialog_add_button (GTK_DIALOG (dialog),
- _("_OK"),
- "gtk-ok",
- GTK_RESPONSE_OK);
+ action_area = gtk_widget_get_parent (eel_dialog_add_button (GTK_DIALOG (dialog),
+ _("_OK"),
+ "gtk-ok",
+ GTK_RESPONSE_OK));
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
@@ -1179,7 +1180,7 @@ show_dialog:
data->should_eject = FALSE;
}
gtk_dialog_add_action_widget (GTK_DIALOG (dialog), eject_button, AUTORUN_DIALOG_RESPONSE_EJECT);
- gtk_button_box_set_child_secondary (GTK_BUTTON_BOX (gtk_dialog_get_action_area (GTK_DIALOG (dialog))), eject_button, TRUE);
+ gtk_button_box_set_child_secondary (GTK_BUTTON_BOX (action_area), eject_button, TRUE);
/* show the dialog */
gtk_widget_show_all (dialog);