aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-main-window.c
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-02-03 17:03:16 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-02-03 17:03:16 +0800
commite6d0aad4ecfdaa8628692571add867bd17837eda (patch)
tree812dbb69145a4c4cc6a16c0f59a1ebe7543fc5d5 /src/empathy-main-window.c
parentee3081ae4ceb5c95bc8de4cf644784b07c63b9cf (diff)
downloadgsoc2013-empathy-e6d0aad4ecfdaa8628692571add867bd17837eda.tar
gsoc2013-empathy-e6d0aad4ecfdaa8628692571add867bd17837eda.tar.gz
gsoc2013-empathy-e6d0aad4ecfdaa8628692571add867bd17837eda.tar.bz2
gsoc2013-empathy-e6d0aad4ecfdaa8628692571add867bd17837eda.tar.lz
gsoc2013-empathy-e6d0aad4ecfdaa8628692571add867bd17837eda.tar.xz
gsoc2013-empathy-e6d0aad4ecfdaa8628692571add867bd17837eda.tar.zst
gsoc2013-empathy-e6d0aad4ecfdaa8628692571add867bd17837eda.zip
Add a getter for the main window widget
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk> svn path=/trunk/; revision=2390
Diffstat (limited to 'src/empathy-main-window.c')
-rw-r--r--src/empathy-main-window.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index 3bf94a46d..57872a7b5 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -108,6 +108,8 @@ typedef struct {
GList *widgets_connected;
} EmpathyMainWindow;
+static EmpathyMainWindow *window = NULL;
+
static void main_window_destroy_cb (GtkWidget *widget,
EmpathyMainWindow *window);
static void main_window_favorite_chatroom_menu_setup (EmpathyMainWindow *window);
@@ -487,9 +489,14 @@ main_window_contact_presence_changed_cb (EmpathyContactMonitor *monitor,
}
GtkWidget *
+empathy_main_window_get (void)
+{
+ return window != NULL ? window->window : NULL;
+}
+
+GtkWidget *
empathy_main_window_show (void)
{
- static EmpathyMainWindow *window = NULL;
EmpathyContactList *list_iface;
EmpathyContactMonitor *monitor;
GladeXML *glade;