mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
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:
parent
959885252a
commit
38f7b63645
@ -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>
|
||||
|
||||
* gtools.c (translate_gdk_keysym_to_curses): renamed KEY_BACKTAB
|
||||
|
@ -248,6 +248,7 @@ create_transparent_text_window (char *file, char *text, int extra_events)
|
||||
{
|
||||
GtkWidget *window;
|
||||
GdkImlibImage *im;
|
||||
static GdkCursor *cursor;
|
||||
|
||||
if (!g_file_exists (file))
|
||||
return NULL;
|
||||
@ -273,6 +274,11 @@ create_transparent_text_window (char *file, char *text, int extra_events)
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
@ -298,6 +304,7 @@ make_transparent_window (char *file)
|
||||
gtk_widget_pop_visual ();
|
||||
|
||||
gtk_widget_realize (window);
|
||||
|
||||
xwa.save_under = True;
|
||||
XChangeWindowAttributes (GDK_WINDOW_XDISPLAY (window->window),
|
||||
GDK_WINDOW_XWINDOW (window->window),
|
||||
|
Loading…
Reference in New Issue
Block a user