[eog] EogCloseConfirmationDialog: fix deprecation warning
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] EogCloseConfirmationDialog: fix deprecation warning
- Date: Fri, 28 Aug 2015 20:08:54 +0000 (UTC)
commit a48af02cb389d6064947fee7421ba820213429b1
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Wed Aug 26 01:11:04 2015 +0200
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.
src/eog-close-confirmation-dialog.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/eog-close-confirmation-dialog.c b/src/eog-close-confirmation-dialog.c
index da6c09c..d206a15 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]