[evolution-data-server/openismus-work-3-8: 96/116] drop GtkStock



commit 6006af2fbe7d8f5c691fe641ffdcef76c9ee5a23
Author: Yosef Or Boczko <yoseforb gmail com>
Date:   Thu Aug 1 02:15:02 2013 +0300

    drop GtkStock
    
    https://bugzilla.gnome.org/show_bug.cgi?id=705010

 modules/trust-prompt/certificate-viewer.c |    2 +-
 modules/trust-prompt/trust-prompt-gtk.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/modules/trust-prompt/certificate-viewer.c b/modules/trust-prompt/certificate-viewer.c
index f74d49c..bd1ea34 100644
--- a/modules/trust-prompt/certificate-viewer.c
+++ b/modules/trust-prompt/certificate-viewer.c
@@ -572,7 +572,7 @@ certificate_viewer_new (GtkWindow *parent,
        dialog = gtk_dialog_new_with_buttons (
                title, parent,
                GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL,
-               GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
+               _("_Close"), GTK_RESPONSE_CLOSE,
                NULL);
 
        g_free (title);
diff --git a/modules/trust-prompt/trust-prompt-gtk.c b/modules/trust-prompt/trust-prompt-gtk.c
index b986131..23d4f70 100644
--- a/modules/trust-prompt/trust-prompt-gtk.c
+++ b/modules/trust-prompt/trust-prompt-gtk.c
@@ -186,7 +186,7 @@ trust_prompt_show (EUserPrompterServerExtension *extension,
        widget = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
        gtk_container_add (GTK_CONTAINER (widget), GTK_WIDGET (grid));
 
-       widget = gtk_image_new_from_stock (GTK_STOCK_DIALOG_WARNING, GTK_ICON_SIZE_DIALOG);
+       widget = gtk_image_new_from_icon_name ("dialog-warning", GTK_ICON_SIZE_DIALOG);
        g_object_set (
                G_OBJECT (widget),
                "vexpand", FALSE,


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