empathy r2390 - trunk/src
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r2390 - trunk/src
- Date: Tue, 3 Feb 2009 09:03:16 +0000 (UTC)
Author: xclaesse
Date: Tue Feb 3 09:03:16 2009
New Revision: 2390
URL: http://svn.gnome.org/viewvc/empathy?rev=2390&view=rev
Log:
Add a getter for the main window widget
Signed-off-by: Sjoerd Simons <sjoerd simons collabora co uk>
Modified:
trunk/src/empathy-main-window.c
trunk/src/empathy-main-window.h
Modified: trunk/src/empathy-main-window.c
==============================================================================
--- trunk/src/empathy-main-window.c (original)
+++ trunk/src/empathy-main-window.c Tue Feb 3 09:03:16 2009
@@ -108,6 +108,8 @@
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 @@
}
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;
Modified: trunk/src/empathy-main-window.h
==============================================================================
--- trunk/src/empathy-main-window.h (original)
+++ trunk/src/empathy-main-window.h Tue Feb 3 09:03:16 2009
@@ -28,6 +28,7 @@
G_BEGIN_DECLS
+GtkWidget *empathy_main_window_get (void);
GtkWidget *empathy_main_window_show (void);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]