mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
Whenever we receive an expose_event for one of the icons on the desktop,
gdk_window_lower() it. This makes it seem like icons are really part of the desktop.
This commit is contained in:
parent
1a62898db3
commit
bf7a1621e7
@ -322,6 +322,12 @@ set_window_text (GtkWidget *window, GdkImlibImage *im, char *text)
|
|||||||
text_info_free (ti);
|
text_info_free (ti);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
lower_icon_window(GtkWidget *widget, GdkEventExpose *event)
|
||||||
|
{
|
||||||
|
gdk_window_lower(widget->window);
|
||||||
|
}
|
||||||
|
|
||||||
GtkWidget *
|
GtkWidget *
|
||||||
create_transparent_text_window (char *file, char *text, int extra_events)
|
create_transparent_text_window (char *file, char *text, int extra_events)
|
||||||
{
|
{
|
||||||
@ -355,6 +361,10 @@ create_transparent_text_window (char *file, char *text, int extra_events)
|
|||||||
gdk_window_set_cursor (window->window, cursor);
|
gdk_window_set_cursor (window->window, cursor);
|
||||||
gdk_cursor_destroy (cursor);
|
gdk_cursor_destroy (cursor);
|
||||||
|
|
||||||
|
/* We do this so the desktop icons appear to really be part of the
|
||||||
|
desktop */
|
||||||
|
gtk_signal_connect(window, "expose_event", GTK_SIGNAL_FUNC(lower_icon_window), NULL);
|
||||||
|
|
||||||
return window;
|
return window;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user