[clutter-gtk] examples: Remove last usage of GtkStock items
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gtk] examples: Remove last usage of GtkStock items
- Date: Thu, 23 Jul 2015 21:38:09 +0000 (UTC)
commit ed7964b64bb0435c8fac950807b81397143531b5
Author: Emmanuele Bassi <ebassi gnome org>
Date: Thu Jul 23 22:37:16 2015 +0100
examples: Remove last usage of GtkStock items
examples/gtk-clutter-window-test.c | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/examples/gtk-clutter-window-test.c b/examples/gtk-clutter-window-test.c
index 2afc650..1a6f54a 100644
--- a/examples/gtk-clutter-window-test.c
+++ b/examples/gtk-clutter-window-test.c
@@ -58,7 +58,10 @@ add_toolbar_items (GtkToolbar *toolbar,
for (stock_id = (char *) first; stock_id != NULL;
stock_id = va_arg (var_args, char *))
{
- GtkToolItem *item = gtk_tool_button_new_from_stock (stock_id);
+ GtkToolItem *item = g_object_new (GTK_TYPE_TOOL_BUTTON,
+ "icon-name", stock_id,
+ "label", NULL,
+ NULL);
gtk_toolbar_insert (toolbar, item, -1);
}
@@ -136,12 +139,11 @@ main (int argc, char **argv)
toolbar = gtk_toolbar_new ();
add_toolbar_items (GTK_TOOLBAR (toolbar),
- GTK_STOCK_ADD,
- GTK_STOCK_BOLD,
- GTK_STOCK_ITALIC,
- GTK_STOCK_CANCEL,
- GTK_STOCK_CDROM,
- GTK_STOCK_CONVERT,
+ "list-add",
+ "format-text-bold",
+ "format-text-italic",
+ "media-optical",
+ "edit-copy",
NULL);
gtk_widget_show_all (toolbar);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]