[file-roller] code clean-up



commit f89d1fd73a5b1934efd7b4885a98a0933a11c84b
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Sun Feb 15 16:08:17 2015 +0100

    code clean-up

 src/dlg-ask-password.c |    4 +---
 src/dlg-delete.c       |    2 +-
 2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/dlg-ask-password.c b/src/dlg-ask-password.c
index eea5cc4..492331e 100644
--- a/src/dlg-ask-password.c
+++ b/src/dlg-ask-password.c
@@ -98,7 +98,6 @@ dlg_ask_password__common (FrWindow       *window,
 {
        DialogData *data;
        GFile      *file;
-       GtkWidget  *content_area;
        const char *old_password;
        char       *filename;
        char       *message;
@@ -119,8 +118,7 @@ dlg_ask_password__common (FrWindow       *window,
                                     "modal", TRUE,
                                     "use-header-bar", _gtk_settings_get_dialogs_use_header (),
                                     NULL);
-       content_area = gtk_dialog_get_content_area (GTK_DIALOG (data->dialog));
-       gtk_container_add (GTK_CONTAINER (content_area),
+       gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (data->dialog))),
                           GET_WIDGET ("password_vbox"));
        gtk_dialog_add_buttons (GTK_DIALOG (data->dialog),
                                _GTK_LABEL_CANCEL, GTK_RESPONSE_CANCEL,
diff --git a/src/dlg-delete.c b/src/dlg-delete.c
index f39c29b..eea8e70 100644
--- a/src/dlg-delete.c
+++ b/src/dlg-delete.c
@@ -137,7 +137,7 @@ dlg_delete__common (FrWindow *window,
                                NULL);
 
        ok_button = gtk_dialog_get_widget_for_response (GTK_DIALOG (data->dialog), GTK_RESPONSE_OK);
-       gtk_style_context_add_class (gtk_widget_get_style_context (ok_button), "destructive-action");
+       gtk_style_context_add_class (gtk_widget_get_style_context (ok_button), 
GTK_STYLE_CLASS_DESTRUCTIVE_ACTION);
 
        delete_box = _gtk_builder_get_widget (data->builder, "delete_box");
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]