Gtk+-3.10: don't use deprecated GTK_STOCK_DIALOG_WARNING/ERROR
This commit is contained in:
parent
a08bd0ed2f
commit
f2c09bf972
|
@ -502,8 +502,13 @@ build_single_doc_dialog (PlumaCloseConfirmationDialog *dlg)
|
||||||
doc = PLUMA_DOCUMENT (dlg->priv->unsaved_documents->data);
|
doc = PLUMA_DOCUMENT (dlg->priv->unsaved_documents->data);
|
||||||
|
|
||||||
/* Image */
|
/* Image */
|
||||||
|
#if GTK_CHECK_VERSION (3, 10, 0)
|
||||||
|
image = gtk_image_new_from_icon_name ("dialog-warning",
|
||||||
|
GTK_ICON_SIZE_DIALOG);
|
||||||
|
#else
|
||||||
image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_WARNING,
|
image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_WARNING,
|
||||||
GTK_ICON_SIZE_DIALOG);
|
GTK_ICON_SIZE_DIALOG);
|
||||||
|
#endif
|
||||||
#if GTK_CHECK_VERSION (3, 14, 0)
|
#if GTK_CHECK_VERSION (3, 14, 0)
|
||||||
gtk_widget_set_valign (image, GTK_ALIGN_START);
|
gtk_widget_set_valign (image, GTK_ALIGN_START);
|
||||||
#else
|
#else
|
||||||
|
@ -699,8 +704,13 @@ build_multiple_docs_dialog (PlumaCloseConfirmationDialog *dlg)
|
||||||
hbox, TRUE, TRUE, 0);
|
hbox, TRUE, TRUE, 0);
|
||||||
|
|
||||||
/* Image */
|
/* Image */
|
||||||
|
#if GTK_CHECK_VERSION (3, 10, 0)
|
||||||
|
image = gtk_image_new_from_icon_name ("dialog-warning",
|
||||||
|
GTK_ICON_SIZE_DIALOG);
|
||||||
|
#else
|
||||||
image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_WARNING,
|
image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_WARNING,
|
||||||
GTK_ICON_SIZE_DIALOG);
|
GTK_ICON_SIZE_DIALOG);
|
||||||
|
#endif
|
||||||
#if GTK_CHECK_VERSION (3, 14, 0)
|
#if GTK_CHECK_VERSION (3, 14, 0)
|
||||||
gtk_widget_set_valign (image, GTK_ALIGN_START);
|
gtk_widget_set_valign (image, GTK_ALIGN_START);
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -165,7 +165,11 @@ pluma_statusbar_init (PlumaStatusbar *statusbar)
|
||||||
statusbar->priv->error_frame = gtk_frame_new (NULL);
|
statusbar->priv->error_frame = gtk_frame_new (NULL);
|
||||||
gtk_frame_set_shadow_type (GTK_FRAME (statusbar->priv->error_frame), GTK_SHADOW_IN);
|
gtk_frame_set_shadow_type (GTK_FRAME (statusbar->priv->error_frame), GTK_SHADOW_IN);
|
||||||
|
|
||||||
|
#if GTK_CHECK_VERSION (3, 10, 0)
|
||||||
|
error_image = gtk_image_new_from_icon_name ("dialog-error", GTK_ICON_SIZE_MENU);
|
||||||
|
#else
|
||||||
error_image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_ERROR, GTK_ICON_SIZE_MENU);
|
error_image = gtk_image_new_from_stock (GTK_STOCK_DIALOG_ERROR, GTK_ICON_SIZE_MENU);
|
||||||
|
#endif
|
||||||
#if GTK_CHECK_VERSION (3, 14, 0)
|
#if GTK_CHECK_VERSION (3, 14, 0)
|
||||||
gtk_widget_set_margin_start (error_image, 4);
|
gtk_widget_set_margin_start (error_image, 4);
|
||||||
gtk_widget_set_margin_end (error_image, 4);
|
gtk_widget_set_margin_end (error_image, 4);
|
||||||
|
|
Loading…
Reference in New Issue