Re: GLib-GObject-WARNING ?? --FIXED--
- From: Juan Pablo <jpdborgna yahoo com ar>
- To: gtk-app-devel-list gnome org
- Subject: Re: GLib-GObject-WARNING ?? --FIXED--
- Date: Sat, 07 Jan 2006 02:02:13 -0300
Juan Pablo wrote:
Hi list!
In reply to myself... :D :D
The problem was that im destroying the widget just after of emiting the
response.
The widget destroy goes after the gtk_dialog_run in order to make it work.
Regards.
Ive made a dialog with a gnomedbgrid on it, and when i double click
one item, the dialog returns its index.
It all works, but im getting the following warnings and i dont know why.
This are the warnings:
(fiscal:10358): Gtk-WARNING **: Failed to set label from markup due to
error parsing markup: Error on line 1 char 9: Invalid UTF-8 encoded text
(fiscal:10358): GLib-GObject-WARNING **: gsignal.c:1791: instance
`0x820e988' has no handler with id `990'
(fiscal:10358): GLib-GObject-WARNING **: gsignal.c:1791: instance
`0x820e988' has no handler with id `991'
(fiscal:10358): GLib-GObject-WARNING **: gsignal.c:1791: instance
`0x820e988' has no handler with id `992'
(fiscal:10358): GLib-GObject-WARNING **: gsignal.c:1791: instance
`0x820e988' has no handler with id `993'
The code I use is this:
void
on_rubros_dbg_double_clicked (GnomeDbGrid *gnomedbgrid,
gint arg1,
gpointer user_data)
{
if (boa_fe.selecting)
{
gtk_dialog_response(GTK_DIALOG(lookup_widget(GTK_WIDGET(gnomedbgrid),"rubros_dlg")),arg1);
gtk_widget_destroy(lookup_widget(GTK_WIDGET(gnomedbgrid),"rubros_dlg"));
boa_fe.selecting=FALSE;
}
}
And I call the dialog with this:
void
on_new_product_rubro_add_clicked (GtkButton *button,
gpointer user_data)
{
gint r;
GtkComboBox *combo;
combo=GTK_COMBO_BOX(lookup_widget(GTK_WIDGET(button),"new_product_rubro"));
boa_fe.selecting=TRUE;
r=gtk_dialog_run(GTK_DIALOG(create_rubros_dlg()));
/* Thanks to Christian Neumair from gtk list*/
clear_combo(GTK_COMBO_BOX(lookup_widget(GTK_WIDGET(button),"new_product_rubro")));
fill_dbcombo(GTK_COMBO_BOX(lookup_widget(GTK_WIDGET(button),"new_product_rubro")),"SELECT
* FROM rubros ORDER BY id",1);
if (r>=0)
gtk_combo_box_set_active(combo,r);
}
Thanks in advance.
Saludos, Juan Pablo.
___________________________________________________________
1GB gratis, Antivirus y Antispam
Correo Yahoo!, el mejor correo web del mundo
http://correo.yahoo.com.ar
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]