[gnumeric] Dead kitten: more deprecation work.



commit 6253b6a60058a92d099a601f15942fccc517edd3
Author: Morten Welinder <terra gnome org>
Date:   Thu Jan 1 20:28:36 2015 -0500

    Dead kitten: more deprecation work.

 src/dialogs/dialog-password.c     |    4 ++--
 src/widgets/gnumeric-expr-entry.c |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/dialogs/dialog-password.c b/src/dialogs/dialog-password.c
index 3737552..4aef5ca 100644
--- a/src/dialogs/dialog-password.c
+++ b/src/dialogs/dialog-password.c
@@ -45,8 +45,8 @@ dialog_get_password (GtkWindow *parent, const char *filename)
        hb = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
        gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (d))), hb,
                            TRUE, TRUE, 8);
-       image = gtk_image_new_from_stock ("gnumeric-protection-yes-dialog",
-                                         GTK_ICON_SIZE_DIALOG);
+       image = gtk_image_new_from_icon_name ("gnumeric-protection-yes-dialog",
+                                             GTK_ICON_SIZE_DIALOG);
        gtk_misc_set_alignment (GTK_MISC (image), 0.5, 0.0);
        gtk_box_pack_start (GTK_BOX (hb), image, FALSE, FALSE, 0);
        vb = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
diff --git a/src/widgets/gnumeric-expr-entry.c b/src/widgets/gnumeric-expr-entry.c
index 43600f4..dd75fad 100644
--- a/src/widgets/gnumeric-expr-entry.c
+++ b/src/widgets/gnumeric-expr-entry.c
@@ -462,8 +462,8 @@ gee_set_with_icon (GnmExprEntry *gee, gboolean with_icon)
        if (with_icon) {
                gee->icon = gtk_toggle_button_new ();
                gtk_container_add (GTK_CONTAINER (gee->icon),
-                                  gtk_image_new_from_stock ("gnumeric-exprentry",
-                                                            GTK_ICON_SIZE_MENU));
+                                  gtk_image_new_from_icon_name ("gnumeric-exprentry",
+                                                                GTK_ICON_SIZE_MENU));
                gtk_box_pack_end (GTK_BOX (gee), gee->icon, FALSE, FALSE, 0);
                gtk_widget_show_all (gee->icon);
                g_signal_connect (gee->icon, "clicked",


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