(trunk gtk) #4552 "mark primary toolbars" -- applied patch from fmuellner

This commit is contained in:
Jordan Lee 2011-10-11 15:27:32 +00:00
parent 4c018ea26a
commit 55c84fa9ea
2 changed files with 8 additions and 0 deletions

View File

@ -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 );

View File

@ -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 );