1
1

1998-05-20 Federico Mena Quintero <federico@nuclecu.unam.mx>

* gpageprop.c (item_properties): Restore the arrow cursor for the
	desktop icon windows.

	* gdesktop.h (desktop_icon_t): Removed unused title field.
Этот коммит содержится в:
Miguel de Icaza 1998-05-20 22:10:06 +00:00
родитель 9c120a91b0
Коммит d6e872a113
3 изменённых файлов: 15 добавлений и 6 удалений

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

@ -1,5 +1,10 @@
1998-05-20 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gpageprop.c (item_properties): Restore the arrow cursor for the
desktop icon windows.
* gdesktop.h (desktop_icon_t): Removed unused title field.
* gtrans.c (set_window_text): Made it use the new
GnomeIconTextInfo functions.

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

@ -28,7 +28,6 @@ typedef struct {
icon_t type;
int x, y;
int grid_x, grid_y;
char *title;
char *pathname;
} desktop_icon_t;

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

@ -49,7 +49,7 @@ int
item_properties (GtkWidget *parent, char *fname, desktop_icon_t *di)
{
GtkWidget *parent_window;
GdkCursor *clock_cursor;
GdkCursor *cursor;
GtkWidget *notebook, *ok, *cancel;
GtkWidget *vbox;
GpropFilename *name;
@ -72,8 +72,9 @@ item_properties (GtkWidget *parent, char *fname, desktop_icon_t *di)
/* Set a clock cursor while we create stuff and read users/groups */
parent_window = gtk_widget_get_toplevel (parent);
clock_cursor = gdk_cursor_new (GDK_WATCH);
gdk_window_set_cursor (parent_window->window, clock_cursor);
cursor = gdk_cursor_new (GDK_WATCH);
gdk_window_set_cursor (parent_window->window, cursor);
gdk_cursor_destroy (cursor);
toplevel = GTK_DIALOG (gtk_dialog_new ());
notebook = gtk_notebook_new ();
@ -123,11 +124,15 @@ item_properties (GtkWidget *parent, char *fname, desktop_icon_t *di)
gtk_widget_grab_default (ok);
gtk_widget_show_all (GTK_WIDGET (toplevel));
gdk_window_set_cursor (parent_window->window, NULL);
/* Restore the arrow cursor and run the dialog */
cursor = gdk_cursor_new (GDK_TOP_LEFT_ARROW);
gdk_window_set_cursor (parent_window->window, cursor);
gdk_cursor_destroy (cursor);
gtk_grab_add (GTK_WIDGET (toplevel));
gtk_main ();
gtk_grab_remove (GTK_WIDGET (toplevel));
gdk_cursor_destroy (clock_cursor);
if (prop_dialog_result != 0) {
gtk_widget_destroy (GTK_WIDGET (toplevel));