aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-main-window.c
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-08-03 23:49:10 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-08-04 17:10:20 +0800
commit2e7a0efc837d4b38290dffbd04a1c9d70df64db2 (patch)
treec779badde862e83bac3fa393bafa4183c584f6ba /src/empathy-main-window.c
parentd801233c1f25596c429d75d03ec6282d1b3828e2 (diff)
downloadgsoc2013-empathy-2e7a0efc837d4b38290dffbd04a1c9d70df64db2.tar
gsoc2013-empathy-2e7a0efc837d4b38290dffbd04a1c9d70df64db2.tar.gz
gsoc2013-empathy-2e7a0efc837d4b38290dffbd04a1c9d70df64db2.tar.bz2
gsoc2013-empathy-2e7a0efc837d4b38290dffbd04a1c9d70df64db2.tar.lz
gsoc2013-empathy-2e7a0efc837d4b38290dffbd04a1c9d70df64db2.tar.xz
gsoc2013-empathy-2e7a0efc837d4b38290dffbd04a1c9d70df64db2.tar.zst
gsoc2013-empathy-2e7a0efc837d4b38290dffbd04a1c9d70df64db2.zip
Use the new enum everywhere
And use strings for the --show-preferences argument.
Diffstat (limited to 'src/empathy-main-window.c')
-rw-r--r--src/empathy-main-window.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index 3d09e5255..3ecb939a4 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -1877,7 +1877,7 @@ main_window_edit_blocked_contacts_cb (GtkAction *action,
void
empathy_main_window_show_preferences (EmpathyMainWindow *window,
- gint tab)
+ const gchar *tab)
{
EmpathyMainWindowPriv *priv = GET_PRIV (window);
@@ -1891,7 +1891,7 @@ empathy_main_window_show_preferences (EmpathyMainWindow *window,
gtk_window_present (GTK_WINDOW (priv->preferences));
}
- if (tab != -1)
+ if (tab != NULL)
empathy_preferences_show_tab (
EMPATHY_PREFERENCES (priv->preferences), tab);
}
@@ -1900,7 +1900,7 @@ static void
main_window_edit_preferences_cb (GtkAction *action,
EmpathyMainWindow *window)
{
- empathy_main_window_show_preferences (window, -1);
+ empathy_main_window_show_preferences (window, NULL);
}
static void