summaryrefslogtreecommitdiff
path: root/examples/bloatpad.c
diff options
context:
space:
mode:
authorWilliam Jon McCann <william.jon.mccann@gmail.com>2013-06-21 15:21:23 -0400
committerWilliam Jon McCann <william.jon.mccann@gmail.com>2013-06-24 14:50:01 -0400
commit75a9b91161aaf946731303e42e47539342b9b692 (patch)
tree0014a23b3bd92bedd17bbce8a6850856b2684514 /examples/bloatpad.c
parent29f93053330d295cdb3454e1f6f91ac610e4e46c (diff)
downloadgtk+-75a9b91161aaf946731303e42e47539342b9b692.tar.gz
Don't use stock APIs in the bloatpad example
Diffstat (limited to 'examples/bloatpad.c')
-rw-r--r--examples/bloatpad.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/bloatpad.c b/examples/bloatpad.c
index bf31051feb..b7664afa82 100644
--- a/examples/bloatpad.c
+++ b/examples/bloatpad.c
@@ -139,15 +139,18 @@ new_window (GApplication *app,
gtk_container_add (GTK_CONTAINER (window), grid);
toolbar = gtk_toolbar_new ();
- button = gtk_toggle_tool_button_new_from_stock (GTK_STOCK_JUSTIFY_LEFT);
+ button = gtk_toggle_tool_button_new ();
+ gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (button), "format-justify-left");
gtk_actionable_set_detailed_action_name (GTK_ACTIONABLE (button), "win.justify::left");
gtk_container_add (GTK_CONTAINER (toolbar), GTK_WIDGET (button));
- button = gtk_toggle_tool_button_new_from_stock (GTK_STOCK_JUSTIFY_CENTER);
+ button = gtk_toggle_tool_button_new ();
+ gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (button), "format-justify-center");
gtk_actionable_set_detailed_action_name (GTK_ACTIONABLE (button), "win.justify::center");
gtk_container_add (GTK_CONTAINER (toolbar), GTK_WIDGET (button));
- button = gtk_toggle_tool_button_new_from_stock (GTK_STOCK_JUSTIFY_RIGHT);
+ button = gtk_toggle_tool_button_new ();
+ gtk_tool_button_set_icon_name (GTK_TOOL_BUTTON (button), "format-justify-right");
gtk_actionable_set_detailed_action_name (GTK_ACTIONABLE (button), "win.justify::right");
gtk_container_add (GTK_CONTAINER (toolbar), GTK_WIDGET (button));