1
1

2001-04-14 Federico Mena Quintero <federico@ximian.com>

* gdesktop.c (desktop_icon_set_busy): Use a pretty arrow instead
	of GDK_TOP_LEFT_ARROW.
	(click_proxy_button_press): Likewise.

	* gcmd.c (set_cursor_normal): Set the cursor to NULL so that we
	pick up the cursor that the window manager set for us.

	* gscreen.c (panel_tree_scan_begin): Use set_cursor_busy().
	(panel_tree_scan_end): Uset set_cursor_normal().
Этот коммит содержится в:
federico 2001-04-15 09:39:24 +00:00
родитель edfaa23c77
Коммит be65c86349
4 изменённых файлов: 23 добавлений и 18 удалений

Просмотреть файл

@ -1,3 +1,15 @@
2001-04-14 Federico Mena Quintero <federico@ximian.com>
* gdesktop.c (desktop_icon_set_busy): Use a pretty arrow instead
of GDK_TOP_LEFT_ARROW.
(click_proxy_button_press): Likewise.
* gcmd.c (set_cursor_normal): Set the cursor to NULL so that we
pick up the cursor that the window manager set for us.
* gscreen.c (panel_tree_scan_begin): Use set_cursor_busy().
(panel_tree_scan_end): Uset set_cursor_normal().
2001-04-11 Miguel de Icaza <miguel@ximian.com>
* gdesktop.c (should_hide_nautilus_file): New function, used to

Просмотреть файл

@ -989,9 +989,7 @@ set_cursor_normal (WPanel *panel)
if (is_a_desktop_panel (panel))
return;
cursor = gdk_cursor_new (GDK_TOP_LEFT_ARROW);
gdk_window_set_cursor (GTK_WIDGET (panel->xwindow)->window, cursor);
gdk_cursor_destroy (cursor);
gdk_window_set_cursor (GTK_WIDGET (panel->xwindow)->window, NULL);
gdk_flush ();
}

Просмотреть файл

@ -1752,7 +1752,7 @@ desktop_icon_set_busy (DesktopIconInfo *dii, int busy)
if (!GTK_WIDGET_REALIZED (dii->dicon))
return;
cursor = gdk_cursor_new (busy ? GDK_WATCH : GDK_TOP_LEFT_ARROW);
cursor = gdk_cursor_new (busy ? GDK_WATCH : GDK_LEFT_PTR);
gdk_window_set_cursor (dii->dicon->window, cursor);
gdk_cursor_destroy (cursor);
gdk_flush ();
@ -3246,7 +3246,7 @@ click_proxy_button_press (GtkWidget *widget, GdkEventButton *event, gpointer dat
XGrabServer (GDK_DISPLAY ());
cursor = gdk_cursor_new (GDK_TOP_LEFT_ARROW);
cursor = gdk_cursor_new (GDK_LEFT_PTR);
gdk_pointer_grab (GDK_ROOT_PARENT (),
FALSE,
GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK,

Просмотреть файл

@ -1729,27 +1729,22 @@ panel_chdir (GtkDTree *dtree, char *path, WPanel *panel)
show_dir (panel);
}
static void
set_cursor (WPanel *panel, GdkCursorType type)
{
GdkCursor *cursor;
cursor = gdk_cursor_new (type);
gdk_window_set_cursor (GTK_WIDGET (panel->xwindow)->window, cursor);
gdk_cursor_destroy (cursor);
gdk_flush ();
}
static void
panel_tree_scan_begin (GtkWidget *widget, gpointer data)
{
set_cursor (data, GDK_WATCH);
WPanel *panel;
panel = data;
set_cursor_busy (panel);
}
static void
panel_tree_scan_end (GtkWidget *widget, gpointer data)
{
set_cursor (data, GDK_TOP_LEFT_ARROW);
WPanel *panel;
panel = data;
set_cursor_normal (panel);
}
/* Handler for the possibly_ungrab signal of the dtree widget */