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().
Этот коммит содержится в:
родитель
edfaa23c77
Коммит
be65c86349
@ -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>
|
2001-04-11 Miguel de Icaza <miguel@ximian.com>
|
||||||
|
|
||||||
* gdesktop.c (should_hide_nautilus_file): New function, used to
|
* 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))
|
if (is_a_desktop_panel (panel))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
cursor = gdk_cursor_new (GDK_TOP_LEFT_ARROW);
|
gdk_window_set_cursor (GTK_WIDGET (panel->xwindow)->window, NULL);
|
||||||
gdk_window_set_cursor (GTK_WIDGET (panel->xwindow)->window, cursor);
|
|
||||||
gdk_cursor_destroy (cursor);
|
|
||||||
gdk_flush ();
|
gdk_flush ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1752,7 +1752,7 @@ desktop_icon_set_busy (DesktopIconInfo *dii, int busy)
|
|||||||
if (!GTK_WIDGET_REALIZED (dii->dicon))
|
if (!GTK_WIDGET_REALIZED (dii->dicon))
|
||||||
return;
|
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_window_set_cursor (dii->dicon->window, cursor);
|
||||||
gdk_cursor_destroy (cursor);
|
gdk_cursor_destroy (cursor);
|
||||||
gdk_flush ();
|
gdk_flush ();
|
||||||
@ -3246,7 +3246,7 @@ click_proxy_button_press (GtkWidget *widget, GdkEventButton *event, gpointer dat
|
|||||||
|
|
||||||
XGrabServer (GDK_DISPLAY ());
|
XGrabServer (GDK_DISPLAY ());
|
||||||
|
|
||||||
cursor = gdk_cursor_new (GDK_TOP_LEFT_ARROW);
|
cursor = gdk_cursor_new (GDK_LEFT_PTR);
|
||||||
gdk_pointer_grab (GDK_ROOT_PARENT (),
|
gdk_pointer_grab (GDK_ROOT_PARENT (),
|
||||||
FALSE,
|
FALSE,
|
||||||
GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK,
|
GDK_BUTTON_RELEASE_MASK | GDK_POINTER_MOTION_MASK,
|
||||||
|
@ -1729,27 +1729,22 @@ panel_chdir (GtkDTree *dtree, char *path, WPanel *panel)
|
|||||||
show_dir (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
|
static void
|
||||||
panel_tree_scan_begin (GtkWidget *widget, gpointer data)
|
panel_tree_scan_begin (GtkWidget *widget, gpointer data)
|
||||||
{
|
{
|
||||||
set_cursor (data, GDK_WATCH);
|
WPanel *panel;
|
||||||
|
|
||||||
|
panel = data;
|
||||||
|
set_cursor_busy (panel);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
panel_tree_scan_end (GtkWidget *widget, gpointer data)
|
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 */
|
/* Handler for the possibly_ungrab signal of the dtree widget */
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user