Re: GtkMenuItem in Glade translated to GtkAction with gtk-builder-convert
- From: Diego Jacobi <jacobidiego gmail com>
- To: gtk-list gnome org
- Subject: Re: GtkMenuItem in Glade translated to GtkAction with gtk-builder-convert
- Date: Sat, 24 Jan 2009 19:29:27 +0100
2009/1/24 Tristan Van Berkom <tvb gnome org>:
> On Fri, Jan 23, 2009 at 10:05 PM, Diego Jacobi <jacobidiego gmail com> wrote:
> [...]
>>
>> I am using Glade 3.5.2 on OpenSuse 11.1. Sorry for not clarifing.
>>
>> PD: i cant do gtk-builder-converter --version
>
> hmm, maybe you need at least 3.5.4 for GtkBuilder support in Glade...
>
> Another thing I forgot to mention, is that GtkBuilder also only supports
> native menus in trunk (the script probably converts to actions/uimanager)
That seems to be the problem.
> GTK+ 2.16 and Glade 3.6 are planned for the upcoming GNOME release,
> if you can manage with bleeding edge versions of Glade and GTK+ until
> then, then your dynamic menu shouldnt be a problem.
>
> Cheers,
> -Tristan
>
I have installed now glade 3.5.5 and wow!, i wasnt expecting so much
change between both versions.
Any way, the GtkBuilder xml generated by glade 3.5.5 seems to be way
different from the translated by gtk-builder-convert. So this will
require to change many things in my code (MenuItems were translated as
actions are now are real menuitems).
Also some other simpler things are not working. Running my code just
changing interface.xml to interface.glade.xml gives lots of errors and
no window show up.
(Wattmeter:10920): Gtk-CRITICAL **: gtk_widget_modify_bg: assertion
`GTK_IS_WIDGET (widget)' failed
-------> This widget should be a GtkEventBox
(Wattmeter:10920): GLib-GObject-CRITICAL **:
g_type_instance_get_private: assertion `instance != NULL &&
instance->g_class != NULL' failed
-------> This error seems to be an internal call in GtkBuilder not
being able to parse my interface.glade.xml
(Wattmeter:10920): Gtk-CRITICAL **: gtk_image_set_from_file: assertion
`GTK_IS_IMAGE (image)' failed
-------> This gtkimage worked before.
(Wattmeter:10920): GLib-GObject-CRITICAL **:
g_type_instance_get_private: assertion `instance != NULL &&
instance->g_class != NULL' failed
(Wattmeter:10920): Gtk-CRITICAL **: gtk_image_set_from_file: assertion
`GTK_IS_IMAGE (image)' failed
(Wattmeter:10920): Gtk-CRITICAL **: gtk_widget_show_all: assertion
`GTK_IS_WIDGET (widget)' failed
-------> This "widget" is the main window
(Wattmeter:10920): Gtk-CRITICAL **: gtk_widget_queue_draw: assertion
`GTK_IS_WIDGET (widget)' failed
-------> This must be the same main window.
Maybe all of this doesnt work because my gtk is 2.15 (and doesnt
support native menues) and 2.16 is not yet available in repositories.
I will have to find another way to represent this dinamic menu.
Many thanks.
Diego
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]