diff options
author | raveit65 <[email protected]> | 2017-04-29 14:38:59 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-05-01 07:33:12 +0200 |
commit | 73dec46a050b53367bfe35e9999440be6343eac2 (patch) | |
tree | 8b98b283af30350127f731baac085afe43abc3d7 /src/gtk-utils.c | |
parent | ff8c348319112e30d6ab93441e9e98a55e82c459 (diff) | |
download | engrampa-73dec46a050b53367bfe35e9999440be6343eac2.tar.bz2 engrampa-73dec46a050b53367bfe35e9999440be6343eac2.tar.xz |
gtk-utils: remove some GTK_STOCK deprecations
Diffstat (limited to 'src/gtk-utils.c')
-rw-r--r-- | src/gtk-utils.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/gtk-utils.c b/src/gtk-utils.c index d805c45..6f8c2b1 100644 --- a/src/gtk-utils.c +++ b/src/gtk-utils.c @@ -200,17 +200,14 @@ _gtk_request_dialog_run (GtkWindow *parent, GtkWidget *entry; GtkWidget *button; GtkWidget *content_area; - char *stock_id; char *result; - stock_id = GTK_STOCK_DIALOG_QUESTION; - dialog = gtk_dialog_new_with_buttons (title, parent, flags, NULL, NULL); content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog)); /* Add label and image */ - image = gtk_image_new_from_stock (stock_id, GTK_ICON_SIZE_DIALOG); + image = gtk_image_new_from_icon_name ("dialog-question", GTK_ICON_SIZE_DIALOG); gtk_widget_set_halign (image, GTK_ALIGN_CENTER); gtk_widget_set_valign (image, GTK_ALIGN_START); @@ -291,7 +288,6 @@ _gtk_yesno_dialog_new (GtkWindow *parent, GtkWidget *hbox; GtkWidget *button; GtkWidget *content_area; - char *stock_id = GTK_STOCK_DIALOG_WARNING; d = gtk_dialog_new_with_buttons ("", parent, flags, NULL, NULL); gtk_window_set_resizable (GTK_WINDOW (d), FALSE); @@ -300,7 +296,7 @@ _gtk_yesno_dialog_new (GtkWindow *parent, /* Add label and image */ - image = gtk_image_new_from_stock (stock_id, GTK_ICON_SIZE_DIALOG); + image = gtk_image_new_from_icon_name ("dialog-warning", GTK_ICON_SIZE_DIALOG); gtk_widget_set_valign (image, GTK_ALIGN_START); label = gtk_label_new (message); @@ -364,14 +360,11 @@ _gtk_error_dialog_new (GtkWindow *parent, GtkWidget *action_area; GtkTextBuffer *text_buf; GtkTextIter iter; - char *stock_id; GList *scan; char *escaped_message, *markup_text; va_list args; gboolean view_output = (row_output != NULL); - stock_id = GTK_STOCK_DIALOG_ERROR; - dialog = gtk_dialog_new_with_buttons ("", parent, flags, @@ -386,7 +379,7 @@ _gtk_error_dialog_new (GtkWindow *parent, /* Add label and image */ - image = gtk_image_new_from_stock (stock_id, GTK_ICON_SIZE_DIALOG); + image = gtk_image_new_from_icon_name ("dialog-error", GTK_ICON_SIZE_DIALOG); gtk_widget_set_halign (image, GTK_ALIGN_CENTER); gtk_widget_set_valign (image, GTK_ALIGN_START); |