(trunk gtk) #2339: set "is-important" property of some toolbar actions in preparation for gnome 2.28 <http://blogs.gnome.org/thos/2009/07/29/toolbar-styles/>

This commit is contained in:
Charles Kerr 2009-08-16 03:09:06 +00:00
parent 12d8d49e93
commit 9101f64684
3 changed files with 11 additions and 0 deletions

View File

@ -299,6 +299,12 @@ action_sensitize( const char * name,
g_object_set( action, "sensitive", b, NULL );
}
void
action_set_important( const char * name, gboolean b )
{
gtk_action_set_is_important( get_action( name ), b );
}
void
action_toggle( const char * name,
gboolean b )

View File

@ -29,6 +29,9 @@ void action_sensitize( const char * name,
void action_toggle( const char * name,
gboolean b );
void action_set_important( const char * name, gboolean b );
GtkWidget* action_get_widget( const char * path );
void doAction( const char * action_name,

View File

@ -884,6 +884,8 @@ tr_window_new( GtkUIManager * ui_mgr, TrCore * core )
/* toolbar */
w = toolbar = p->toolbar = action_get_widget( "/main-window-toolbar" );
action_set_important( "add-torrent-toolbar", TRUE );
action_set_important( "show-torrent-properties", TRUE );
/* filter */
h = filter = p->filter = gtk_hbox_new( FALSE, 0 );