]> Pileus Git - ~andy/gtk/commitdiff
Don't stumble over separators which are not backed by model rows.
authorMatthias Clasen <maclas@gmx.de>
Mon, 9 Aug 2004 02:53:31 +0000 (02:53 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 9 Aug 2004 02:53:31 +0000 (02:53 +0000)
Sun Aug  8 22:52:26 2004  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkcombobox.c (find_menu_by_path): Don't stumble over
separators which are not backed by model rows.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkcombobox.c

index e53ece0171e3984c0fb37aae9da3b84c9ea2ab2b..ba68a31ebebe795d43d8e2fd500f12d0854337d0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sun Aug  8 22:52:26 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkcombobox.c (find_menu_by_path): Don't stumble over
+       separators which are not backed by model rows.
+
 Sun Aug  8 11:01:23 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkcombobox.c (gtk_combo_box_set_active): Don't leak
index e53ece0171e3984c0fb37aae9da3b84c9ea2ab2b..ba68a31ebebe795d43d8e2fd500f12d0854337d0 100644 (file)
@@ -1,3 +1,8 @@
+Sun Aug  8 22:52:26 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkcombobox.c (find_menu_by_path): Don't stumble over
+       separators which are not backed by model rows.
+
 Sun Aug  8 11:01:23 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkcombobox.c (gtk_combo_box_set_active): Don't leak
index e53ece0171e3984c0fb37aae9da3b84c9ea2ab2b..ba68a31ebebe795d43d8e2fd500f12d0854337d0 100644 (file)
@@ -1,3 +1,8 @@
+Sun Aug  8 22:52:26 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkcombobox.c (find_menu_by_path): Don't stumble over
+       separators which are not backed by model rows.
+
 Sun Aug  8 11:01:23 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkcombobox.c (gtk_combo_box_set_active): Don't leak
index e53ece0171e3984c0fb37aae9da3b84c9ea2ab2b..ba68a31ebebe795d43d8e2fd500f12d0854337d0 100644 (file)
@@ -1,3 +1,8 @@
+Sun Aug  8 22:52:26 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkcombobox.c (find_menu_by_path): Don't stumble over
+       separators which are not backed by model rows.
+
 Sun Aug  8 11:01:23 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtk/gtkcombobox.c (gtk_combo_box_set_active): Don't leak
index 1a58008ee601a1f3a4bf0d840f71d5415baf2fce..535b32538cc8c65850c2ba7189dcca7bbf8d9112 100644 (file)
@@ -2733,7 +2733,12 @@ find_menu_by_path (GtkWidget   *menu,
     {
       if (GTK_IS_SEPARATOR_MENU_ITEM (i->data))
        {
-         mpath = gtk_tree_path_copy (g_object_get_data (G_OBJECT (i->data), "gtk-combo-box-item-path"));
+         
+         mpath = g_object_get_data (G_OBJECT (i->data), "gtk-combo-box-item-path");
+         if (!mpath)
+           continue;
+         
+         mpath = gtk_tree_path_copy (mpath);
        }
       else if (GTK_IS_CELL_VIEW (GTK_BIN (i->data)->child))
        {
@@ -4172,7 +4177,7 @@ gtk_combo_box_set_active (GtkComboBox *combo_box,
 
   if (index_ != -1)
     path = gtk_tree_path_new_from_indices (index_, -1);
-  
+   
   gtk_combo_box_set_active_internal (combo_box, path);
 
   if (path)