]> Pileus Git - ~andy/gtk/commitdiff
Add notification, and avoid excessive relayouting.
authorMatthias Clasen <maclas@gmx.de>
Mon, 23 Feb 2004 00:53:05 +0000 (00:53 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 23 Feb 2004 00:53:05 +0000 (00:53 +0000)
Mon Feb 23 01:56:09 2004  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkcombobox.c (gtk_combo_box_set_column_span_column):
* gtk/gtkcombobox.c (gtk_combo_box_set_row_span_column):
* gtk/gtkcombobox.c (gtk_combo_box_set_wrap_width): Add
notification, and avoid excessive relayouting.

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

index 29e65a00bd91de9f81cba0062208a89ec1d4bd51..3fde72f9b827475862887bea0b13c8eb0de240eb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Mon Feb 23 01:56:09 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkcombobox.c (gtk_combo_box_set_column_span_column): 
+       * gtk/gtkcombobox.c (gtk_combo_box_set_row_span_column): 
+       * gtk/gtkcombobox.c (gtk_combo_box_set_wrap_width): Add
+       notification, and avoid excessive relayouting. 
+
 Mon Feb 23 00:38:21 2004  Matthias Clasen  <maclas@gmx.de>
 
        Fix bug 134982, reported by Morten Welinder:
index 29e65a00bd91de9f81cba0062208a89ec1d4bd51..3fde72f9b827475862887bea0b13c8eb0de240eb 100644 (file)
@@ -1,3 +1,10 @@
+Mon Feb 23 01:56:09 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkcombobox.c (gtk_combo_box_set_column_span_column): 
+       * gtk/gtkcombobox.c (gtk_combo_box_set_row_span_column): 
+       * gtk/gtkcombobox.c (gtk_combo_box_set_wrap_width): Add
+       notification, and avoid excessive relayouting. 
+
 Mon Feb 23 00:38:21 2004  Matthias Clasen  <maclas@gmx.de>
 
        Fix bug 134982, reported by Morten Welinder:
index 29e65a00bd91de9f81cba0062208a89ec1d4bd51..3fde72f9b827475862887bea0b13c8eb0de240eb 100644 (file)
@@ -1,3 +1,10 @@
+Mon Feb 23 01:56:09 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkcombobox.c (gtk_combo_box_set_column_span_column): 
+       * gtk/gtkcombobox.c (gtk_combo_box_set_row_span_column): 
+       * gtk/gtkcombobox.c (gtk_combo_box_set_wrap_width): Add
+       notification, and avoid excessive relayouting. 
+
 Mon Feb 23 00:38:21 2004  Matthias Clasen  <maclas@gmx.de>
 
        Fix bug 134982, reported by Morten Welinder:
index 29e65a00bd91de9f81cba0062208a89ec1d4bd51..3fde72f9b827475862887bea0b13c8eb0de240eb 100644 (file)
@@ -1,3 +1,10 @@
+Mon Feb 23 01:56:09 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkcombobox.c (gtk_combo_box_set_column_span_column): 
+       * gtk/gtkcombobox.c (gtk_combo_box_set_row_span_column): 
+       * gtk/gtkcombobox.c (gtk_combo_box_set_wrap_width): Add
+       notification, and avoid excessive relayouting. 
+
 Mon Feb 23 00:38:21 2004  Matthias Clasen  <maclas@gmx.de>
 
        Fix bug 134982, reported by Morten Welinder:
index 29e65a00bd91de9f81cba0062208a89ec1d4bd51..3fde72f9b827475862887bea0b13c8eb0de240eb 100644 (file)
@@ -1,3 +1,10 @@
+Mon Feb 23 01:56:09 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkcombobox.c (gtk_combo_box_set_column_span_column): 
+       * gtk/gtkcombobox.c (gtk_combo_box_set_row_span_column): 
+       * gtk/gtkcombobox.c (gtk_combo_box_set_wrap_width): Add
+       notification, and avoid excessive relayouting. 
+
 Mon Feb 23 00:38:21 2004  Matthias Clasen  <maclas@gmx.de>
 
        Fix bug 134982, reported by Morten Welinder:
index 5253e370974a69d41c8c68f784a12f5d1cd59997..4e22b247e38fb0a685bb94a00503775a3fd4f4bf 100644 (file)
@@ -2499,9 +2499,14 @@ gtk_combo_box_set_wrap_width (GtkComboBox *combo_box,
   g_return_if_fail (GTK_IS_COMBO_BOX (combo_box));
   g_return_if_fail (width > 0);
 
-  combo_box->priv->wrap_width = width;
-
-  gtk_combo_box_relayout (combo_box);
+  if (width != combo_box->priv->wrap_width)
+    {
+      combo_box->priv->wrap_width = width;
+      
+      gtk_combo_box_relayout (combo_box);
+      
+      g_object_notify (G_OBJECT (combo_box), "wrap_width");
+    }
 }
 
 /**
@@ -2526,9 +2531,14 @@ gtk_combo_box_set_row_span_column (GtkComboBox *combo_box,
   col = gtk_tree_model_get_n_columns (combo_box->priv->model);
   g_return_if_fail (row_span >= 0 && row_span < col);
 
-  combo_box->priv->row_column = row_span;
-
-  gtk_combo_box_relayout (combo_box);
+  if (row_span != combo_box->priv->row_column)
+    {
+      combo_box->priv->row_column = row_span;
+      
+      gtk_combo_box_relayout (combo_box);
+      g_object_notify (G_OBJECT (combo_box), "row_span_column");
+    }
 }
 
 /**
@@ -2553,9 +2563,14 @@ gtk_combo_box_set_column_span_column (GtkComboBox *combo_box,
   col = gtk_tree_model_get_n_columns (combo_box->priv->model);
   g_return_if_fail (column_span >= 0 && column_span < col);
 
-  combo_box->priv->col_column = column_span;
+  if (column_span != combo_box->priv->col_column)
+    {
+      combo_box->priv->col_column = column_span;
+      
+      gtk_combo_box_relayout (combo_box);
 
-  gtk_combo_box_relayout (combo_box);
+      g_object_notify (G_OBJECT (combo_box), "column_span_column");
+    }
 }
 
 /**