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

gEDA-cvs: gaf.git: branch: master updated (1.5.1-20081221-153-ge843304)



The branch, master has been updated
       via  e84330457016f1bfb3db1cd6c8a6980a72a6e90c (commit)
      from  2a73a64f42e7e3613d5265e5ec38593ea232d418 (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 |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)


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

commit e84330457016f1bfb3db1cd6c8a6980a72a6e90c
Author: Werner Hoch <werner.ho@xxxxxx>
Date:   Mon Jan 5 20:52:47 2009 +0100

    gschem: final fix for the dropdown menus of filltype and linetype
    
    Set the current active check marks of the filltype and linetype
    dropdown menu items.
    
    I guesss this was the true meaning of the bug reports [2344956]
    and [2344964].

:100644 100644 958eba6... 79c4eca... M	gschem/src/x_dialog.c

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

commit e84330457016f1bfb3db1cd6c8a6980a72a6e90c
Author: Werner Hoch <werner.ho@xxxxxx>
Date:   Mon Jan 5 20:52:47 2009 +0100

    gschem: final fix for the dropdown menus of filltype and linetype
    
    Set the current active check marks of the filltype and linetype
    dropdown menu items.
    
    I guesss this was the true meaning of the bug reports [2344956]
    and [2344964].

diff --git a/gschem/src/x_dialog.c b/gschem/src/x_dialog.c
index 958eba6..79c4eca 100644
--- a/gschem/src/x_dialog.c
+++ b/gschem/src/x_dialog.c
@@ -736,10 +736,14 @@ static void line_type_dialog_set_values(struct line_type_data *line_type_data,
                                         gint width, gint length, gint space)
 {
   gchar *text;
+  GtkWidget *menu, *menuitem;
 
   if (type == -2)
     type = TYPE_ERASE;
   gtk_option_menu_set_history(GTK_OPTION_MENU(line_type_data->line_type), type);
+  menu = gtk_option_menu_get_menu(GTK_OPTION_MENU(line_type_data->line_type));
+  menuitem = gtk_menu_get_active(GTK_MENU(menu));
+  gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(menuitem), TRUE);
 
   if (width == -2)
     text = g_strdup(_("*unchanged*"));
@@ -1186,10 +1190,14 @@ static void fill_type_dialog_set_values(struct fill_type_data *fill_type_data,
                                         gint pitch2, gint angle2)
 {
   gchar *text;
+  GtkWidget *menu, *menuitem;
 
   if (type == -2)
     type = FILLING_VOID;
   gtk_option_menu_set_history(GTK_OPTION_MENU(fill_type_data->fill_type), type);
+  menu = gtk_option_menu_get_menu(GTK_OPTION_MENU(fill_type_data->fill_type));
+  menuitem = gtk_menu_get_active(GTK_MENU(menu));
+  gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(menuitem), TRUE);
 
   if (width == -2)
     text = g_strdup(_("*unchanged*"));




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