]> spindle.queued.net Git - midori/commitdiff
Reset the statusbar text (in the location) when leaving the view
authorChristian Dywan <christian@twotoasts.de>
Tue, 22 Sep 2009 21:58:16 +0000 (23:58 +0200)
committerChristian Dywan <christian@twotoasts.de>
Wed, 23 Sep 2009 00:10:08 +0000 (02:10 +0200)
midori/midori-view.c

index 714e1abae134ffb47c5166d23838c3043ec08111..d884af951ac1a962f3f2a4c53e4eaa2995c486fb 100644 (file)
@@ -973,6 +973,15 @@ webkit_web_view_statusbar_text_changed_cb (WebKitWebView* web_view,
     g_object_set (G_OBJECT (view), "statusbar-text", text, NULL);
 }
 
+static gboolean
+midori_view_web_view_leave_notify_event_cb (WebKitWebView*    web_view,
+                                            GdkEventCrossing* event,
+                                            MidoriView*       view)
+{
+    g_object_set (G_OBJECT (view), "statusbar-text", NULL, NULL);
+    return FALSE;
+}
+
 static void
 webkit_web_view_hovering_over_link_cb (WebKitWebView* web_view,
                                        const gchar*   tooltip,
@@ -2458,6 +2467,8 @@ midori_view_construct_web_view (MidoriView* view)
                       #endif
                       "signal::status-bar-text-changed",
                       webkit_web_view_statusbar_text_changed_cb, view,
+                      "signal::leave-notify-event",
+                      midori_view_web_view_leave_notify_event_cb, view,
                       "signal::hovering-over-link",
                       webkit_web_view_hovering_over_link_cb, view,
                       "signal::button-press-event",