mirror of
https://github.com/transmission/transmission
synced 2025-01-31 03:12:44 +00:00
(trunk gtk) #4552 "mark primary toolbars" -- applied patch from fmuellner
This commit is contained in:
parent
4c018ea26a
commit
55c84fa9ea
2 changed files with 8 additions and 0 deletions
|
@ -453,6 +453,10 @@ gtr_message_log_window_new( GtkWindow * parent, TrCore * core )
|
|||
|
||||
toolbar = gtk_toolbar_new( );
|
||||
gtk_toolbar_set_style( GTK_TOOLBAR( toolbar ), GTK_TOOLBAR_BOTH_HORIZ );
|
||||
#if GTK_CHECK_VERSION( 3,0,0 )
|
||||
gtk_style_context_add_class( gtk_widget_get_style_context( toolbar ),
|
||||
GTK_STYLE_CLASS_PRIMARY_TOOLBAR );
|
||||
#endif
|
||||
|
||||
item = gtk_tool_button_new_from_stock( GTK_STOCK_SAVE_AS );
|
||||
g_object_set( G_OBJECT( item ), "is-important", TRUE, NULL );
|
||||
|
|
|
@ -622,6 +622,10 @@ gtr_window_new( GtkUIManager * ui_mgr, TrCore * core )
|
|||
|
||||
/* toolbar */
|
||||
toolbar = p->toolbar = gtr_action_get_widget( "/main-window-toolbar" );
|
||||
#if GTK_CHECK_VERSION( 3,0,0 )
|
||||
gtk_style_context_add_class( gtk_widget_get_style_context( toolbar ),
|
||||
GTK_STYLE_CLASS_PRIMARY_TOOLBAR );
|
||||
#endif
|
||||
gtr_action_set_important( "open-torrent-toolbar", TRUE );
|
||||
gtr_action_set_important( "show-torrent-properties", TRUE );
|
||||
|
||||
|
|
Loading…
Reference in a new issue