[yelp] [yelp-window] Set busy cursor when page is loading



commit 1f9af450bcc5bfcaa2a0f1e92ce3431c8f158b07
Author: Shaun McCance <shaunm gnome org>
Date:   Tue Jan 4 10:21:19 2011 -0500

    [yelp-window] Set busy cursor when page is loading

 src/yelp-window.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/yelp-window.c b/src/yelp-window.c
index 5a7a2d1..4aab8a2 100644
--- a/src/yelp-window.c
+++ b/src/yelp-window.c
@@ -1467,6 +1467,7 @@ view_loaded (YelpView   *view,
                                        page_id,
                                        icon,
                                        title);
+    gdk_window_set_cursor (gtk_widget_get_window (GTK_WIDGET (window)), NULL);
     g_free (page_id);
     g_free (icon);
     g_free (title);
@@ -1483,12 +1484,18 @@ view_uri_selected (YelpView     *view,
 {
     YelpUri *uri;
     gchar *doc_uri;
+    GdkWindow *gdkwin;
     YelpWindowPrivate *priv = GET_PRIV (window);
 
     g_object_get (G_OBJECT (view), "yelp-uri", &uri, NULL);
     if (uri == NULL)
         return;
 
+    gdkwin = gtk_widget_get_window (GTK_WIDGET (window));
+    gdk_window_set_cursor (gdkwin,
+                           gdk_cursor_new_for_display (gdk_window_get_display (gdkwin),
+                                                       GDK_WATCH));
+
     doc_uri = yelp_uri_get_document_uri (uri);
     if (priv->doc_uri == NULL || !g_str_equal (priv->doc_uri, doc_uri)) {
         window_set_bookmarks (window, doc_uri);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]