comment out "response-id" as a ChildProperty to retain compatibility with

2004-02-28  Joaquin Cuenca Abela  <e98cuenc@yahoo.com>

	* widgets/gtkdialog.xml: comment out "response-id" as a ChildProperty
	to retain compatibility with glade-2.  We should reput "response-id"
	as a ChildProperty if that gets indeed accepted as a child-property
	in gtk+ itself.
	* widgets/gtkbutton.xml: add a "response-id" property to each button,
	to keep backwards compatibility with glade-2.
This commit is contained in:
Joaquin Cuenca Abela 2004-02-28 21:53:24 +00:00 committed by Joaquín Cuenca Abela
parent d1677f668a
commit c7bc69b923
3 changed files with 22 additions and 1 deletions

View File

@ -1,3 +1,12 @@
2004-02-28 Joaquin Cuenca Abela <e98cuenc@yahoo.com>
* widgets/gtkdialog.xml: comment out "response-id" as a ChildProperty
to retain compatibility with glade-2. We should reput "response-id"
as a ChildProperty if that gets indeed accepted as a child-property
in gtk+ itself.
* widgets/gtkbutton.xml: add a "response-id" property to each button,
to keep backwards compatibility with glade-2.
2004-02-28 Joaquin Cuenca Abela <e98cuenc@yahoo.com>
* src/glade-editor.c: restrict child-properties to widgets for which

View File

@ -13,8 +13,16 @@
<Enum Id="gtk-apply" Name="Apply"/>
<Enum Id="gtk-close" Name="Close"/>
</Enums>
<SetFunction>glade_gtk_button_set_stock</SetFunction>
<SetFunction>glade_gtk_button_set_stock</SetFunction>
</Property>
<Property Id="response-id" Name="Response ID" Default="0" Common="False">
<Type>Integer</Type>
<Tooltip>The response ID of this button in a dialog (it's NOT useful if this button is not in a GtkDialog)</Tooltip>
<SetFunction>ignore</SetFunction>
<GetFunction>ignore</GetFunction>
</Property>
</Properties>
</GladeWidgetClass>

View File

@ -18,6 +18,9 @@
</Property>
</Properties>
<!-- That's supported, and IMO is the right way to handle response-id (and it works),
but it's not backwards compatible with response-id being a property as in glade-2.
So by now we will just add a fake response-id property to buttons
<ChildProperties>
<Property Id="response-id" Name="Response ID" Default="0" Common="False">
<Type>Integer</Type>
@ -26,5 +29,6 @@
<GetFunction>ignore</GetFunction>
</Property>
</ChildProperties>
-->
</GladeWidgetClass>