Hi all.
I've just paid a developer to build a distribution of Perl & Gtk3 &
bindings for Windows ( I tried building it myself, but there were just too
many issues ). It's working great, with only 2 apparent issues:
1) Some icons are missing. I use the following code to generate icons for
buttons:
Gtk3::Image->new_from_icon_name( $this_item->{icon_name}, "button" );
In C I guess this translates to:
gtk_image_new_from_icon_name (*const gchar
<https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar>
*icon_name*,
*GtkIconSize
<https://developer.gnome.org/gtk3/stable/gtk3-Themeable-Stock-Images.html#GtkIconSize>
size*);
Why are some icons not being rendered? Is this a packaging issue? I
see the same issue in the gtk demo apps. Also note that there is an
image in the combo box that's also not being rendered. I'm hoping this
is just a case of chucking a png file or 2 in the correct place now :)
Some screenshots of Linux vs Windows:
http://tesla.duckdns.org/downloads/gtk_linux.png
http://tesla.duckdns.org/downloads/gtk_windows.png
2) More disturbingly, I'm getting some errors in Windows that I don't
see in Linux:
*** unhandled exception in callback:
*** Can't locate object method "new_from_file_at_size" via package
"Gtk3::Gdk::Pixbuf" at window/browser.pm line 84.
*** ignoring at C:/strawberry/perl/site/lib/Gtk3.pm line 318.
The code in question here is again rendering some icons:
# render icons
$self->{icons}->{CONNECTION} =
Gtk3::Gdk::Pixbuf->new_from_file_at_size( $icon_folder . "/connection.png",
24, 24 );
$self->{icons}->{DATABASE} = Gtk3::Gdk::Pixbuf->new_from_file_at_size(
$icon_folder . "/database.png", 24, 24 );
$self->{icons}->{TABLE} = Gtk3::Gdk::Pixbuf->new_from_file_at_size(
$icon_folder . "/table.png", 24, 24 );
What's going on here? Surely this method of rendering icons hasn't been
removed? Admittedly, I'm running Gtk-3.12.x on Linux, and 3.14.x on
Windows, so maybe things have changed underneath me?
When I get on top of these issues, I'll be hosting packages and detailed
build instructions that will be useful for Gtk-Perl people like me, and I
assume also Python & PHP people. Apparently it was "damn nigh impossible"
to build GObject Introspection and some other packages on Windows. Anyway
if I could get a little insight into these icon rendering issues, it would
be greatly appreciated :)
Dan
_______________________________________________
gtk-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtk-list