I installed glade (= 3.6.7-1) and created a window containing a scrolled
window and saved. Here is what I got:
<?xml version="1.0"?>
<interface>
<requires lib="gtk+" version="2.16"/>
<!-- interface-naming-policy project-wide -->
<object class="GtkWindow" id="window1">
<child>
<object class="GtkScrolledWindow" id="scrolledwindow1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">automatic</property>
<property name="vscrollbar_policy">automatic</property>
<child>
<placeholder/>
</child>
</object>
</child>
</object>
</interface>
As you can see, the values "automatic" (as opposed to "policy_automatic"
or "gtk_policy_automatic") are from glade. I know too little about
glade to know whether this is intentional or a bug.
gate2-in.exe merely reads and parses this XML and generates Ada from
that. Here is a stack trace (reconstructed by hand):
function Find_Tag_With_Attribute (N : Node_Ptr; Tag : UTF8_String;
Key : UTF8_String; Value : UTF8_String
:= "") return Node_Ptr
at glib-xml.adb:954
procedure Gen_Set (N : Node_Ptr; Name, Field1, Field2, Field3, Field4 :
String; File : File_Type; Is_Float : Boolean := False)
at glib-glade.adb:493
procedure Scrolled_Window_Generate (N : Node_Ptr; File : File_Type)
at gtk_generates.adb:1614
If anything ought to add the "Policy_", it is Gen_Set but I don't know
whether changing this procedure would have adverse effects on widgets
other than Scrolled_Window. Maybe you could try?
--
Ludovic Brenta.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]