diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-08-02 23:40:51 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-08-04 17:10:19 +0800 |
commit | 4f8ce5f258a290f00fc0ebbf13f5e3db3b0b45bd (patch) | |
tree | 1a9533bd3c8e95cdc0b2f2e7d2bcd4ca911ebfb5 | |
parent | 726b480efacd222976fe99200598b294ff8686b8 (diff) | |
download | gsoc2013-empathy-4f8ce5f258a290f00fc0ebbf13f5e3db3b0b45bd.tar gsoc2013-empathy-4f8ce5f258a290f00fc0ebbf13f5e3db3b0b45bd.tar.gz gsoc2013-empathy-4f8ce5f258a290f00fc0ebbf13f5e3db3b0b45bd.tar.bz2 gsoc2013-empathy-4f8ce5f258a290f00fc0ebbf13f5e3db3b0b45bd.tar.lz gsoc2013-empathy-4f8ce5f258a290f00fc0ebbf13f5e3db3b0b45bd.tar.xz gsoc2013-empathy-4f8ce5f258a290f00fc0ebbf13f5e3db3b0b45bd.tar.zst gsoc2013-empathy-4f8ce5f258a290f00fc0ebbf13f5e3db3b0b45bd.zip |
MainWindow: add API to show the preferences window
https://bugzilla.gnome.org/show_bug.cgi?id=655884
-rw-r--r-- | src/empathy-main-window.c | 12 | ||||
-rw-r--r-- | src/empathy-main-window.h | 2 |
2 files changed, 11 insertions, 3 deletions
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c index a9e76a286..4aa720a0b 100644 --- a/src/empathy-main-window.c +++ b/src/empathy-main-window.c @@ -1875,9 +1875,8 @@ main_window_edit_blocked_contacts_cb (GtkAction *action, G_CALLBACK (gtk_widget_destroy), NULL); } -static void -main_window_edit_preferences_cb (GtkAction *action, - EmpathyMainWindow *window) +void +empathy_main_window_show_preferences (EmpathyMainWindow *window) { EmpathyMainWindowPriv *priv = GET_PRIV (window); @@ -1893,6 +1892,13 @@ main_window_edit_preferences_cb (GtkAction *action, } static void +main_window_edit_preferences_cb (GtkAction *action, + EmpathyMainWindow *window) +{ + empathy_main_window_show_preferences (window); +} + +static void main_window_help_about_cb (GtkAction *action, EmpathyMainWindow *window) { diff --git a/src/empathy-main-window.h b/src/empathy-main-window.h index 38879fb29..064086ab3 100644 --- a/src/empathy-main-window.h +++ b/src/empathy-main-window.h @@ -53,6 +53,8 @@ GType empathy_main_window_get_type (void); GtkWidget *empathy_main_window_dup (void); +void empathy_main_window_show_preferences (EmpathyMainWindow *window); + G_END_DECLS #endif /* __EMPATHY_MAIN_WINDOW_H__ */ |