Bug in gtkd?
Johnson Jones via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jul 31 20:53:57 PDT 2017
Trying a very simple interface. When I add a notebook I get the
following error
(test.exe:4504): Gtk-[1;31mERROR[0m **: failed to add UI:
C:\Test\Main.Glade:27:43 Invalid property: GtkNotebook.tab_hborder
When removing it from the glade file it then crashes with on the
homogenous property. Removing that allows it to work but then
clicking on the border between causes the app to crash.
clicking the link gives
(SongPractice.exe:4796): Gtk-[1;33mWARNING[0m **: Couldn't
export handle, unsupported windowing system
Also, there is no icon on the task bar of the app so no way to
find it if the app is minimized. Not sure why that is, but seems
like it should be there regardless.
The app is
int main(string[] args)
{
gtk.Main.init(args);
auto mw =
(cast(Window)gtk.builder.getObject("MainWindow")); mw.showAll();
gtk.Main.run();
return 0;
}
The Main.Glade file is
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk+" version="2.24"/>
<!-- interface-naming-policy project-wide -->
<object class="GtkWindow" id="MainWindow">
<property name="can_focus">False</property>
<child>
<object class="GtkVPaned" id="vpaned1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<child>
<object class="GtkImage" id="image1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="stock">gtk-missing-image</property>
</object>
<packing>
<property name="resize">False</property>
<property name="shrink">True</property>
</packing>
</child>
<child>
<object class="GtkNotebook" id="notebook1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="scrollable">True</property>
<property name="tab_hborder">0</property>
<property name="homogeneous">True</property>
<child>
<object class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkLinkButton" id="linkbutton1">
<property name="label"
translatable="yes">button</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property
name="receives_default">True</property>
<property name="has_tooltip">True</property>
<property name="relief">none</property>
<property
name="uri">http://glade.gnome.org</property>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
</object>
</child>
<child type="tab">
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property
name="xalign">0.47999998927116394</property>
<property name="ypad">1</property>
<property name="label"
translatable="yes">Settings</property>
</object>
<packing>
<property name="tab_fill">False</property>
</packing>
</child>
</object>
<packing>
<property name="resize">True</property>
<property name="shrink">True</property>
</packing>
</child>
</object>
</child>
</object>
</interface>
More information about the Digitalmars-d-learn
mailing list