[ekiga] Main Window: Moved the "show offline contacts" pref here.
- From: Damien Sandras <dsandras src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ekiga] Main Window: Moved the "show offline contacts" pref here.
- Date: Sun, 18 Mar 2012 16:59:38 +0000 (UTC)
commit ccf4cdd46271818746dd10c43dd609c7b779807e
Author: Damien Sandras <dsandras beip be>
Date: Sun Mar 18 17:58:48 2012 +0100
Main Window: Moved the "show offline contacts" pref here.
Let's reduce the preferences window settings to the minimum, especially
for this setting which people would not expect to be there.
src/gui/main_window.cpp | 10 ++++++++++
src/gui/preferences.cpp | 2 --
2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/src/gui/main_window.cpp b/src/gui/main_window.cpp
index a246bed..abf46ee 100644
--- a/src/gui/main_window.cpp
+++ b/src/gui/main_window.cpp
@@ -1692,6 +1692,7 @@ ekiga_main_window_init_menu (EkigaMainWindow *mw)
GtkWidget *assistant_window = NULL;
PanelSection cps = DIALPAD;
+ bool show_offline_contacts = false;
g_return_if_fail (mw != NULL);
@@ -1706,6 +1707,7 @@ ekiga_main_window_init_menu (EkigaMainWindow *mw)
/* Default values */
cps = (PanelSection) gm_conf_get_int (USER_INTERFACE_KEY "main_window/panel_section");
+ show_offline_contacts = gm_conf_get_bool (CONTACTS_KEY "show_offline_contacts");
static MenuEntry gnomemeeting_menu [] =
{
@@ -1795,6 +1797,14 @@ ekiga_main_window_init_menu (EkigaMainWindow *mw)
(gpointer) USER_INTERFACE_KEY "main_window/panel_section",
(cps == CALL), TRUE),
+ GTK_MENU_SEPARATOR,
+
+ GTK_MENU_TOGGLE_ENTRY ("showofflinecontacts", _("Show offline _contacts"), _("Show offline contacts"),
+ NULL, 0,
+ G_CALLBACK (toggle_menu_changed_cb),
+ (gpointer) CONTACTS_KEY "show_offline_contacts",
+ show_offline_contacts, TRUE),
+
GTK_MENU_NEW(_("_Help")),
GTK_MENU_ENTRY("help", NULL,
diff --git a/src/gui/preferences.cpp b/src/gui/preferences.cpp
index 33cb4d7..04e8812 100644
--- a/src/gui/preferences.cpp
+++ b/src/gui/preferences.cpp
@@ -461,8 +461,6 @@ gm_pw_init_interface_page (GtkWidget *prefs_window,
gnome_prefs_toggle_new (subsection, _("Start _hidden"), USER_INTERFACE_KEY "start_hidden", _("If enabled, Ekiga will start hidden provided that the notification area is present in the GNOME panel"), 1);
- gnome_prefs_toggle_new (subsection, _("Show offline _contacts"), CONTACTS_KEY "show_offline_contacts", _("If enabled, offline contacts will be shown in the roster"), 2);
-
/* Video Display */
subsection = gnome_prefs_subsection_new (prefs_window, container,
_("Video Display"), 1, 2);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]