diff options
Diffstat (limited to 'src/dialogs')
-rw-r--r-- | src/dialogs/goto.c | 13 | ||||
-rw-r--r-- | src/dialogs/storage.c | 13 |
2 files changed, 4 insertions, 22 deletions
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 */ |