Fix a couple of deprecation warnings related to stock items

This commit is contained in:
William Jon McCann
2013-06-30 13:14:18 -04:00
parent c6ca2374cc
commit 3d5d3e8eae
2 changed files with 29 additions and 27 deletions

View File

@ -1216,6 +1216,7 @@ set_toolbar_disable (GtkWidget *widget,
g_object_set (settings, "gtk-enable-tooltips", FALSE, NULL);
}
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
static GtkActionEntry create_toolbar_items[] = {
{ NULL, GTK_STOCK_NEW, NULL, NULL, "Stock icon: New",
G_CALLBACK (set_toolbar_small_stock) },
@ -1254,6 +1255,7 @@ static GtkActionEntry create_toolbar_items[] = {
{ NULL, NULL, "Bar", NULL, "Bar tooltip",
NULL },
};
G_GNUC_END_IGNORE_DEPRECATIONS;
static void
create_toolbar (GtkWidget *widget)