[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: pcb.git: branch: master updated (1757783e412e38da9a802b904477540466058468)



The branch, master has been updated
       via  1757783e412e38da9a802b904477540466058468 (commit)
      from  8857757d007305f95b69445ede344a263c90c345 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 src/hid/gtk/ghid-layer-selector.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)


=================
 Commit Messages
=================

commit 1757783e412e38da9a802b904477540466058468
Author: Andrew Poelstra <asp11@xxxxxx>
Commit: Andrew Poelstra <asp11@xxxxxx>

    gtk: Fix "clicking on layer selector separator bug"
    
    If you click on the selector between real and virtual layers in
    the pcb layer selector, it will toggle the first layer. This
    patch simply ignores the click.

:100644 100644 6ddbd3f... aa45fc6... M	src/hid/gtk/ghid-layer-selector.c

=========
 Changes
=========

commit 1757783e412e38da9a802b904477540466058468
Author: Andrew Poelstra <asp11@xxxxxx>
Commit: Andrew Poelstra <asp11@xxxxxx>

    gtk: Fix "clicking on layer selector separator bug"
    
    If you click on the selector between real and virtual layers in
    the pcb layer selector, it will toggle the first layer. This
    patch simply ignores the click.

diff --git a/src/hid/gtk/ghid-layer-selector.c b/src/hid/gtk/ghid-layer-selector.c
index 6ddbd3f..aa45fc6 100644
--- a/src/hid/gtk/ghid-layer-selector.c
+++ b/src/hid/gtk/ghid-layer-selector.c
@@ -203,13 +203,14 @@ button_press_cb (GHidLayerSelector *ls, GdkEventButton *event)
                                      &path, &column, NULL, NULL))
     {
       GtkTreeIter iter;
-      gboolean activatable;
+      gboolean activatable, separator;
       gtk_tree_model_get_iter (GTK_TREE_MODEL (ls->list_store), &iter, path);
       gtk_tree_model_get (GTK_TREE_MODEL (ls->list_store), &iter,
-                          ACTIVATABLE_COL, &activatable, -1);
+                          ACTIVATABLE_COL, &activatable,
+                          SEPARATOR_COL, &separator, -1);
       /* Toggle visibility for non-activatable layers no matter
        *  where you click. */
-      if (column == ls->visibility_column || !activatable)
+      if (!separator && (column == ls->visibility_column || !activatable))
         {
           toggle_visibility (ls, &iter, TRUE);
           return TRUE; 




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs