summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Thurman <tthurman@gnome.org>2009-07-10 06:11:40 -0400
committerThomas Thurman <tthurman@gnome.org>2009-07-10 06:11:40 -0400
commit6d0bd465c0c8850415bb74cd4c975b4890ebad5f (patch)
treeee1a9074bb7967dd0db7b9220abd16ee87036526
parent8948b47fc55538f61261bf8b1b812fd0fdb7b470 (diff)
downloadmetacity-6d0bd465c0c8850415bb74cd4c975b4890ebad5f.tar.gz
stubs
-rw-r--r--src/Makefile.am4
-rw-r--r--src/ui/matching.c43
-rw-r--r--src/ui/matching.h49
3 files changed, 95 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index bd3420f9..b0735db6 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -97,7 +97,9 @@ metacity_SOURCES= \
ui/themewidget.c \
ui/themewidget.h \
ui/ui.c \
- include/all-keybindings.h
+ include/all-keybindings.h \
+ ui/matching.c \
+ ui/matching.h
# by setting libmetacity_private_la_CFLAGS, the files shared with
# metacity proper will be compiled with different names.
diff --git a/src/ui/matching.c b/src/ui/matching.c
new file mode 100644
index 00000000..16dca745
--- /dev/null
+++ b/src/ui/matching.c
@@ -0,0 +1,43 @@
+/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
+
+/* Window matching */
+
+/*
+ * Copyright (C) 2009 Thomas Thurman
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ * 02111-1307, USA.
+ */
+
+#include "matching.h"
+
+MetaMatching* meta_matching_load_from_role (gchar *role)
+{
+ /* stub */
+ return NULL;
+}
+
+void meta_matching_save_to_role (gchar *role, MetaMatching *matching)
+{
+ /* stub */
+}
+
+void meta_matching_save_all (void)
+{
+ /* stub */
+}
+
+/* eof matching.c */
+
diff --git a/src/ui/matching.h b/src/ui/matching.h
new file mode 100644
index 00000000..7eb2437a
--- /dev/null
+++ b/src/ui/matching.h
@@ -0,0 +1,49 @@
+/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
+
+/* Window matching */
+
+/*
+ * Copyright (C) 2009 Thomas Thurman
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ * 02111-1307, USA.
+ */
+
+#ifndef META_MATCHING_H
+#define META_MATCHING_H
+
+#include "common.h"
+
+/**
+ * Represents the position of a given window on a display.
+ */
+typedef struct
+{
+ gint x;
+ gint y;
+ guint width;
+ guint height;
+ guint desktop;
+} MetaMatching;
+
+MetaMatching* meta_matching_load_from_role (gchar *role);
+
+void meta_matching_save_to_role (gchar *role, MetaMatching *matching);
+
+void meta_matching_save_all (void);
+
+#endif
+
+/* eof matching.h */