Mercurial > geeqie
changeset 1766:6e0f6d5e4c25
added a workaround for https://bugzilla.gnome.org/show_bug.cgi?id=590692
author | nadvornik |
---|---|
date | Sat, 10 Oct 2009 15:01:41 +0000 |
parents | 650915809048 |
children | 9a351e8f3b97 |
files | src/bar.c |
diffstat | 1 files changed, 20 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/bar.c Sat Oct 10 10:15:23 2009 +0000 +++ b/src/bar.c Sat Oct 10 15:01:41 2009 +0000 @@ -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;