[SCM] calf/master: + GUI: list view usability improvements

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:39:32 UTC 2013


The following commit has been merged in the master branch:
commit 5dcee27baa67da09f3a0d5f8ac43eb3f16066133
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Tue May 5 23:18:37 2009 +0100

    + GUI: list view usability improvements

diff --git a/src/gui.cpp b/src/gui.cpp
index 81a7869..61ab82b 100644
--- a/src/gui.cpp
+++ b/src/gui.cpp
@@ -713,8 +713,9 @@ GtkWidget *listview_param_control::create(plugin_gui *_gui, int _param_no)
     update_store();
     widget = gtk_tree_view_new_with_model(GTK_TREE_MODEL(lstore));
     delete []p;
-    tree = GTK_TREE_VIEW(widget);
+    tree = GTK_TREE_VIEW (widget);
     assert(teif);
+    g_object_set (G_OBJECT (tree), "enable-search", FALSE, "rules-hint", TRUE, "enable-grid-lines", TRUE, NULL);
     
     for (int i = 0; i < cols; i++)
     {
@@ -776,6 +777,12 @@ void listview_param_control::on_edited(GtkCellRenderer *renderer, gchar *path, g
     if (error.empty()) {
         pThis->update_store();
         gtk_widget_grab_focus(pThis->widget);
+        if (atoi(path) < (int)pThis->teif->get_table_rows(pThis->param_no))
+        {
+            GtkTreePath *gpath = gtk_tree_path_new_from_string (path);
+            gtk_tree_view_set_cursor_on_cell (GTK_TREE_VIEW (pThis->widget), gpath, NULL, NULL, FALSE);
+            gtk_tree_path_free (gpath);
+        }
     }
     else
     {

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list