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

gEDA-cvs: gaf.git: branch: master updated (1.5.0-20080706-256-gd99fb5c)



The branch, master has been updated
       via  d99fb5c1cebfed26e027b134ebf2a4c3a0d524bd (commit)
      from  f7b1d8d15b0e7679332f4ab3695676aba0f890fd (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
=========

 gschem/src/x_dialog.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)


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

commit d99fb5c1cebfed26e027b134ebf2a4c3a0d524bd
Author: Peter TB Brett <peter@xxxxxxxxxxxxx>
Date:   Sun Oct 26 17:51:54 2008 +0000

    gschem: Put color swatches before names in combo box cells.
    
    It's easier to associate names with colours with a smaller gap between
    them. (Yes, this will work properly for RTL locales).

:100644 100644 ebb61c8... 2af8cf7... M	gschem/src/x_dialog.c

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

commit d99fb5c1cebfed26e027b134ebf2a4c3a0d524bd
Author: Peter TB Brett <peter@xxxxxxxxxxxxx>
Date:   Sun Oct 26 17:51:54 2008 +0000

    gschem: Put color swatches before names in combo box cells.
    
    It's easier to associate names with colours with a smaller gap between
    them. (Yes, this will work properly for RTL locales).

diff --git a/gschem/src/x_dialog.c b/gschem/src/x_dialog.c
index ebb61c8..2af8cf7 100644
--- a/gschem/src/x_dialog.c
+++ b/gschem/src/x_dialog.c
@@ -2288,11 +2288,6 @@ create_color_menu (GSCHEM_TOPLEVEL *w_current)
   cbox = GTK_COMBO_BOX (gtk_combo_box_new_with_model (GTK_TREE_MODEL (store)));
   layout = GTK_CELL_LAYOUT (cbox); /* For convenience */
 
-  /* Renders the name of the color */
-  text_cell = GTK_CELL_RENDERER (gtk_cell_renderer_text_new());
-  gtk_cell_layout_pack_start (layout, text_cell, TRUE);
-  gtk_cell_layout_add_attribute (layout, text_cell, "text", 0);
-
   /* Renders the color swatch. Since this won't contain text, set a
    * minimum width. */
   color_cell = GTK_CELL_RENDERER (gtk_cell_renderer_text_new());
@@ -2303,6 +2298,12 @@ create_color_menu (GSCHEM_TOPLEVEL *w_current)
                                       (gpointer) w_current,
                                       NULL);
 
+  /* Renders the name of the color */
+  text_cell = GTK_CELL_RENDERER (gtk_cell_renderer_text_new());
+  g_object_set (text_cell, "xpad", 5, NULL);
+  gtk_cell_layout_pack_start (layout, text_cell, TRUE);
+  gtk_cell_layout_add_attribute (layout, text_cell, "text", 0);
+
   /* Populate the list */
   for (i = 0; i < MAX_COLORS; i++) {
     /* Skip 'invalid' colors. FIXME this is ugly. */




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