Author: rpmcruz
Date: Fri Dec 10 00:40:54 2010
New Revision: 62987
URL: http://svn.opensuse.org/viewcvs/yast?rev=62987&view=rev
Log:
* src/YGComboBox.cc: bug fix 655977: don't layout
combo-box popup menu as a table.
Modified:
branches/SuSE-Code-11-SP1-Branch/gtk/ChangeLog
branches/SuSE-Code-11-SP1-Branch/gtk/src/YGComboBox.cc
Modified: branches/SuSE-Code-11-SP1-Branch/gtk/ChangeLog
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/gtk/ChangeLog?rev=62987&r1=62986&r2=62987&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP1-Branch/gtk/ChangeLog (original)
+++ branches/SuSE-Code-11-SP1-Branch/gtk/ChangeLog Fri Dec 10 00:40:54 2010
@@ -1,3 +1,8 @@
+2010-12-09 Ricardo Cruz
+
+ * src/YGComboBox.cc: bug fix 655977: don't layout
+ combo-box popup menu as a table.
+
2010-03-04 Ricardo Cruz
* src/YGWidget.cc: bug fix 583228: misplacing colon
Modified: branches/SuSE-Code-11-SP1-Branch/gtk/src/YGComboBox.cc
URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/gtk/src/YGComboBox.cc?rev=62987&r1=62986&r2=62987&view=diff
==============================================================================
--- branches/SuSE-Code-11-SP1-Branch/gtk/src/YGComboBox.cc (original)
+++ branches/SuSE-Code-11-SP1-Branch/gtk/src/YGComboBox.cc Fri Dec 10 00:40:54 2010
@@ -36,9 +36,6 @@
"pixbuf", YGSelectionModel::ICON_COLUMN, NULL);
connect (getWidget(), "changed", G_CALLBACK (selected_changed_cb), this);
- // realize doesn't seem reliable -- expose then disconnect
- g_signal_connect (G_OBJECT (getWidget()), "expose-event",
- G_CALLBACK (realize_cb), this);
}
inline GtkComboBox *getComboBox()
@@ -131,21 +128,6 @@
YGLABEL_WIDGET_IMPL (YComboBox)
YGSELECTION_WIDGET_IMPL (YComboBox)
-
- // callbacks
-
- static gboolean realize_cb (GtkWidget *widget, GdkEventExpose *event,
- YGComboBox *pThis)
- {
- // some combo boxes have too many items -- wrap the thing in columns
- int rows;
- pThis->getMaxDepth (&rows);
- int cols = MIN (rows / 20, 5) + 1;
- if (cols > 1) // this changes the popup width, so only set it for cols > 1
- gtk_combo_box_set_wrap_width (pThis->getComboBox(), cols);
- g_signal_handlers_disconnect_by_func (widget, (gpointer) realize_cb, pThis);
- return FALSE;
- }
};
YComboBox *YGWidgetFactory::createComboBox (YWidget *parent, const string &label, bool editable)
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org