[Xfce4-commits] <xfce4-weather-plugin:master> Allow chaining of expose event in scrollbox.
Nick Schermer
noreply at xfce.org
Wed Feb 2 21:26:01 CET 2011
Updating branch refs/heads/master
to 9dfefdc166d936c92e6c67fbcfaee1a27040e122 (commit)
from 1052702419390daeaeec10cfa924ed8853cb0be0 (commit)
commit 9dfefdc166d936c92e6c67fbcfaee1a27040e122
Author: Nick Schermer <nick at xfce.org>
Date: Wed Feb 2 19:22:59 2011 +0100
Allow chaining of expose event in scrollbox.
panel-plugin/weather-scrollbox.c | 6 +++++-
panel-plugin/weather.c | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/panel-plugin/weather-scrollbox.c b/panel-plugin/weather-scrollbox.c
index 8388fc1..1ed0c36 100644
--- a/panel-plugin/weather-scrollbox.c
+++ b/panel-plugin/weather-scrollbox.c
@@ -118,6 +118,10 @@ gtk_scrollbox_expose_event (GtkWidget *widget,
PangoLayout *layout;
gint width, height;
PangoRectangle logical_rect;
+ gboolean result = FALSE;
+
+ if (GTK_WIDGET_CLASS (gtk_scrollbox_parent_class)->expose_event != NULL)
+ result = GTK_WIDGET_CLASS (gtk_scrollbox_parent_class)->expose_event (widget, event);
if (self->active != NULL)
{
@@ -137,7 +141,7 @@ gtk_scrollbox_expose_event (GtkWidget *widget,
}
- return FALSE;
+ return result;
}
diff --git a/panel-plugin/weather.c b/panel-plugin/weather.c
index 7865383..cd341aa 100644
--- a/panel-plugin/weather.c
+++ b/panel-plugin/weather.c
@@ -813,8 +813,8 @@ xfceweather_create_control (XfcePanelPlugin *plugin)
data->tooltipbox = gtk_event_box_new ();
gtk_container_add (GTK_CONTAINER (data->tooltipbox), data->top_vbox);
+ gtk_event_box_set_visible_window (GTK_EVENT_BOX (data->tooltipbox), FALSE);
gtk_widget_show_all (data->tooltipbox);
- GTK_WIDGET_SET_FLAGS (GTK_WIDGET(data->tooltipbox), GTK_NO_WINDOW);
#if GTK_CHECK_VERSION(2,12,0)
g_object_set (G_OBJECT(data->tooltipbox), "has-tooltip", TRUE, NULL);
More information about the Xfce4-commits
mailing list