[ekiga] Modified the order in which signals are emitted in the roster view widget
- From: Julien Puydt <jpuydt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Modified the order in which signals are emitted in the roster view widget
- Date: Fri, 8 Oct 2010 14:11:25 +0000 (UTC)
commit 709a5b99decb334417ff5687455361777ee4487a
Author: Julien Puydt <jpuydt gnome org>
Date: Fri Oct 8 16:05:51 2010 +0200
Modified the order in which signals are emitted in the roster view widget
Now it first says what isn't selected anymore, and only then what is now
selected -- otherwise, code which listens to several signals will end up
thinking nothing is selected anymore!
lib/engine/gui/gtk-frontend/roster-view-gtk.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/roster-view-gtk.cpp b/lib/engine/gui/gtk-frontend/roster-view-gtk.cpp
index 8ab26ef..743d662 100644
--- a/lib/engine/gui/gtk-frontend/roster-view-gtk.cpp
+++ b/lib/engine/gui/gtk-frontend/roster-view-gtk.cpp
@@ -668,16 +668,16 @@ on_selection_changed (GtkTreeSelection* selection,
case TYPE_PRESENTITY: {
- g_signal_emit (self, signals[PRESENTITY_SELECTED_SIGNAL], 0, presentity);
g_signal_emit (self, signals[HEAP_SELECTED_SIGNAL], 0, NULL);
g_signal_emit (self, signals[HEAP_GROUP_SELECTED_SIGNAL], 0, NULL, NULL);
+ g_signal_emit (self, signals[PRESENTITY_SELECTED_SIGNAL], 0, presentity);
break;
}
case TYPE_HEAP: {
g_signal_emit (self, signals[PRESENTITY_SELECTED_SIGNAL], 0, NULL);
- g_signal_emit (self, signals[HEAP_SELECTED_SIGNAL], 0, heap);
g_signal_emit (self, signals[HEAP_GROUP_SELECTED_SIGNAL], 0, NULL, NULL);
+ g_signal_emit (self, signals[HEAP_SELECTED_SIGNAL], 0, heap);
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]