aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-main-window.c
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-08-03 22:48:18 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-08-04 17:10:20 +0800
commit0ea5743214b87e35e92b867485d9c5a0f8b5e272 (patch)
tree04977d3652aa7506cae5c17e4e11ca9b53e37146 /src/empathy-main-window.c
parent07f472213136ac29908a323a9d7612894c7ee5b4 (diff)
downloadgsoc2013-empathy-0ea5743214b87e35e92b867485d9c5a0f8b5e272.tar
gsoc2013-empathy-0ea5743214b87e35e92b867485d9c5a0f8b5e272.tar.gz
gsoc2013-empathy-0ea5743214b87e35e92b867485d9c5a0f8b5e272.tar.bz2
gsoc2013-empathy-0ea5743214b87e35e92b867485d9c5a0f8b5e272.tar.lz
gsoc2013-empathy-0ea5743214b87e35e92b867485d9c5a0f8b5e272.tar.xz
gsoc2013-empathy-0ea5743214b87e35e92b867485d9c5a0f8b5e272.tar.zst
gsoc2013-empathy-0ea5743214b87e35e92b867485d9c5a0f8b5e272.zip
Allow to specify the tab to open in the preferences
https://bugzilla.gnome.org/show_bug.cgi?id=655884
Diffstat (limited to 'src/empathy-main-window.c')
-rw-r--r--src/empathy-main-window.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index cbe44d6c1..3d09e5255 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -1876,7 +1876,8 @@ main_window_edit_blocked_contacts_cb (GtkAction *action,
}
void
-empathy_main_window_show_preferences (EmpathyMainWindow *window)
+empathy_main_window_show_preferences (EmpathyMainWindow *window,
+ gint tab)
{
EmpathyMainWindowPriv *priv = GET_PRIV (window);
@@ -1889,13 +1890,17 @@ empathy_main_window_show_preferences (EmpathyMainWindow *window)
} else {
gtk_window_present (GTK_WINDOW (priv->preferences));
}
+
+ if (tab != -1)
+ empathy_preferences_show_tab (
+ EMPATHY_PREFERENCES (priv->preferences), tab);
}
static void
main_window_edit_preferences_cb (GtkAction *action,
EmpathyMainWindow *window)
{
- empathy_main_window_show_preferences (window);
+ empathy_main_window_show_preferences (window, -1);
}
static void