[gnumeric] Dead kittens: more deprecation work.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Dead kittens: more deprecation work.
- Date: Fri, 2 Jan 2015 00:55:50 +0000 (UTC)
commit 5b541d310e8987328d752b2f5e7b9b43aaf2011a
Author: Morten Welinder <terra gnome org>
Date: Thu Jan 1 19:55:35 2015 -0500
Dead kittens: more deprecation work.
src/gui-util.c | 14 ++++++--------
1 files changed, 6 insertions(+), 8 deletions(-)
---
diff --git a/src/gui-util.c b/src/gui-util.c
index 120fe89..dcadf04 100644
--- a/src/gui-util.c
+++ b/src/gui-util.c
@@ -1064,7 +1064,7 @@ gnumeric_message_dialog_create (GtkWindow * parent,
GtkWidget * label;
GtkWidget * hbox;
gchar *message;
- const gchar *stock_id;
+ const gchar *icon_name;
GtkWidget *image;
const char *title;
@@ -1074,29 +1074,27 @@ gnumeric_message_dialog_create (GtkWindow * parent,
default:
g_warning ("Unknown GtkMessageType %d", type);
case GTK_MESSAGE_INFO:
- stock_id = GTK_STOCK_DIALOG_INFO;
+ icon_name = GTK_STOCK_DIALOG_INFO;
title = _("Information");
break;
case GTK_MESSAGE_QUESTION:
- stock_id = GTK_STOCK_DIALOG_QUESTION;
+ icon_name = GTK_STOCK_DIALOG_QUESTION;
title = _("Question");
break;
case GTK_MESSAGE_WARNING:
- stock_id = GTK_STOCK_DIALOG_WARNING;
+ icon_name = GTK_STOCK_DIALOG_WARNING;
title = _("Warning");
break;
case GTK_MESSAGE_ERROR:
- stock_id = GTK_STOCK_DIALOG_ERROR;
+ icon_name = GTK_STOCK_DIALOG_ERROR;
title = _("Error");
break;
}
- image = gtk_image_new ();
- gtk_image_set_from_stock (GTK_IMAGE (image), stock_id,
- GTK_ICON_SIZE_DIALOG);
+ image = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_DIALOG);
gtk_window_set_title (GTK_WINDOW (dialog), title);
if (primary_message) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]