Think I found another bug in gtk.

Hash: SHA1

Happily, I need no sample code, as you guys already wrote some. :)

When I run the demo program, I get:

  Gtk-CRITICAL **: file gtksettings.c: line 447
  (gtk_settings_get_for_screen): assertion `GDK_IS_SCREEN (screen)' failed
  at /usr/share/doc/libgtk2-perl-doc/examples/ line 23.

  GLib-GObject-WARNING **: invalid (NULL) pointer instance at
  /usr/share/doc/libgtk2-perl-doc/examples/ line 23.

  GLib-GObject-CRITICAL **: file gsignal.c: line 1726
  (g_signal_handler_disconnect): assertion `G_TYPE_CHECK_INSTANCE
  (instance)' failed at
  /usr/share/doc/libgtk2-perl-doc/examples/ line 23.

Incidentally, line 23 is:

my $file_chooser =
        Gtk2::FileChooserDialog->new ('This is the spiffy new file chooser!',
                                      undef, 'open',
                                      'gtk-cancel' => 'cancel',
                                      'gtk-ok' => 'ok');

I haven't tested yet to see if Gtk2::FileChooser objects are also

Incidentally, the widget works fine. So the errors are spurious?

I'm running the latest version of gtk2 in Debian unstable, to wit:
gtk2-perl 1.043 (compiled against gtk+ 2.4.2), gtk+ 2.4.4.

Is this bug possibly occurring because the gtk2-perl package is compiled
against a different version of gtk+ than the one that's installed? If
that's the case, then I should try and get the Debian package manager to
recompile gtk2-perl, I guess.

I actually found this bug a while back, and wrote a workaround (install a
$SIG{__WARN__} handler that ignores errors right before creating a new
FileChooserDialog), but forgot to report it.
- -- 
GnuPG public key available from
Version: GnuPG v1.2.5 (GNU/Linux)


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