]> git.0d.be Git - empathy.git/commitdiff
MainWindow: add API to show the preferences window
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Tue, 2 Aug 2011 15:40:51 +0000 (16:40 +0100)
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Thu, 4 Aug 2011 09:10:19 +0000 (10:10 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=655884

src/empathy-main-window.c
src/empathy-main-window.h

index a9e76a286dfade1e653ebc0e95899e1be3bac718..4aa720a0b0740c32ffe7686cd91868844b163aaf 100644 (file)
@@ -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);
 
@@ -1892,6 +1891,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)
index 38879fb29028bb1a94636259b7844b45d2c27be5..064086ab370193baeffbdc37f5c27a66b66bf01e 100644 (file)
@@ -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__ */