Re: GTK:ERROR

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

 



A copy of the original function  gtk_dialog_new_empty shows us that it calls internally  function
   gtk_window_set_transient_for (GTK_WINDOW (dialog), parent);

where parent is of the type GtkWindow or you could call :

   GtkWidget* gtk_dialog_new_with_buttons (const gchar *title, GtkWindow *parent, GtkDialogFlags flags, const gchar    *first_button_text, ...)

You've probably called gtk_dialog_new which doesn't take a parent argument :(

here is the copy of the gtk_dialog_new_empty from the gtk source:

static GtkWidget* gtk_dialog_new_empty (const gchar *title, GtkWindow *parent, GtkDialogFlags flags) {
  GtkDialog *dialog;

  dialog = g_object_new (GTK_TYPE_DIALOG, NULL);

  if (title)
    gtk_window_set_title (GTK_WINDOW (dialog), title);

  if (parent)
    gtk_window_set_transient_for (GTK_WINDOW (dialog), parent);

  if (flags & GTK_DIALOG_MODAL)
    gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);

  if (flags & GTK_DIALOG_DESTROY_WITH_PARENT)
    gtk_window_set_destroy_with_parent (GTK_WINDOW (dialog), TRUE);

  if (flags & GTK_DIALOG_NO_SEPARATOR)
    gtk_dialog_set_has_separator (dialog, FALSE);

  return GTK_WIDGET (dialog);
}




From: Luis Javier Peris <javierperis@xxxxxxxxx>
To: gtk-list@xxxxxxxxx
Sent: Thursday, September 3, 2009 2:29:18 AM
Subject: GTK:ERROR

Hello guys,

I'm writing here because I don't know where tell this issue. I'm writing an app using pygtk and after calling the run method of a gtk.Dialog, I get the following error:

Gtk:ERROR:/build/buildd/gtk+2.
0-2.16.1/gtk/gtkcontainer.c:2717:IA__gtk_container_propagate_expose: assertion failed: (child->parent == GTK_WIDGET (container))
Cancelado

I don't remember if I updated my gtk version, but I suppose I did and it's the reason because I'm getting the error listed above, maybe a bug? I've read the same issue happen  Google Chromium.

Greetings.

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux