Radiant:
binds... * tex bro: left double click loads directory, containing active shader + focuses on it right double click loads 'common' directory misc... * shader editor gets focus after been hidden behind main window and called again * patch thicken: significantly more fail safe; correct handling of cycled patches * fix: was parsing vfs twice; pk3s were being opened twice during runtime * fix: shortcuts work after startup (plugins bar buttons were stealing focus)
This commit is contained in:
@@ -82,7 +82,11 @@ inline GtkToolbarChildType gtktoolbarchildtype_for_toolbarbuttontype( IToolbarBu
|
||||
}
|
||||
|
||||
void toolbar_insert( GtkToolbar *toolbar, const char* icon, const char* text, const char* tooltip, IToolbarButton::EType type, GtkSignalFunc handler, gpointer data ){
|
||||
gtk_toolbar_append_element( toolbar, gtktoolbarchildtype_for_toolbarbuttontype( type ), 0, text, tooltip, "", GTK_WIDGET( new_plugin_image( icon ) ), handler, data );
|
||||
GtkWidget* widget = gtk_toolbar_append_element( toolbar, gtktoolbarchildtype_for_toolbarbuttontype( type ), 0, text, tooltip, "", GTK_WIDGET( new_plugin_image( icon ) ), handler, data );
|
||||
if( type != IToolbarButton::eSpace ){
|
||||
GTK_WIDGET_UNSET_FLAGS( widget, GTK_CAN_FOCUS );
|
||||
GTK_WIDGET_UNSET_FLAGS( widget, GTK_CAN_DEFAULT );
|
||||
}
|
||||
}
|
||||
|
||||
void ActivateToolbarButton( GtkWidget *widget, gpointer data ){
|
||||
|
||||
Reference in New Issue
Block a user