From c08415b6166cb0da095125f3a41ad67e30e44af4 Mon Sep 17 00:00:00 2001 From: Miguel de Icaza Date: Fri, 15 May 1998 01:08:46 +0000 Subject: [PATCH] 1998-05-14 Miguel de Icaza * gtrans.c (create_transparent_text_window): Removed the hack to lower the window on exposes. Guess what happens when you have two icons on the same spot. --- gnome/ChangeLog | 6 ++++++ gnome/gscreen.c | 4 +++- gnome/gtrans.c | 8 +++++++- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/gnome/ChangeLog b/gnome/ChangeLog index ff0a814fb..3dcc155c2 100644 --- a/gnome/ChangeLog +++ b/gnome/ChangeLog @@ -1,3 +1,9 @@ +1998-05-14 Miguel de Icaza + + * gtrans.c (create_transparent_text_window): Removed the hack to + lower the window on exposes. Guess what happens when you have two + icons on the same spot. + Thu May 14 02:02:56 1998 Norbert Warmuth * Makefile.in (EXTRALIBS): add @LINTL@ diff --git a/gnome/gscreen.c b/gnome/gscreen.c index cf355c792..01d536804 100644 --- a/gnome/gscreen.c +++ b/gnome/gscreen.c @@ -314,6 +314,7 @@ x_select_item (WPanel *panel) do_file_mark (panel, panel->selected, 1); display_mini_info (panel); gnome_icon_list_select_icon (list, panel->selected); + if (list->icon_rows){ if (!gnome_icon_list_icon_is_visible (list, panel->selected)) gnome_icon_list_moveto (list, panel->selected, 0.5); @@ -1246,11 +1247,12 @@ panel_create_icon_display (WPanel *panel) icon_field = GNOME_ICON_LIST (gnome_icon_list_new ()); gnome_icon_list_set_selection_mode (icon_field, GTK_SELECTION_MULTIPLE); - + gtk_signal_connect (GTK_OBJECT (icon_field), "select_icon", GTK_SIGNAL_FUNC (panel_icon_list_select_icon), panel); gtk_signal_connect (GTK_OBJECT (icon_field), "unselect_icon", GTK_SIGNAL_FUNC (panel_icon_list_unselect_icon), panel); + gtk_signal_connect (GTK_OBJECT (icon_field), "realize", GTK_SIGNAL_FUNC (panel_icon_list_realized), panel); return GTK_WIDGET (icon_field); diff --git a/gnome/gtrans.c b/gnome/gtrans.c index 343752e0e..82a47a164 100644 --- a/gnome/gtrans.c +++ b/gnome/gtrans.c @@ -361,10 +361,16 @@ create_transparent_text_window (char *file, char *text, int extra_events) gdk_window_set_cursor (window->window, cursor); gdk_cursor_destroy (cursor); +#if 0 + /* Do not enable this code */ /* 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); + /* This is wrong. If you have two icons, one on top of the other, + * guess what is the result. + */ + gtk_signal_connect(window, "expose_event", GTK_SIGNAL_FUNC(lower_icon_window), NULL); +#endif return window; }