devilspie r213 - in trunk: . src



Author: rburton
Date: Sun Feb 24 19:41:03 2008
New Revision: 213
URL: http://svn.gnome.org/viewvc/devilspie?rev=213&view=rev

Log:
2008-02-24  Ross Burton  <ross burtonini com>

	* src/actions.[ch]:
	* src/parser.c:
	Add unfullscreen action, thanks Mathias Dahl.


Modified:
   trunk/ChangeLog
   trunk/src/actions.c
   trunk/src/actions.h
   trunk/src/parser.c

Modified: trunk/src/actions.c
==============================================================================
--- trunk/src/actions.c	(original)
+++ trunk/src/actions.c	Sun Feb 24 19:41:03 2008
@@ -278,6 +278,16 @@
 }
 
 /**
+ * Make the current window not fullscreen.
+ */
+
+ESExpResult *func_unfullscreen(ESExp *f, int argc, ESExpResult **argv, Context *c) {
+  wnck_window_set_fullscreen (c->window, FALSE);
+  if (debug) g_printerr(_("Unsetting fullscreen\n"));
+  return e_sexp_result_new_bool (f, TRUE);
+}
+
+/**
  * Focus the current window.
  */
 ESExpResult *func_focus(ESExp *f, int argc, ESExpResult **argv, Context *c) {

Modified: trunk/src/actions.h
==============================================================================
--- trunk/src/actions.h	(original)
+++ trunk/src/actions.h	Sun Feb 24 19:41:03 2008
@@ -29,6 +29,7 @@
 
 ESExpResult *func_geometry(ESExp *f, int argc, ESExpResult **argv, Context *c);
 ESExpResult *func_fullscreen(ESExp *f, int argc, ESExpResult **argv, Context *c);
+ESExpResult *func_unfullscreen(ESExp *f, int argc, ESExpResult **argv, Context *c);
 ESExpResult *func_focus(ESExp *f, int argc, ESExpResult **argv, Context *c);
 ESExpResult *func_center(ESExp *f, int argc, ESExpResult **argv, Context *c);
 ESExpResult *func_maximize(ESExp *f, int argc, ESExpResult **argv, Context *c);

Modified: trunk/src/parser.c
==============================================================================
--- trunk/src/parser.c	(original)
+++ trunk/src/parser.c	Sun Feb 24 19:41:03 2008
@@ -56,6 +56,7 @@
   { "hex", func_hex, FALSE },
   { "geometry", func_geometry, FALSE },
   { "fullscreen", func_fullscreen, FALSE },
+  { "unfullscreen", func_unfullscreen, FALSE },
   { "focus", func_focus, FALSE },
   { "center", func_center, FALSE },
   { "maximize", func_maximize, FALSE },



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