[xchat-gnome] Bug 606176 - Implement win_ptr in xchat_get_info



commit de06d5e48aadd193e58ee9b245b3dbda0bef05b8
Author: Ken VanDine <kvandine gnome org>
Date:   Wed Jan 13 22:26:37 2010 +0530

    Bug 606176 -  Implement win_ptr in xchat_get_info
    
    The win_ptr command from xchat, implemented in xchat-gnome

 src/fe-gnome/fe-gnome.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/fe-gnome/fe-gnome.c b/src/fe-gnome/fe-gnome.c
index 29ea0c3..ee57a26 100644
--- a/src/fe-gnome/fe-gnome.c
+++ b/src/fe-gnome/fe-gnome.c
@@ -804,8 +804,12 @@ fe_gui_info (session * sess, int info_type)
 void *
 fe_gui_info_ptr (session *sess, int info_type)
 {
-	return NULL;
-	/* FIXME implement? */
+        switch (info_type)
+        {
+        case 0: /* native window pointer (for plugins) */
+                return GTK_WINDOW (gui.main_window);
+        }
+        return NULL;
 }
 
 void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]