[empathy] MainWindow: add API to show the preferences window
- From: Emilio Pozuelo Monfort <epm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] MainWindow: add API to show the preferences window
- Date: Thu, 4 Aug 2011 09:13:25 +0000 (UTC)
commit 4f8ce5f258a290f00fc0ebbf13f5e3db3b0b45bd
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date: Tue Aug 2 16:40:51 2011 +0100
MainWindow: add API to show the preferences window
https://bugzilla.gnome.org/show_bug.cgi?id=655884
src/empathy-main-window.c | 12 +++++++++---
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 a9e76a2..4aa720a 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 38879fb..064086a 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__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]