[Glade-users] Help to port sound-juicer to GtkBuilder



Hello,

could someone help me port a this GNOME module to GtkBuilder?
It's the latest GNOME module that still uses libglade! :)
Here the bug with the partial patch: [1]

I need a custom widget, this is the libglade code:

<widget class="Custom" id="audio_profile">
 <property name="visible">True</property>
 <property name="can_focus">True</property>
 <property name="creation_function">gm_audio_profile_choose_new</property>
 <signal name="changed" handler="prefs_profile_changed"/>
</widget>

You can see the complete file here: [2]
With the help of pachi in the IRC, I've replaced it with:

<object class="GMAudioProfileEdit" id="audio_profile">
 <property name="visible">True</property>
 <property name="can_focus">True</property>
 <signal name="changed" handler="prefs_profile_changed"/>
</object>

GMAudioProfileEdit is defined in gnome-media package: [3]

But still doesn't work, the program crash and I get the same errors
pointed in the bug comment [4]
(Seems that GTK_WIDGET(gtk_builder_get_object(ui, "audio_profile")) doesnt work)

What I am doing wrong?

[1] https://bugzilla.gnome.org/show_bug.cgi?id=578046#c11
[2] http://git.gnome.org/browse/sound-juicer/tree/data/sound-juicer.glade#n1072
[3] http://git.gnome.org/browse/gnome-media/tree/profiles/glade/gnome-media-profiles.xml
[4] https://bugzilla.gnome.org/show_bug.cgi?id=578046#c12

-- 
Javier Jard?n Cabezas




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]