(trunk gtk) #4970 remove deprecated GTK+ API calls, raise GTK+ dependency to 3.2

This commit is contained in:
Jordan Lee
2012-07-14 19:26:55 +00:00
parent b6e0e48927
commit cdd71c6427
16 changed files with 114 additions and 303 deletions

View File

@@ -456,7 +456,7 @@ gtr_message_log_window_new( GtkWindow * parent, TrCore * core )
gtk_window_set_title( GTK_WINDOW( win ), _( "Message Log" ) );
gtk_window_set_default_size( GTK_WINDOW( win ), 560, 350 );
gtk_window_set_role( GTK_WINDOW( win ), "message-log" );
vbox = gtr_vbox_new( FALSE, 0 );
vbox = gtk_box_new( GTK_ORIENTATION_VERTICAL, 0 );
/**
*** toolbar
@@ -464,10 +464,8 @@ 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 );