Revision: 1866
          http://geeqie.svn.sourceforge.net/geeqie/?rev=1866&view=rev
Author:   nadvornik
Date:     2009-10-10 15:01:41 +0000 (Sat, 10 Oct 2009)

Log Message:
-----------
added a workaround for https://bugzilla.gnome.org/show_bug.cgi?id=590692

Modified Paths:
--------------
    trunk/src/bar.c

Modified: trunk/src/bar.c
===================================================================
--- trunk/src/bar.c     2009-10-10 10:15:23 UTC (rev 1865)
+++ trunk/src/bar.c     2009-10-10 15:01:41 UTC (rev 1866)
@@ -577,6 +577,21 @@
        g_free(bd);
 }
 
+#ifdef HAVE_LIBCHAMPLAIN_GTK
+/* 
+   FIXME: this is an ugly hack that works around this bug:
+   https://bugzilla.gnome.org/show_bug.cgi?id=590692
+   http://bugzilla.openedhand.com/show_bug.cgi?id=1751
+   it should be removed as soon as a better solution exists
+*/
+
+static void bar_unrealize_clutter_fix_cb(GtkWidget *widget, gpointer data)
+{
+       GtkWidget *child = gtk_bin_get_child(GTK_BIN(widget));
+       if (child) gtk_widget_unrealize(child);
+}
+#endif
+
 GtkWidget *bar_new(LayoutWindow *lw)
 {
        BarData *bd;
@@ -622,7 +637,11 @@
        bd->vbox = gtk_vbox_new(FALSE, 0);
        gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(scrolled), 
bd->vbox);
        
gtk_viewport_set_shadow_type(GTK_VIEWPORT(gtk_bin_get_child(GTK_BIN(scrolled))),
 GTK_SHADOW_NONE);
-       
+
+#ifdef HAVE_LIBCHAMPLAIN_GTK
+       g_signal_connect(G_OBJECT(gtk_bin_get_child(GTK_BIN(scrolled))), 
"unrealize", G_CALLBACK(bar_unrealize_clutter_fix_cb), NULL); 
+#endif
+
        gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrolled), 
GTK_SHADOW_NONE);
        gtk_widget_show(bd->vbox);
        return bd->widget;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Geeqie-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geeqie-svn

Reply via email to