diff --git a/gtk/msgwin.c b/gtk/msgwin.c index ac1f52106..51c4baad3 100644 --- a/gtk/msgwin.c +++ b/gtk/msgwin.c @@ -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 ); diff --git a/gtk/tr-window.c b/gtk/tr-window.c index 8cba4e52f..a64828d0d 100644 --- a/gtk/tr-window.c +++ b/gtk/tr-window.c @@ -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 );