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

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



The branch, master has been updated
       via  a7e3de33107c2cb7fa37f9b55af7776c4e4a8937 (commit)
       via  bb9412c64dac9dca2e2656c225bcd024e618bd04 (commit)
       via  4ecf240381ec73359c5d1a7648d9d2c7b0ff460d (commit)
      from  e24731d843fdff2752a4b0228c533792ba644959 (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-cell-renderer-visibility.c |    6 ++++++
 src/hid/gtk/ghid-layer-selector.c           |    9 +++++++--
 2 files changed, 13 insertions(+), 2 deletions(-)


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

commit a7e3de33107c2cb7fa37f9b55af7776c4e4a8937
Author: Andrew Poelstra <asp11@xxxxxx>
Commit: Andrew Poelstra <asp11@xxxxxx>

    gtk: Prelight toggle swatches in layer selector
    
    This brightens the layer visibility swatches subtly when the
    mouse hovers over them. IMHO this improves the discoverability
    of the widget without being distracting or misleading.

:100644 100644 2e07c67... ee5f6cb... M	src/hid/gtk/ghid-cell-renderer-visibility.c

commit bb9412c64dac9dca2e2656c225bcd024e618bd04
Author: Andrew Poelstra <asp11@xxxxxx>
Commit: Andrew Poelstra <asp11@xxxxxx>

    gtk: Don't gray out invisible layers' text in the selector

:100644 100644 032c515... 84db76e... M	src/hid/gtk/ghid-layer-selector.c

commit 4ecf240381ec73359c5d1a7648d9d2c7b0ff460d
Author: Andrew Poelstra <asp11@xxxxxx>
Commit: Andrew Poelstra <asp11@xxxxxx>

    gtk: toggle non-activatable layers on click, without checking for swatch

:100644 100644 a3a313e... 032c515... M	src/hid/gtk/ghid-layer-selector.c

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

commit a7e3de33107c2cb7fa37f9b55af7776c4e4a8937
Author: Andrew Poelstra <asp11@xxxxxx>
Commit: Andrew Poelstra <asp11@xxxxxx>

    gtk: Prelight toggle swatches in layer selector
    
    This brightens the layer visibility swatches subtly when the
    mouse hovers over them. IMHO this improves the discoverability
    of the widget without being distracting or misleading.

diff --git a/src/hid/gtk/ghid-cell-renderer-visibility.c b/src/hid/gtk/ghid-cell-renderer-visibility.c
index 2e07c67..ee5f6cb 100644
--- a/src/hid/gtk/ghid-cell-renderer-visibility.c
+++ b/src/hid/gtk/ghid-cell-renderer-visibility.c
@@ -125,6 +125,12 @@ ghid_cell_renderer_visibility_render (GtkCellRenderer      *cell,
       cairo_stroke (cr);
 
       gdk_color_parse (pcb_cell->color, &color);
+      if (flags & GTK_CELL_RENDERER_PRELIT)
+        {
+          color.red = (4*color.red + 65535) / 5;
+          color.green = (4*color.green + 65535) / 5;
+          color.blue = (4*color.blue + 65535) / 5;
+        }
       gdk_cairo_set_source_color (cr, &color);
       if (pcb_cell->active)
         cairo_rectangle (cr, toggle_rect.x + 0.5, toggle_rect.y + 0.5,

commit bb9412c64dac9dca2e2656c225bcd024e618bd04
Author: Andrew Poelstra <asp11@xxxxxx>
Commit: Andrew Poelstra <asp11@xxxxxx>

    gtk: Don't gray out invisible layers' text in the selector

diff --git a/src/hid/gtk/ghid-layer-selector.c b/src/hid/gtk/ghid-layer-selector.c
index 032c515..84db76e 100644
--- a/src/hid/gtk/ghid-layer-selector.c
+++ b/src/hid/gtk/ghid-layer-selector.c
@@ -391,7 +391,7 @@ ghid_layer_selector_new (void)
       gtk_tree_view_column_new_with_attributes ("", renderer2,
                                                 "text", TEXT_COL,
                                                 "font", FONT_COL,
-                                                "sensitive", VISIBLE_COL, NULL);
+                                                NULL);
 
   GHidLayerSelector *ls = g_object_new (GHID_LAYER_SELECTOR_TYPE, NULL);
 

commit 4ecf240381ec73359c5d1a7648d9d2c7b0ff460d
Author: Andrew Poelstra <asp11@xxxxxx>
Commit: Andrew Poelstra <asp11@xxxxxx>

    gtk: toggle non-activatable layers on click, without checking for swatch

diff --git a/src/hid/gtk/ghid-layer-selector.c b/src/hid/gtk/ghid-layer-selector.c
index a3a313e..032c515 100644
--- a/src/hid/gtk/ghid-layer-selector.c
+++ b/src/hid/gtk/ghid-layer-selector.c
@@ -203,8 +203,13 @@ button_press_cb (GHidLayerSelector *ls, GdkEventButton *event)
                                      &path, &column, NULL, NULL))
     {
       GtkTreeIter iter;
+      gboolean activatable;
       gtk_tree_model_get_iter (GTK_TREE_MODEL (ls->list_store), &iter, path);
-      if (column == ls->visibility_column)
+      gtk_tree_model_get (GTK_TREE_MODEL (ls->list_store), &iter,
+                          ACTIVATABLE_COL, &activatable, -1);
+      /* Toggle visibility for non-activatable layers no matter
+       *  where you click. */
+      if (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