(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:
parent
12d8d49e93
commit
9101f64684
|
@ -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 )
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue