[ekiga/ds-fix-boost-leaks] Roster: Added "call" action on double-click or Return.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga/ds-fix-boost-leaks] Roster: Added "call" action on double-click or Return.
- Date: Sun, 1 Nov 2015 14:09:36 +0000 (UTC)
commit d6d6d60f86438d6c8f7fe0a6a2a189aa14bc9cd7
Author: Damien Sandras <dsandras seconix com>
Date: Sun Nov 1 15:08:09 2015 +0100
Roster: Added "call" action on double-click or Return.
We know the engine will provide a call action for most (if not all)
presentities. We can safely use it as default.
lib/engine/gui/gtk-frontend/roster-view-gtk.cpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/roster-view-gtk.cpp b/lib/engine/gui/gtk-frontend/roster-view-gtk.cpp
index df3a000..ec21c43 100644
--- a/lib/engine/gui/gtk-frontend/roster-view-gtk.cpp
+++ b/lib/engine/gui/gtk-frontend/roster-view-gtk.cpp
@@ -718,6 +718,8 @@ on_view_event_after (GtkWidget *tree_view,
if (event->type == GDK_BUTTON_PRESS && event->button == 3 && self->priv->presentity_menu->get_menu ())
gtk_menu_popup (GTK_MENU (self->priv->presentity_menu->get_menu ()),
NULL, NULL, NULL, NULL, event->button, event->time);
+ if ((event->type == GDK_2BUTTON_PRESS && event->button == 1) || (event->type == GDK_KEY_PRESS))
+ g_action_group_activate_action (G_ACTION_GROUP (g_application_get_default ()), "call", NULL);
break;
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]