Kaydet (Commit) eaa0592b authored tarafından Enrico Tröger's avatar Enrico Tröger

Speed up toolbar editor dialog creation.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3990 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 7d460fdf
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
Display item labels instead of raw names in the toolbar editor. Display item labels instead of raw names in the toolbar editor.
Apply changes in the toolbar editor instantly. Apply changes in the toolbar editor instantly.
Show icons in the toolbar editor. Show icons in the toolbar editor.
Speed up toolbar editor dialog creation.
2009-07-16 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> 2009-07-16 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
......
...@@ -931,11 +931,6 @@ static TBEditorWidget *tb_editor_create_dialog(void) ...@@ -931,11 +931,6 @@ static TBEditorWidget *tb_editor_create_dialog(void)
gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(swin_used), GTK_SHADOW_ETCHED_IN); gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(swin_used), GTK_SHADOW_ETCHED_IN);
gtk_container_add(GTK_CONTAINER(swin_used), tree_used); gtk_container_add(GTK_CONTAINER(swin_used), tree_used);
g_signal_connect(tbw->store_used, "row-changed",
G_CALLBACK(tb_editor_available_items_changed_cb), tbw);
g_signal_connect(tbw->store_used, "row-deleted",
G_CALLBACK(tb_editor_available_items_deleted_cb), tbw);
/* drag'n'drop */ /* drag'n'drop */
gtk_tree_view_enable_model_drag_source(GTK_TREE_VIEW(tree_available), GDK_BUTTON1_MASK, gtk_tree_view_enable_model_drag_source(GTK_TREE_VIEW(tree_available), GDK_BUTTON1_MASK,
tb_editor_dnd_targets, tb_editor_dnd_targets_len, GDK_ACTION_MOVE); tb_editor_dnd_targets, tb_editor_dnd_targets_len, GDK_ACTION_MOVE);
...@@ -1040,6 +1035,12 @@ void toolbar_configure(void) ...@@ -1040,6 +1035,12 @@ void toolbar_configure(void)
gtk_tree_selection_select_path(gtk_tree_view_get_selection(tbw->tree_used), path); gtk_tree_selection_select_path(gtk_tree_view_get_selection(tbw->tree_used), path);
gtk_tree_path_free(path); gtk_tree_path_free(path);
/* connect the changed signals after populating the store */
g_signal_connect(tbw->store_used, "row-changed",
G_CALLBACK(tb_editor_available_items_changed_cb), tbw);
g_signal_connect(tbw->store_used, "row-deleted",
G_CALLBACK(tb_editor_available_items_deleted_cb), tbw);
/* run it */ /* run it */
gtk_dialog_run(GTK_DIALOG(tbw->dialog)); gtk_dialog_run(GTK_DIALOG(tbw->dialog));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment