Jump to page: 1 2
Thread overview
Bug in gtkd?
Aug 01, 2017
Johnson Jones
Aug 01, 2017
Mike Wey
Aug 01, 2017
Johnson Jones
Aug 01, 2017
Mike Wey
Aug 02, 2017
Johnson Jones
Aug 02, 2017
Johnson Jones
Aug 02, 2017
Mike Wey
Aug 03, 2017
Johnson Jones
Aug 03, 2017
Johnson Jones
Aug 03, 2017
Johnson Jones
Aug 03, 2017
Mike Wey
Aug 03, 2017
Johnson Jones
Aug 03, 2017
Johnson Jones
Aug 03, 2017
Johnson Jones
Aug 03, 2017
Mike Wey
Aug 03, 2017
Johnson Jones
Aug 05, 2017
Mike Wey
August 01, 2017
Trying a very simple interface. When I add a notebook I get the following error

(test.exe:4504): Gtk-ERROR **: 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-WARNING **: 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>


August 01, 2017
On 01-08-17 05:53, Johnson Jones wrote:
> <requires lib="gtk+" version="2.24"/>

GtkD is currently based on GTK 3 the properties it complains about were removed in GTK 3.0.

Which version of glade are you using?

-- 
Mike Wey
August 01, 2017
On Tuesday, 1 August 2017 at 15:20:08 UTC, Mike Wey wrote:
> On 01-08-17 05:53, Johnson Jones wrote:
>> <requires lib="gtk+" version="2.24"/>
>
> GtkD is currently based on GTK 3 the properties it complains about were removed in GTK 3.0.
>
> Which version of glade are you using?

The latest: Glade 3.8.5
August 01, 2017
On 01-08-17 21:44, Johnson Jones wrote:
> On Tuesday, 1 August 2017 at 15:20:08 UTC, Mike Wey wrote:
>> On 01-08-17 05:53, Johnson Jones wrote:
>>> <requires lib="gtk+" version="2.24"/>
>>
>> GtkD is currently based on GTK 3 the properties it complains about were removed in GTK 3.0.
>>
>> Which version of glade are you using?
> 
> The latest: Glade 3.8.5

Could you check File -> Properties and see what is set as the runtime version? It should be at least 3.0 so it doesn't use things that were removed.

-- 
Mike Wey
August 02, 2017
On Tuesday, 1 August 2017 at 20:18:19 UTC, Mike Wey wrote:
> On 01-08-17 21:44, Johnson Jones wrote:
>> On Tuesday, 1 August 2017 at 15:20:08 UTC, Mike Wey wrote:
>>> On 01-08-17 05:53, Johnson Jones wrote:
>>>> <requires lib="gtk+" version="2.24"/>
>>>
>>> GtkD is currently based on GTK 3 the properties it complains about were removed in GTK 3.0.
>>>
>>> Which version of glade are you using?
>> 
>> The latest: Glade 3.8.5
>
> Could you check File -> Properties and see what is set as the runtime version? It should be at least 3.0 so it doesn't use things that were removed.

There is no File/Properties. If I go to help/about it says 3.8.5. If I go to edit/preferences it says target gtk+ version and the highest is 2.24.

This is where I downloaded it from:

http://ftp.gnome.org/pub/GNOME/binaries/win32/glade/3.8/

It seems I do, in fact have an older version ;/

https://glade.gnome.org/sources.html

I upgraded to 3.14(for some reason I was thinking 8 > 14 ;/). It does have the properties and did warn me about my glade file being old(strange though, the ver 14 looks crappier as the fonts are thinner).

Not a big deal though. Seems ver 3.14 is the newest binaries for windows for some reason ;/ No one has compiled a windows version for 3.20 in over a year.

Not sure of the differences between 3.14 and 3.20 but 3.14 does target gtk+3 while 3.8 targeted gtk+2.

How to build glade 3.20 for windows, or better, request the originators to build it(since they obviously have done it for the previous versions)?



August 02, 2017
Ok, Using msys I was able to get glade 3.20 running. Maybe that will fix everything.
August 02, 2017
On 02-08-17 08:04, Johnson Jones wrote:
> Ok, Using msys I was able to get glade 3.20 running. Maybe that will fix everything.

Great, unfortunately "Use msys2" seems to be the official way to install anything GTK related on windows.

-- 
Mike Wey
August 03, 2017
On Wednesday, 2 August 2017 at 14:51:45 UTC, Mike Wey wrote:
> On 02-08-17 08:04, Johnson Jones wrote:
>> Ok, Using msys I was able to get glade 3.20 running. Maybe that will fix everything.
>
> Great, unfortunately "Use msys2" seems to be the official way to install anything GTK related on windows.

There seems to be a big bug in gtk or gtkD I have a main window that I set the center or always center property and when I run it and try to enlarge the window the window position changes in odd ways and the title changes. The positions, sizes, etc are not calculated properly. Possibly because I'm running on a multimonitor system.

Makes those properties completely unusable.


August 03, 2017
On Wednesday, 2 August 2017 at 14:51:45 UTC, Mike Wey wrote:
> On 02-08-17 08:04, Johnson Jones wrote:
>> Ok, Using msys I was able to get glade 3.20 running. Maybe that will fix everything.
>
> Great, unfortunately "Use msys2" seems to be the official way to install anything GTK related on windows.

... Also, I cannot seem to load a jpg using an imageview

(test.exe:1628): Gtk-WARNING **: Could not load image 'a.jpg': Couldn't recognize the image file format for file 'a.jpg'

Just a normal jpg. Tried a bmp, same thing. It shows fine in glade itself.



August 03, 2017
On Thursday, 3 August 2017 at 03:00:02 UTC, Johnson Jones wrote:
> On Wednesday, 2 August 2017 at 14:51:45 UTC, Mike Wey wrote:
>> On 02-08-17 08:04, Johnson Jones wrote:
>>> Ok, Using msys I was able to get glade 3.20 running. Maybe that will fix everything.
>>
>> Great, unfortunately "Use msys2" seems to be the official way to install anything GTK related on windows.
>
> ... Also, I cannot seem to load a jpg using an imageview
>
> (test.exe:1628): Gtk-WARNING **: Could not load image 'a.jpg': Couldn't recognize the image file format for file 'a.jpg'
>
> Just a normal jpg. Tried a bmp, same thing. It shows fine in glade itself.


Might be related to

https://github.com/pyinstaller/pyinstaller/issues/1833
« First   ‹ Prev
1 2