aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-08-03 20:11:03 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-08-04 17:10:20 +0800
commit07f472213136ac29908a323a9d7612894c7ee5b4 (patch)
treec3ef1d24a8ca35ddcd45189bb3962d949cdb311c /src
parentfd22fd115db8b22a4885402a9cd7c8b846de01ec (diff)
downloadgsoc2013-empathy-07f472213136ac29908a323a9d7612894c7ee5b4.tar
gsoc2013-empathy-07f472213136ac29908a323a9d7612894c7ee5b4.tar.gz
gsoc2013-empathy-07f472213136ac29908a323a9d7612894c7ee5b4.tar.bz2
gsoc2013-empathy-07f472213136ac29908a323a9d7612894c7ee5b4.tar.lz
gsoc2013-empathy-07f472213136ac29908a323a9d7612894c7ee5b4.tar.xz
gsoc2013-empathy-07f472213136ac29908a323a9d7612894c7ee5b4.tar.zst
gsoc2013-empathy-07f472213136ac29908a323a9d7612894c7ee5b4.zip
Preferences: add empathy_preferences_show_tab()
https://bugzilla.gnome.org/show_bug.cgi?id=655884
Diffstat (limited to 'src')
-rw-r--r--src/empathy-preferences.c9
-rw-r--r--src/empathy-preferences.h3
2 files changed, 12 insertions, 0 deletions
diff --git a/src/empathy-preferences.c b/src/empathy-preferences.c
index 589e24f62..dd3aaee13 100644
--- a/src/empathy-preferences.c
+++ b/src/empathy-preferences.c
@@ -1254,3 +1254,12 @@ empathy_preferences_new (GtkWindow *parent)
return self;
}
+
+void
+empathy_preferences_show_tab (EmpathyPreferences *self,
+ gint tab)
+{
+ EmpathyPreferencesPriv *priv = GET_PRIV (self);
+
+ gtk_notebook_set_current_page (GTK_NOTEBOOK (priv->notebook), tab);
+}
diff --git a/src/empathy-preferences.h b/src/empathy-preferences.h
index 0d7204fcc..9f77c892b 100644
--- a/src/empathy-preferences.h
+++ b/src/empathy-preferences.h
@@ -54,6 +54,9 @@ GType empathy_preferences_get_type (void);
GtkWidget *empathy_preferences_new (GtkWindow *parent);
+void empathy_preferences_show_tab (EmpathyPreferences *self,
+ gint tab);
+
G_END_DECLS
#endif /* __EMPATHY_PREFERENCES_H__ */