[glade] * plugins/gtk+/gtk+.xml.in: Add support for editing GtkOffscreenWindow, tricked this out by just



commit b8bb26d76d8b1b1b8c626e1e8a2130e9265d5092
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Sat Jan 29 19:36:20 2011 +0900

    	* plugins/gtk+/gtk+.xml.in: Add support for editing GtkOffscreenWindow, tricked
    	  this out by just using the "parent" xml attribute and deriving GtkWindow and
    	  disabling all the irrelevant GtkWindow properties.

 ChangeLog                |    4 ++++
 plugins/gtk+/gtk+.xml.in |   38 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 42 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 31deb33..4242e0e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,10 @@
 	  change... committing the data when there is no change can cause the editor to
 	  load itself, this editor does not deal with that well. Fixes crasher bug 622839.
 
+	* plugins/gtk+/gtk+.xml.in: Add support for editing GtkOffscreenWindow, tricked
+	  this out by just using the "parent" xml attribute and deriving GtkWindow and
+	  disabling all the irrelevant GtkWindow properties.
+
 2011-01-28  Tristan Van Berkom <tristanvb openismus com>
 
 	* gladeui/glade-xml-utils.h, gladeui/glade-widget-adaptor.[ch], gladeui/glade-widget.[ch]:
diff --git a/plugins/gtk+/gtk+.xml.in b/plugins/gtk+/gtk+.xml.in
index 639a356..9b26b10 100644
--- a/plugins/gtk+/gtk+.xml.in
+++ b/plugins/gtk+/gtk+.xml.in
@@ -441,6 +441,43 @@ embedded in another object</_tooltip>
       </properties>
     </glade-widget-class>
 
+    <glade-widget-class name="GtkOffscreenWindow" generic-name="offscreenwindow" _title="Offscreen Window" 
+			parent="GtkWindow" toplevel="True" default-width="440" default-height="250">
+
+      <properties> 
+	<!-- Disable a handfull of properties that dont make sense for GtkOffScreenWindow
+	     (all window properties actually)
+	  -->
+	<property id="accel-groups" disabled="True"/>
+	<property id="opacity" disabled="True"/>
+	<property id="startup-id" disabled="True"/>
+	<property id="transient-for" disabled="True"/>
+	<property id="icon" disabled="True"/>
+	<property id="icon-name" disabled="True"/>
+     	<property id="gravity" disabled="True"/>
+	<property id="modal" disabled="True"/>
+	<property id="default-width" disabled="True"/>
+	<property id="default-height" disabled="True"/>
+	<property id="type-hint" disabled="True"/>
+	<property id="type" disabled="True"/>
+	<property id="resizable" disabled="True" />
+	<property id="decorated" disabled="True" />
+	<property id="deletable" disabled="True"/>
+	<property id="title" disabled="True"/>
+      	<property id="window-position" disabled="True"/>
+      	<property id="skip-taskbar-hint" disabled="True"/>
+      	<property id="skip-pager-hint" disabled="True"/>
+      	<property id="urgency-hint" disabled="True"/>
+      	<property id="has-resize-grip" disabled="True"/>
+      	<property id="role" disabled="True"/>
+      	<property id="accept-focus" disabled="True"/>
+      	<property id="focus-on-map" disabled="True"/>
+      	<property id="mnemonics-visible" disabled="True"/>
+      	<property id="destroy-with-parent" disabled="True"/>
+      </properties>
+    </glade-widget-class>
+
+
     <glade-widget-class name="GtkMenuShell" _title="Menu Shell" use-placeholders="False" since="2.16">
       <post-create-function>empty</post-create-function>
       <add-child-verify-function>glade_gtk_menu_shell_add_verify</add-child-verify-function>
@@ -3445,6 +3482,7 @@ embedded in another object</_tooltip>
 
   <glade-widget-group name="gtk-toplevels" _title="Toplevels">
     <glade-widget-class-ref name="GtkWindow"/>
+    <glade-widget-class-ref name="GtkOffscreenWindow"/>
     <glade-widget-class-ref name="GtkDialog"/>
     <glade-widget-class-ref name="GtkAboutDialog"/>
     <glade-widget-class-ref name="GtkColorSelectionDialog"/>



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