[file-roller] set a watch cursor while installing the missing packages
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [file-roller] set a watch cursor while installing the missing packages
- Date: Wed, 24 Feb 2010 12:50:20 +0000 (UTC)
commit bafaa20168640f002582bf2319924930ad0b5bd4
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Feb 24 13:45:07 2010 +0100
set a watch cursor while installing the missing packages
src/dlg-package-installer.c | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/src/dlg-package-installer.c b/src/dlg-package-installer.c
index de6853a..6cf97bf 100644
--- a/src/dlg-package-installer.c
+++ b/src/dlg-package-installer.c
@@ -52,6 +52,12 @@ static void
package_installer_terminated (InstallerData *idata,
const char *error)
{
+ GdkWindow *window;
+
+ window = gtk_widget_get_window (GTK_WIDGET (idata->window));
+ if (window != NULL)
+ gdk_window_set_cursor (window, NULL);
+
if (error != NULL) {
fr_archive_action_completed (idata->archive,
FR_ACTION_CREATING_NEW_ARCHIVE,
@@ -140,21 +146,29 @@ install_packages (InstallerData *idata)
connection = dbus_g_bus_get (DBUS_BUS_SESSION, NULL);
if (connection != NULL) {
+ GdkWindow *window;
DBusGProxy *proxy;
+ window = gtk_widget_get_window (GTK_WIDGET (idata->window));
+ if (window != NULL) {
+ GdkCursor *cursor;
+
+ cursor = gdk_cursor_new (GDK_WATCH);
+ gdk_window_set_cursor (window, cursor);
+ gdk_cursor_unref (cursor);
+ }
+
proxy = dbus_g_proxy_new_for_name (connection,
"org.freedesktop.PackageKit",
"/org/freedesktop/PackageKit",
"org.freedesktop.PackageKit.Modify");
if (proxy != NULL) {
- GdkWindow *window;
guint xid;
char **names;
char **real_names;
DBusGProxyCall *call;
- window = gtk_widget_get_window (GTK_WIDGET (idata->window));
if (window != NULL)
xid = GDK_WINDOW_XID (window);
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]