diff options
author | raveit65 <[email protected]> | 2018-07-22 22:12:40 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-07-23 23:14:12 +0200 |
commit | 9593351e473942268e6297011634d75246d4e246 (patch) | |
tree | 80eae6dba35922cf4916720fe8b0fbf322d72084 /src/eom-close-confirmation-dialog.c | |
parent | 704107b490aa9e33ac805f08af8f9a9f35b0bb75 (diff) | |
download | eom-9593351e473942268e6297011634d75246d4e246.tar.bz2 eom-9593351e473942268e6297011634d75246d4e246.tar.xz |
Drop eom_close_confirmation_dialog_set_sensitive
This internal function is only used at one place.
No need to set the dialog buttons insensitive after
save-image is executed.
As result we don't use deprecated gtk_dialog_get_action_area
inspired by comment from
https://gitlab.gnome.org/GNOME/eog/commit/a48af02
Diffstat (limited to 'src/eom-close-confirmation-dialog.c')
-rw-r--r-- | src/eom-close-confirmation-dialog.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/eom-close-confirmation-dialog.c b/src/eom-close-confirmation-dialog.c index 0192124..004bc2c 100644 --- a/src/eom-close-confirmation-dialog.c +++ b/src/eom-close-confirmation-dialog.c @@ -676,17 +676,3 @@ eom_close_confirmation_dialog_get_unsaved_images (EomCloseConfirmationDialog *dl return dlg->priv->unsaved_images; } -void -eom_close_confirmation_dialog_set_sensitive (EomCloseConfirmationDialog *dlg, - gboolean value) -{ - GtkWidget *action_area; - - g_return_if_fail (EOM_IS_CLOSE_CONFIRMATION_DIALOG (dlg)); - - action_area = gtk_dialog_get_action_area (GTK_DIALOG (dlg)); - gtk_widget_set_sensitive (action_area, value); - - if (dlg->priv->toggle_renderer) - gtk_cell_renderer_toggle_set_activatable (GTK_CELL_RENDERER_TOGGLE (dlg->priv->toggle_renderer), value); -} |