From 50a4c165df49b04fe55278d5dcfa6b56d3cc1125 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Thu, 8 Jan 2015 07:41:35 +0000 Subject: 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 --- ChangeLog | 6 ++++++ src/dialogs/goto.c | 13 ++----------- src/dialogs/storage.c | 13 ++----------- 3 files changed, 10 insertions(+), 22 deletions(-) diff --git a/ChangeLog b/ChangeLog index d491401..6420043 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 15-01-08 Cyrille Bagard + * src/dialogs/goto.c: + * src/dialogs/storage.c: + Remove deprecation warnings about gtk_dialog_get_action_area(). + +15-01-08 Cyrille Bagard + * 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 */ -- cgit v0.11.2-87-g4458