Mailinglist Archive: yast-commit (953 mails)

< Previous Next >
[yast-commit] r49599 - in /trunk/gtk: ChangeLog src/YGComboBox.cc
  • From: rpmcruz@xxxxxxxxxxxxxxxx
  • Date: Sat, 02 Aug 2008 17:59:40 -0000
  • Message-id: <20080802175940.ABC62275B9@xxxxxxxxxxxxxxxx>
Author: rpmcruz
Date: Sat Aug 2 19:59:40 2008
New Revision: 49599

URL: http://svn.opensuse.org/viewcvs/yast?rev=49599&view=rev
Log:
* src/YGTable.cc: looks like yast2-qt sends two signals when a combo box
item is selected. Replicate the behavior as the printer tool depends on
it.

Modified:
trunk/gtk/ChangeLog
trunk/gtk/src/YGComboBox.cc

Modified: trunk/gtk/ChangeLog
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=49599&r1=49598&r2=49599&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Sat Aug 2 19:59:40 2008
@@ -9,6 +9,9 @@
it was Introduced when added the multiSelection flag.
GtkTreeSelection::changed signal works funny; use
GtkTreeView::cursor_changed.

+ * src/YGTable.cc: looks like yast2-qt sends two signals when a combo box
+ item is selected. Replicate the behavior as the printer tool depends on
it.
+
2008-07-31 Ricardo Cruz <rpmcruz@xxxxxxxxxxxxxxxxxxx>

* src/YGPackageSelector.cc: online update was broken.

Modified: trunk/gtk/src/YGComboBox.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/YGComboBox.cc?rev=49599&r1=49598&r2=49599&view=diff
==============================================================================
--- trunk/gtk/src/YGComboBox.cc (original)
+++ trunk/gtk/src/YGComboBox.cc Sat Aug 2 19:59:40 2008
@@ -137,12 +137,18 @@
/* 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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages