[ekiga] Default action in the Call Menu is now Contact based.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Default action in the Call Menu is now Contact based.
- Date: Sun, 11 Mar 2012 12:35:06 +0000 (UTC)
commit a6cc339b0dcdd633c3f68d0a29772c6a4418121b
Author: Damien Sandras <dsandras beip be>
Date: Sun Mar 11 13:33:18 2012 +0100
Default action in the Call Menu is now Contact based.
I have moved the "Call" action right below the contact related
actions because our UI is contact centric.
This displays the dialpad.
If we wanted to refine things, we should either call the selected
contact (if any), or display the dialpad (if no contact selected).
However, it seems rather difficult to implement and will be done later.
src/gui/main_window.cpp | 16 ++++++----------
1 files changed, 6 insertions(+), 10 deletions(-)
---
diff --git a/src/gui/main_window.cpp b/src/gui/main_window.cpp
index 2415fd1..6b2d883 100644
--- a/src/gui/main_window.cpp
+++ b/src/gui/main_window.cpp
@@ -608,11 +608,9 @@ url_changed_cb (GtkEditable *e,
static void
show_dialpad_cb (G_GNUC_UNUSED GtkWidget *widget,
- gpointer data)
+ G_GNUC_UNUSED gpointer data)
{
- EkigaMainWindow *mw = EKIGA_MAIN_WINDOW (data);
-
- gtk_notebook_set_current_page (GTK_NOTEBOOK (mw->priv->main_notebook), 1);
+ gm_conf_set_int (USER_INTERFACE_KEY "main_window/panel_section", DIALPAD);
}
static void
@@ -1817,17 +1815,15 @@ ekiga_main_window_init_menu (EkigaMainWindow *mw)
{
GTK_MENU_NEW (_("_Chat")),
- GTK_MENU_ENTRY("connect", _("Ca_ll"), _("Place a new call"),
- GM_STOCK_PHONE_PICK_UP_16, 'o',
- G_CALLBACK (show_dialpad_cb), mw, TRUE),
-
- GTK_MENU_SEPARATOR,
-
GTK_MENU_ENTRY ("contact", _("Co_ntact"),
_("Act on selected contact"),
GTK_STOCK_EXECUTE, 0,
NULL, NULL, FALSE),
+ GTK_MENU_ENTRY("connect", _("Ca_ll"), _("Place a new call"),
+ GM_STOCK_PHONE_PICK_UP_16, 'o',
+ G_CALLBACK (show_dialpad_cb), mw, TRUE),
+
GTK_MENU_SEPARATOR,
GTK_MENU_ENTRY("add_contact", _("A_dd Contact"), _("Add a contact to the roster"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]