[gnumeric] Dead kittens: get rid of stock ids here.



commit 883273b93ad44d32942a7b5b364916f2120b4db0
Author: Morten Welinder <terra gnome org>
Date:   Thu Jan 1 19:58:28 2015 -0500

    Dead kittens: get rid of stock ids here.

 ChangeLog      |    3 +++
 src/gui-util.c |    8 ++++----
 2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index afcfcd5..756b82f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2015-01-01  Morten Welinder  <terra gnome org>
 
+       * src/gui-util.c (gnumeric_message_dialog_create): Use icon theme
+       names, not stock ids.
+
        * src/gnm-pane.c (update_control_point_colors): Avoid
        gtk_style_context_get_background_color.
        * src/item-cursor.c (ic_reload_style): Ditto.
diff --git a/src/gui-util.c b/src/gui-util.c
index dcadf04..3e2d6ba 100644
--- a/src/gui-util.c
+++ b/src/gui-util.c
@@ -1074,22 +1074,22 @@ gnumeric_message_dialog_create (GtkWindow * parent,
        default:
                g_warning ("Unknown GtkMessageType %d", type);
        case GTK_MESSAGE_INFO:
-               icon_name = GTK_STOCK_DIALOG_INFO;
+               icon_name = "dialog-information";
                title = _("Information");
                break;
 
        case GTK_MESSAGE_QUESTION:
-               icon_name = GTK_STOCK_DIALOG_QUESTION;
+               icon_name = "dialog-question";
                title = _("Question");
                break;
 
        case GTK_MESSAGE_WARNING:
-               icon_name = GTK_STOCK_DIALOG_WARNING;
+               icon_name = "dialog-warning";
                title = _("Warning");
                break;
 
        case GTK_MESSAGE_ERROR:
-               icon_name = GTK_STOCK_DIALOG_ERROR;
+               icon_name = "dialog-error";
                title = _("Error");
                break;
        }


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