[metacity/matching] start of load routine



commit b6cc1d38b537012cb746b8bb5f9dfc4ae8c0524a
Author: Thomas Thurman <tthurman gnome org>
Date:   Fri Jul 10 08:14:14 2009 -0400

    start of load routine

 src/core/matching.c |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)
---
diff --git a/src/core/matching.c b/src/core/matching.c
index 619e532..1888b12 100644
--- a/src/core/matching.c
+++ b/src/core/matching.c
@@ -55,9 +55,21 @@ get_window_role (MetaWindow *window)
 void
 meta_matching_load_from_role (MetaWindow *window)
 {
+  gint x, y, w, h;
+  gchar *role = get_window_role (window);
+
+  if (!role)
+      return;
+
   load_matching_data ();
 
-  /* stub */
+  /* FIXME error checking */
+  x = g_key_file_get_integer (matching_keyfile, role, "x", NULL);
+  y = g_key_file_get_integer (matching_keyfile, role, "y", NULL);
+  w = g_key_file_get_integer (matching_keyfile, role, "w", NULL);
+  h = g_key_file_get_integer (matching_keyfile, role, "h", NULL);
+
+  
 }
 
 void



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