summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Pacaud <emmanuel@gnome.org>2015-08-26 01:11:04 +0200
committerFelix Riemann <friemann@gnome.org>2015-08-28 22:08:29 +0200
commita48af02cb389d6064947fee7421ba820213429b1 (patch)
treeecbcb3c8a5f7a2b167d6bb7746e7bde63b4bb164
parentef626dc9094d191d55a9cba854380696cadd7627 (diff)
downloadeog-a48af02cb389d6064947fee7421ba820213429b1.tar.gz
EogCloseConfirmationDialog: fix deprecation warning
This function doesn't seem to be used by eog itself, nor the included plugins. May be a good candidate for code removal, unless it is a plugin public API.
-rw-r--r--src/eog-close-confirmation-dialog.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/eog-close-confirmation-dialog.c b/src/eog-close-confirmation-dialog.c
index da6c09cf..d206a155 100644
--- a/src/eog-close-confirmation-dialog.c
+++ b/src/eog-close-confirmation-dialog.c
@@ -743,12 +743,13 @@ void
eog_close_confirmation_dialog_set_sensitive (EogCloseConfirmationDialog *dlg,
gboolean value)
{
- GtkWidget *action_area;
-
g_return_if_fail (EOG_IS_CLOSE_CONFIRMATION_DIALOG (dlg));
- action_area = gtk_dialog_get_action_area (GTK_DIALOG (dlg));
- gtk_widget_set_sensitive (action_area, value);
+ /* To keep in sync with add_buttons () */
+ gtk_dialog_set_response_sensitive (GTK_DIALOG (dlg), EOG_CLOSE_CONFIRMATION_DIALOG_RESPONSE_CLOSE, value);
+ gtk_dialog_set_response_sensitive (GTK_DIALOG (dlg), EOG_CLOSE_CONFIRMATION_DIALOG_RESPONSE_CANCEL, value);
+ gtk_dialog_set_response_sensitive (GTK_DIALOG (dlg), EOG_CLOSE_CONFIRMATION_DIALOG_RESPONSE_SAVE, value);
+ gtk_dialog_set_response_sensitive (GTK_DIALOG (dlg), EOG_CLOSE_CONFIRMATION_DIALOG_RESPONSE_SAVEAS, value);
if (dlg->priv->toggle_renderer)
gtk_cell_renderer_toggle_set_activatable (GTK_CELL_RENDERER_TOGGLE (dlg->priv->toggle_renderer), value);