X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6753003f1851b52c7778e2a12a747d6265f47d9..9968f7b4cd6752ead5744d4895ed392458d83abd:/src/gtk/animate.cpp diff --git a/src/gtk/animate.cpp b/src/gtk/animate.cpp index 22cd588406..c6f7abe951 100644 --- a/src/gtk/animate.cpp +++ b/src/gtk/animate.cpp @@ -118,7 +118,8 @@ bool wxAnimation::Load(wxInputStream &stream, wxAnimationType type) if (!loader) { - wxLogDebug(wxT("Could not create the loader for '%s' animation type"), anim_type); + wxLogDebug(wxT("Could not create the loader for '%s' animation type: %s"), + anim_type, error->message); return false; } @@ -135,7 +136,7 @@ bool wxAnimation::Load(wxInputStream &stream, wxAnimationType type) if (!gdk_pixbuf_loader_write(loader, buf, stream.LastRead(), &error)) { gdk_pixbuf_loader_close(loader, &error); - wxLogDebug(wxT("Could not write to the loader")); + wxLogDebug(wxT("Could not write to the loader: %s"), error->message); return false; } } @@ -143,7 +144,7 @@ bool wxAnimation::Load(wxInputStream &stream, wxAnimationType type) // load complete if (!gdk_pixbuf_loader_close(loader, &error)) { - wxLogDebug(wxT("Could not close the loader")); + wxLogDebug(wxT("Could not close the loader: %s"), error->message); return false; } @@ -211,6 +212,7 @@ bool wxAnimationCtrl::Create( wxWindow *parent, wxWindowID id, SetWindowStyle(style); m_widget = gtk_image_new(); + g_object_ref(m_widget); gtk_widget_show(m_widget); m_parent->DoAddChild( this );