Closed GoogleCodeExporter closed 8 years ago
When trying to get the data from the combobox stuff works different too.
Have not checked that, but get error message like this :
(darksnow:2744): GLib-GObject-WARNING **: invalid cast from `GtkComboBoxEntry'
to `GtkCombo'
(darksnow:2744): GLib-GObject-WARNING **: invalid uninstantiatable type
`(null)' in cast to `GtkEntry'
(darksnow:2744): Gtk-CRITICAL **: gtk_entry_get_text: assertion `GTK_IS_ENTRY
(entry)' failed
Because the cast fails.
Original comment by oetelaar.automatisering
on 7 May 2013 at 10:37
The config file was not written correctly with the new combo box.
This is fixed by this patch:
Index: config_files.c
===================================================================
--- config_files.c (revision 510)
+++ config_files.c (working copy)
@@ -84,7 +84,7 @@
adddate = (char) (gtk_toggle_button_get_active ( GTK_TOGGLE_BUTTON (checkbutton_adddate) ))? '1': '0';
/* Combo box inputs */
- icecast = (char *) gtk_entry_get_text ( GTK_ENTRY(
GTK_COMBO(combo_icecast)->entry));
+ icecast = (char *)
gtk_combo_box_get_active_text(GTK_COMBO_BOX(combo_icecast));
format = (char *) gtk_entry_get_text ( GTK_ENTRY(GTK_COMBO (combo_format)->entry ));
bitrate = (char *) gtk_entry_get_text ( GTK_ENTRY(GTK_COMBO(combo_bitrate)->entry));
bitratemode = (char *) gtk_entry_get_text ( GTK_ENTRY(GTK_COMBO(combo_bitratemode)->entry));
One problem remains, reading back the config file does not set or create the
correct entry in the combobox.
That is a different problem, maybe someone else can take a look.
Original comment by oetelaar.automatisering
on 7 May 2013 at 10:59
All fixed in r513.
Thanks for the patches!
Original comment by rafael2k...@gmail.com
on 14 May 2013 at 2:54
Original issue reported on code.google.com by
oetelaar.automatisering
on 7 May 2013 at 10:30