2007-05-02 [colin] 2.9.1cvs37
authorColin Leroy <colin@colino.net>
Wed, 2 May 2007 16:31:09 +0000 (16:31 +0000)
committerColin Leroy <colin@colino.net>
Wed, 2 May 2007 16:31:09 +0000 (16:31 +0000)
* src/grouplistdialog.c
Set cursor to wait cursor while loading
groups.

ChangeLog
PATCHSETS
configure.ac
src/grouplistdialog.c

index a3bd7a5e43d949e32f6c06e4d5cfdb88c1b126cf..939b102684804a697c72bd94e3ea5b8e37237f92 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-05-02 [colin]     2.9.1cvs37
+
+       * src/grouplistdialog.c
+               Set cursor to wait cursor while loading
+               groups.
+
 2007-05-02 [paul]      2.9.1cvs36
 
        * src/folder.c
index b6034b45dba411b242554b157645316fd767fae0..b5b2afd36948b0a7077c5d34cdc5ff46bba51306 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.274.2.187 -r 1.274.2.188 src/mainwindow.c;  cvs diff -u -r 1.654.2.2617 -r 1.654.2.2618 configure.ac;  ) > 2.9.1cvs34.patchset
 ( cvs diff -u -r 1.1.2.16 -r 1.1.2.17 manual/glossary.xml;  cvs diff -u -r 1.1.2.17 -r 1.1.2.18 manual/plugins.xml;  ) > 2.9.1cvs35.patchset
 ( cvs diff -u -r 1.213.2.143 -r 1.213.2.144 src/folder.c;  cvs diff -u -r 1.9.2.36 -r 1.9.2.37 src/common/defs.h;  ) > 2.9.1cvs36.patchset
+( cvs diff -u -r 1.14.2.17 -r 1.14.2.18 src/grouplistdialog.c;  ) > 2.9.1cvs37.patchset
index df557333ef2ce5c5ad926c8404d3daebcae3aaec..c239c6c6e324476958fadda8536b208827163d56 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=36
+EXTRA_VERSION=37
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
index 0f2516c70b5570d1656eb5d8bed33a00813a8db8..38a4c411931ceafcac9ce12640d78f4e9f1ffefd 100644 (file)
@@ -44,6 +44,7 @@
 #include <string.h>
 
 #include "grouplistdialog.h"
+#include "mainwindow.h"
 #include "manage_window.h"
 #include "gtkutils.h"
 #include "utils.h"
@@ -391,6 +392,7 @@ static void grouplist_expand_upwards(GtkCTree *ctree, const gchar *name) {
 
 static void grouplist_dialog_set_list(const gchar *pattern, gboolean refresh)
 {
+       static GdkCursor *watch_cursor = NULL;
        GSList *cur;
        GtkCTreeNode *node;
        GPatternSpec *pspec;
@@ -401,6 +403,12 @@ static void grouplist_dialog_set_list(const gchar *pattern, gboolean refresh)
        if (!pattern || *pattern == '\0')
                pattern = "*";
 
+       if (!watch_cursor)
+               watch_cursor = gdk_cursor_new(GDK_WATCH);
+       gdk_window_set_cursor(dialog->window, watch_cursor);
+       main_window_cursor_wait(mainwindow_get_mainwindow());
+       GTK_EVENTS_FLUSH();
+       
        if (refresh) {
                ack = TRUE;
                grouplist_clear();
@@ -411,6 +419,8 @@ static void grouplist_dialog_set_list(const gchar *pattern, gboolean refresh)
                if (group_list == NULL && ack == TRUE) {
                        alertpanel_error(_("Can't retrieve newsgroup list."));
                        locked = FALSE;
+                       gdk_window_set_cursor(dialog->window, NULL);
+                       main_window_cursor_normal(mainwindow_get_mainwindow());
                        return;
                }
        } else
@@ -446,6 +456,9 @@ static void grouplist_dialog_set_list(const gchar *pattern, gboolean refresh)
 
        gtk_label_set_text(GTK_LABEL(status_label), _("Done."));
 
+       gdk_window_set_cursor(dialog->window, NULL);
+       main_window_cursor_normal(mainwindow_get_mainwindow());
+
        locked = FALSE;
 }