mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 12:32:05 +00:00
Replace deprecated symbols in theme-viewer.c
-Replaced calls to gtk_toolbar_insert_stock with gtk_toolbar_insert -Created appropriated GtkToolButtons
This commit is contained in:
parent
066c870271
commit
eb06413188
@ -131,26 +131,27 @@ normal_contents (void)
|
|||||||
*/
|
*/
|
||||||
toolbar = gtk_toolbar_new ();
|
toolbar = gtk_toolbar_new ();
|
||||||
|
|
||||||
gtk_toolbar_insert_stock (GTK_TOOLBAR (toolbar),
|
GtkToolItem *newButton = gtk_tool_button_new_from_stock(GTK_STOCK_NEW);
|
||||||
GTK_STOCK_NEW,
|
gtk_tool_item_set_tooltip_text(newButton,
|
||||||
_("Open another one of these windows"),
|
"Open another one of these windows");
|
||||||
NULL,
|
gtk_toolbar_insert(GTK_TOOLBAR(toolbar),
|
||||||
NULL, NULL,
|
newButton,
|
||||||
-1); /* -1 means "append" */
|
-1); /*-1 means append to end of toolbar*/
|
||||||
|
|
||||||
gtk_toolbar_insert_stock (GTK_TOOLBAR (toolbar),
|
GtkToolItem *openButton = gtk_tool_button_new_from_stock(GTK_STOCK_OPEN);
|
||||||
GTK_STOCK_OPEN,
|
gtk_tool_item_set_tooltip_text(openButton,
|
||||||
_("This is a demo button with an 'open' icon"),
|
"This is a demo button with an \'open\' icon");
|
||||||
NULL,
|
gtk_toolbar_insert(GTK_TOOLBAR(toolbar),
|
||||||
NULL, NULL,
|
openButton,
|
||||||
-1); /* -1 means "append" */
|
-1); /*-1 means append to end of toolbar*/
|
||||||
|
|
||||||
|
GtkToolItem *quitButton = gtk_tool_button_new_from_stock(GTK_STOCK_QUIT);
|
||||||
|
gtk_tool_item_set_tooltip_text(quitButton,
|
||||||
|
"This is a demo button with a \'quit\' icon");
|
||||||
|
gtk_toolbar_insert(GTK_TOOLBAR(toolbar),
|
||||||
|
quitButton,
|
||||||
|
-1); /*-1 means append to end of toolbar*/
|
||||||
|
|
||||||
gtk_toolbar_insert_stock (GTK_TOOLBAR (toolbar),
|
|
||||||
GTK_STOCK_QUIT,
|
|
||||||
_("This is a demo button with a 'quit' icon"),
|
|
||||||
NULL,
|
|
||||||
NULL, NULL,
|
|
||||||
-1); /* -1 means "append" */
|
|
||||||
|
|
||||||
handlebox = gtk_handle_box_new ();
|
handlebox = gtk_handle_box_new ();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user