diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-01-08 07:41:35 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-01-08 07:41:35 (GMT) |
commit | 50a4c165df49b04fe55278d5dcfa6b56d3cc1125 (patch) | |
tree | 7f5423b1cadfd6d11a73fdfdc75d92b44be62b88 | |
parent | 61a99411489f30089fc5a85b07ca7251f720ca1a (diff) |
Removed deprecation warnings about gtk_dialog_get_action_area().
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@451 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | src/dialogs/goto.c | 13 | ||||
-rw-r--r-- | src/dialogs/storage.c | 13 |
3 files changed, 10 insertions, 22 deletions
@@ -1,5 +1,11 @@ 15-01-08 Cyrille Bagard <nocbos@gmail.com> + * src/dialogs/goto.c: + * src/dialogs/storage.c: + Remove deprecation warnings about gtk_dialog_get_action_area(). + +15-01-08 Cyrille Bagard <nocbos@gmail.com> + * src/dialogs/about.c: * src/dialogs/plugins.c: * src/dialogs/shellcode.c: diff --git a/src/dialogs/goto.c b/src/dialogs/goto.c index 537179e..dc607d0 100644 --- a/src/dialogs/goto.c +++ b/src/dialogs/goto.c @@ -150,8 +150,6 @@ GtkWidget *create_goto_dialog(GtkWindow *parent) GtkWidget *entry; /* Zone de saisie principale */ GtkWidget *hbox; /* Support à construire #2 */ GtkWidget *radio; /* Définition de localisation */ - GtkWidget *action_area; /* Zone de contrôle */ - GtkWidget *button; /* Bouton de contrôle */ result = gtk_dialog_new(); gtk_window_set_title(GTK_WINDOW(result), _("Go to address")); @@ -204,15 +202,8 @@ GtkWidget *create_goto_dialog(GtkWindow *parent) /* Zone de validation */ - action_area = gtk_dialog_get_action_area(GTK_DIALOG(result)); - gtk_widget_show(action_area); - gtk_button_box_set_layout(GTK_BUTTON_BOX(action_area), GTK_BUTTONBOX_END); - - button = qck_create_button(NULL, NULL, _("_Cancel"), NULL, NULL); - gtk_dialog_add_action_widget(GTK_DIALOG(result), button, GTK_RESPONSE_CANCEL); - - button = qck_create_button(NULL, NULL, _("_Ok"), NULL, NULL); - gtk_dialog_add_action_widget(GTK_DIALOG(result), button, GTK_RESPONSE_OK); + gtk_dialog_add_button(GTK_DIALOG(result), _("_Cancel"), GTK_RESPONSE_CANCEL); + gtk_dialog_add_button(GTK_DIALOG(result), _("_Ok"), GTK_RESPONSE_OK); gtk_entry_set_text(GTK_ENTRY(entry), "0x"); gtk_widget_grab_focus (entry); diff --git a/src/dialogs/storage.c b/src/dialogs/storage.c index e334f2d..3db3d97 100644 --- a/src/dialogs/storage.c +++ b/src/dialogs/storage.c @@ -194,8 +194,6 @@ GtkWidget *create_storage_dialog(GLoadedBinary *binary, GtkWindow *parent) GtkWidget *subvbox; /* Support à construire #3 */ GtkWidget *scrolledwindow; /* Zone de défilement */ GtkWidget *treeview; /* Liste des fonctionnalités */ - GtkWidget *action_area; /* Zone de contrôle inférieure */ - GtkWidget *button; /* Bouton de contrôle */ result = gtk_dialog_new(); gtk_window_set_title(GTK_WINDOW(result), _("Storage")); @@ -279,15 +277,8 @@ GtkWidget *create_storage_dialog(GLoadedBinary *binary, GtkWindow *parent) /* Zone de contrôle */ - action_area = gtk_dialog_get_action_area(GTK_DIALOG(result)); - gtk_widget_show(action_area); - gtk_button_box_set_layout(GTK_BUTTON_BOX(action_area), GTK_BUTTONBOX_END); - - button = qck_create_button(NULL, NULL, _("_Cancel"), NULL, NULL); - gtk_dialog_add_action_widget(GTK_DIALOG(result), button, GTK_RESPONSE_CANCEL); - - button = qck_create_button(NULL, NULL, _("_Ok"), G_CALLBACK(save_storage_params), result); - gtk_dialog_add_action_widget(GTK_DIALOG(result), button, GTK_RESPONSE_OK); + gtk_dialog_add_button(GTK_DIALOG(result), _("_Cancel"), GTK_RESPONSE_CANCEL); + gtk_dialog_add_button(GTK_DIALOG(result), _("_Ok"), GTK_RESPONSE_OK); /* Chargement des données actuelles */ |