mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-23 15:45:28 +00:00
Fix TreeViewDemo build
* gtk/Gtk.metadata: mark GetContentArea return as a GtkBox* and remove some unmatched fields on GtkDialog. * sample/TreeViewDemo.cs: use Dialog.ContentArea instead of VBox.
This commit is contained in:
parent
ac0b42f717
commit
cc32e0ef71
|
@ -377,11 +377,9 @@
|
|||
<attr path="/api/namespace/object[@cname='GtkContainer']/method[@cname='gtk_container_child_type']" name="name">SupportedChildType</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkContainer']/virtual_method[@cname='forall']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkDialog']/constructor[@cname='gtk_dialog_new_with_buttons']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkDialog']/field[@name='ActionArea']" name="type">GtkHButtonBox*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkDialog']/field[@name='Vbox']" name="name">VBox</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkDialog']/field[@name='VBox']" name="type">GtkVBox*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkDialog']/method[@name='AddButtons']" name="hidden">1</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkDialog']/method[@name='GetActionArea']/return-type" name="type">GtkHButtonBox*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkDialog']/method[@name='GetContentArea']/return-type" name="type">GtkBox*</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkDialog']/method[@name='Response']" name="name">Respond</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkDialog']/method[@name='SetDefaultResponse']/*/*[@name='response_id']" name="type">GtkResponseType</attr>
|
||||
<attr path="/api/namespace/object[@cname='GtkDialog']/method[@name='SetResponseSensitive']/*/*[@name='response_id']" name="type">GtkResponseType</attr>
|
||||
|
|
|
@ -109,7 +109,7 @@ namespace GtkSamples {
|
|||
dialog.Response += new ResponseHandler (ResponseCB);
|
||||
dialog.SetDefaultSize (480, 100);
|
||||
|
||||
VBox vbox = dialog.VBox;
|
||||
Box vbox = dialog.ContentArea;
|
||||
HBox hbox = new HBox (false, 4);
|
||||
vbox.PackStart (hbox, true, true, 0);
|
||||
|
||||
|
|
Loading…
Reference in a new issue