[PATCH] Glade 3.8.5 bugfix

Ingo Brückl <[email protected]> Mon, 11 Apr 2016 19:20:48 +0200
Newsgroups gmane.comp.gnome.glade.devel
Message-ID <[email protected]>
--37562289412163109364417940
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

See attachment.

Ingo

--37562289412163109364417940
Content-Type: text/x-diff;; charset=us-ascii
Content-Disposition: attachment; filename="0001-Add-displayable-values-for-properties.patch"
Content-Transfer-Encoding: 7bit

From 34d32e418e692020855b7a70c6b55d79b6a1bf0f Mon Sep 17 00:00:00 2001
From: =?ISO-8859-1?q?Ingo=20Br=FCckl?= <[email protected]>
Date: Sun, 13 Mar 2016 01:24:23 +0100
Subject: [PATCH] Add displayable values for properties

Add them for:

  GtkToolPalette::icon-size
  GtkToolItemGroup::ellipsize
  GtkToolItemGroup::header-relief

This fixes GNOME Bugzilla bug 749796.

diff --git a/plugins/gtk+/gtk+.xml.in b/plugins/gtk+/gtk+.xml.in
index 27cc395..f82d615 100644
--- a/plugins/gtk+/gtk+.xml.in
+++ b/plugins/gtk+/gtk+.xml.in
@@ -580,17 +580,7 @@ embedded in another object</_tooltip>
 	    <value id="GTK_TOOLBAR_BOTH_HORIZ" _name="Text beside icons"/>
 	  </displayable-values>
 	</property>
-      	<property id="icon-size" since="2.10">
-  	  <displayable-values>
-	    <value id="GTK_ICON_SIZE_INVALID" _name="Invalid"/>
-	    <value id="GTK_ICON_SIZE_MENU" _name="Menu"/>
-	    <value id="GTK_ICON_SIZE_SMALL_TOOLBAR" _name="Small Toolbar"/>
-	    <value id="GTK_ICON_SIZE_LARGE_TOOLBAR" _name="Large Toolbar"/>
-	    <value id="GTK_ICON_SIZE_BUTTON" _name="Button"/>
-	    <value id="GTK_ICON_SIZE_DND" _name="Drag &amp; Drop"/>
-	    <value id="GTK_ICON_SIZE_DIALOG" _name="Dialog"/>
-	  </displayable-values>
-	</property>
+      	<property id="icon-size" since="2.10"/>
       </properties>
 
       <packing-properties>
@@ -627,7 +617,17 @@ embedded in another object</_tooltip>
       <properties>
       	<property id="icon-size-set" disabled="True"/>
       	<property id="toolbar-style" save-always="True" optional="True" optional-default="False" weight="0.4"/>
-      	<property id="icon-size" optional="True" optional-default="False" weight="0.5"/>
+      	<property id="icon-size" optional="True" optional-default="False" weight="0.5">
+      	  <displayable-values>
+      	    <value id="GTK_ICON_SIZE_INVALID" _name="Invalid"/>
+      	    <value id="GTK_ICON_SIZE_MENU" _name="Menu"/>
+      	    <value id="GTK_ICON_SIZE_SMALL_TOOLBAR" _name="Small Toolbar"/>
+      	    <value id="GTK_ICON_SIZE_LARGE_TOOLBAR" _name="Large Toolbar"/>
+      	    <value id="GTK_ICON_SIZE_BUTTON" _name="Button"/>
+      	    <value id="GTK_ICON_SIZE_DND" _name="Drag &amp; Drop"/>
+      	    <value id="GTK_ICON_SIZE_DIALOG" _name="Dialog"/>
+      	  </displayable-values>
+      	</property>
       </properties>
 
       <packing-properties>
@@ -662,6 +662,21 @@ embedded in another object</_tooltip>
 	    <type>GParamBoolean</type>
 	  </parameter-spec>
         </property>
+        <property id="ellipsize">
+	  <displayable-values>
+	    <value id="PANGO_ELLIPSIZE_NONE" _name="None"/>
+	    <value id="PANGO_ELLIPSIZE_START" _name="Start"/>
+	    <value id="PANGO_ELLIPSIZE_MIDDLE" _name="Middle"/>
+	    <value id="PANGO_ELLIPSIZE_END" _name="End"/>
+	  </displayable-values>
+        </property>
+        <property id="header-relief">
+	  <displayable-values>
+	    <value id="GTK_RELIEF_NORMAL" _name="Normal"/>
+	    <value id="GTK_RELIEF_HALF" _name="Half"/>
+	    <value id="GTK_RELIEF_NONE" _name="None"/>
+	  </displayable-values>
+        </property>
       </properties>
 
       <packing-properties>
@@ -829,14 +844,6 @@ embedded in another object</_tooltip>
 	    <value id="GTK_JUSTIFY_FILL" _name="Fill"/>
 	  </displayable-values>
 	</property>
-      	<property id="ellipsize">
-  	  <displayable-values>
-	    <value id="PANGO_ELLIPSIZE_NONE" _name="None"/>
-	    <value id="PANGO_ELLIPSIZE_START" _name="Start"/>
-	    <value id="PANGO_ELLIPSIZE_MIDDLE" _name="Middle"/>
-	    <value id="PANGO_ELLIPSIZE_END" _name="End"/>
-	  </displayable-values>
-	</property>
       	<property id="wrap-mode" since="2.10">
   	  <displayable-values>
              <value id="PANGO_WRAP_WORD" _name="Word"/>
@@ -988,13 +995,7 @@ embedded in another object</_tooltip>
 	  </parameter-spec>
 	  <_tooltip>The response ID of this button in a dialog</_tooltip>
 	</property>
-      	<property id="relief">
-  	  <displayable-values>
-	    <value id="GTK_RELIEF_NORMAL" _name="Normal"/>
-	    <value id="GTK_RELIEF_HALF" _name="Half"/>
-	    <value id="GTK_RELIEF_NONE" _name="None"/>
-	  </displayable-values>
-	</property>
+      	<property id="relief"/>
 
 	<!-- GtkActivatable -->
       	<property id="related-action" _name="Related Action" custom-layout="True" since="2.16" save="False" needs-sync="True"/>
@@ -1103,17 +1104,7 @@ embedded in another object</_tooltip>
     <glade-widget-class name="GtkScaleButton" generic-name="scalebutton" _title="Scale Button" since="2.12">
       <properties>
         <property id="orientation" since="2.14"/>
-      	<property id="size">
-  	  <displayable-values>
-	    <value id="GTK_ICON_SIZE_INVALID" _name="Invalid"/>
-	    <value id="GTK_ICON_SIZE_MENU" _name="Menu"/>
-	    <value id="GTK_ICON_SIZE_SMALL_TOOLBAR" _name="Small Toolbar"/>
-	    <value id="GTK_ICON_SIZE_LARGE_TOOLBAR" _name="Large Toolbar"/>
-	    <value id="GTK_ICON_SIZE_BUTTON" _name="Button"/>
-	    <value id="GTK_ICON_SIZE_DND" _name="Drag &amp; Drop"/>
-	    <value id="GTK_ICON_SIZE_DIALOG" _name="Dialog"/>
-	  </displayable-values>
-	</property>
+      	<property id="size"/>
 
 	<!-- These props dont apply to scale buttons -->
 	<property id="glade-type" disabled="True"/>
-- 
2.4.2


--37562289412163109364417940
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Glade-devel maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/glade-devel

--37562289412163109364417940--