Author: rpmcruz Date: Sun Aug 3 00:54:11 2008 New Revision: 49600 URL: http://svn.opensuse.org/viewcvs/yast?rev=49600&view=rev Log: It doesn't seem like YComboBox is supposed to send SelectionChanged at all. Modified: trunk/gtk/src/YGComboBox.cc Modified: trunk/gtk/src/YGComboBox.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/YGComboBox.cc?rev=49600&r1=49599&r2=49600&view=diff ============================================================================== --- trunk/gtk/src/YGComboBox.cc (original) +++ trunk/gtk/src/YGComboBox.cc Sun Aug 3 00:54:11 2008 @@ -134,21 +134,7 @@ // Events notifications static void selected_changed_cb (GtkComboBox *widget, YGComboBox *pThis) { - /* selected_changed_cb() is called when a new item was selected or the user has - typed some text on a writable ComboBox. text_changed is true for the later and - false for the former. */ -#if 0 - bool text_changed = GTK_IS_COMBO_BOX_ENTRY (widget) - && pThis->focusItem() == NULL; - if (text_changed) - pThis->emitEvent (YEvent::ValueChanged, true, true); - else - pThis->emitEvent (YEvent::SelectionChanged, true, true); -#else - // yast2-qt seems to effectively do this: (and the printer tool depends on it.) - pThis->emitEvent (YEvent::SelectionChanged, true, true); pThis->emitEvent (YEvent::ValueChanged); -#endif } YGWIDGET_IMPL_COMMON -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org