1998-03-23 Federico Mena Quintero <federico@nuclecu.unam.mx>

* gtrans.c (create_transparent_text_window): Set the window's
	cursor to the normal top-left arrow.
This commit is contained in:
Miguel de Icaza 1998-03-24 05:03:56 +00:00
parent 959885252a
commit 38f7b63645
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
1998-03-23 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtrans.c (create_transparent_text_window): Set the window's
cursor to the normal top-left arrow.
Mon Mar 23 01:40:35 1998 Norbert Warmuth <k3190@fh-sw.de> Mon Mar 23 01:40:35 1998 Norbert Warmuth <k3190@fh-sw.de>
* gtools.c (translate_gdk_keysym_to_curses): renamed KEY_BACKTAB * gtools.c (translate_gdk_keysym_to_curses): renamed KEY_BACKTAB

View File

@ -248,6 +248,7 @@ create_transparent_text_window (char *file, char *text, int extra_events)
{ {
GtkWidget *window; GtkWidget *window;
GdkImlibImage *im; GdkImlibImage *im;
static GdkCursor *cursor;
if (!g_file_exists (file)) if (!g_file_exists (file))
return NULL; return NULL;
@ -273,6 +274,11 @@ create_transparent_text_window (char *file, char *text, int extra_events)
gdk_imlib_destroy_image (im); gdk_imlib_destroy_image (im);
if (!cursor)
cursor = gdk_cursor_new (GDK_TOP_LEFT_ARROW); /* FIXME: this is never freed */
gdk_window_set_cursor (window->window, cursor);
return window; return window;
} }
@ -298,6 +304,7 @@ make_transparent_window (char *file)
gtk_widget_pop_visual (); gtk_widget_pop_visual ();
gtk_widget_realize (window); gtk_widget_realize (window);
xwa.save_under = True; xwa.save_under = True;
XChangeWindowAttributes (GDK_WINDOW_XDISPLAY (window->window), XChangeWindowAttributes (GDK_WINDOW_XDISPLAY (window->window),
GDK_WINDOW_XWINDOW (window->window), GDK_WINDOW_XWINDOW (window->window),