[maemo-commits] [maemo-commits] r10088 - in projects/haf/trunk/hildon-desktop: . libhildonwm

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Feb 20 22:45:25 EET 2007
Author: jobi
Date: 2007-02-20 22:45:24 +0200 (Tue, 20 Feb 2007)
New Revision: 10088

Modified:
   projects/haf/trunk/hildon-desktop/ChangeLog
   projects/haf/trunk/hildon-desktop/libhildonwm/hd-entry-info.c
   projects/haf/trunk/hildon-desktop/libhildonwm/hd-entry-info.h
Log:

2007-02-20  Johan Bilien  <johan.bilien at nokia.com>

	* libhildonwm/hd_entry_info.[ch]:
	- added _get_x_window () method



Modified: projects/haf/trunk/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-desktop/ChangeLog	2007-02-20 18:12:06 UTC (rev 10087)
+++ projects/haf/trunk/hildon-desktop/ChangeLog	2007-02-20 20:45:24 UTC (rev 10088)
@@ -1,5 +1,10 @@
 2007-02-20  Johan Bilien  <johan.bilien at nokia.com>
 
+	* libhildonwm/hd_entry_info.[ch]:
+	- added _get_x_window () method
+
+2007-02-20  Johan Bilien  <johan.bilien at nokia.com>
+
 	* src/Makefile.am: Added LAUNCHER_LDFLAGS to the link
 
 2007-02-20  Johan Bilien  <johan.bilien at nokia.com>

Modified: projects/haf/trunk/hildon-desktop/libhildonwm/hd-entry-info.c
===================================================================
--- projects/haf/trunk/hildon-desktop/libhildonwm/hd-entry-info.c	2007-02-20 18:12:06 UTC (rev 10087)
+++ projects/haf/trunk/hildon-desktop/libhildonwm/hd-entry-info.c	2007-02-20 20:45:24 UTC (rev 10088)
@@ -760,6 +760,23 @@
   return NULL;
 }
 
+Window
+hd_entry_info_get_x_window (HDEntryInfo *info)
+{
+  HDWMWatchedWindow *win;
+  g_return_val_if_fail (info, None);
+
+  if (info->type == HD_ENTRY_DESKTOP)
+    return None;
+  
+  win = hd_entry_info_get_window (info);
+
+  if (win)
+    return hd_wm_watched_window_get_x_win (win);
+
+  return None;
+}
+
 gboolean
 hd_entry_info_has_extra_icon (HDEntryInfo *info)
 {

Modified: projects/haf/trunk/hildon-desktop/libhildonwm/hd-entry-info.h
===================================================================
--- projects/haf/trunk/hildon-desktop/libhildonwm/hd-entry-info.h	2007-02-20 18:12:06 UTC (rev 10087)
+++ projects/haf/trunk/hildon-desktop/libhildonwm/hd-entry-info.h	2007-02-20 20:45:24 UTC (rev 10088)
@@ -27,6 +27,8 @@
 #include <glib-object.h>
 #include <gdk/gdkpixbuf.h>
 
+#include <X11/Xlib.h>
+
 #include <libhildonwm/hd-wm-types.h>
 
 G_BEGIN_DECLS
@@ -110,6 +112,7 @@
 
 gboolean     hd_entry_info_has_extra_icon    (HDEntryInfo *info);
 const gchar *hd_entry_info_get_extra_icon    (HDEntryInfo *info);
+Window       hd_entry_info_get_x_window      (HDEntryInfo *info);
 
 G_END_DECLS
 


More information about the maemo-commits mailing list