1998-05-14 Miguel de Icaza <miguel@nuclecu.unam.mx>

* 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.
This commit is contained in:
Miguel de Icaza 1998-05-15 01:08:46 +00:00
parent 2565113b86
commit c08415b616
3 changed files with 16 additions and 2 deletions

View File

@ -1,3 +1,9 @@
1998-05-14 Miguel de Icaza <miguel@nuclecu.unam.mx>
* 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 <k3190@fh-sw.de> Thu May 14 02:02:56 1998 Norbert Warmuth <k3190@fh-sw.de>
* Makefile.in (EXTRALIBS): add @LINTL@ * Makefile.in (EXTRALIBS): add @LINTL@

View File

@ -314,6 +314,7 @@ x_select_item (WPanel *panel)
do_file_mark (panel, panel->selected, 1); do_file_mark (panel, panel->selected, 1);
display_mini_info (panel); display_mini_info (panel);
gnome_icon_list_select_icon (list, panel->selected); gnome_icon_list_select_icon (list, panel->selected);
if (list->icon_rows){ if (list->icon_rows){
if (!gnome_icon_list_icon_is_visible (list, panel->selected)) if (!gnome_icon_list_icon_is_visible (list, panel->selected))
gnome_icon_list_moveto (list, panel->selected, 0.5); gnome_icon_list_moveto (list, panel->selected, 0.5);
@ -1251,6 +1252,7 @@ panel_create_icon_display (WPanel *panel)
GTK_SIGNAL_FUNC (panel_icon_list_select_icon), panel); GTK_SIGNAL_FUNC (panel_icon_list_select_icon), panel);
gtk_signal_connect (GTK_OBJECT (icon_field), "unselect_icon", gtk_signal_connect (GTK_OBJECT (icon_field), "unselect_icon",
GTK_SIGNAL_FUNC (panel_icon_list_unselect_icon), panel); GTK_SIGNAL_FUNC (panel_icon_list_unselect_icon), panel);
gtk_signal_connect (GTK_OBJECT (icon_field), "realize", gtk_signal_connect (GTK_OBJECT (icon_field), "realize",
GTK_SIGNAL_FUNC (panel_icon_list_realized), panel); GTK_SIGNAL_FUNC (panel_icon_list_realized), panel);
return GTK_WIDGET (icon_field); return GTK_WIDGET (icon_field);

View File

@ -361,10 +361,16 @@ 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);
#if 0
/* Do not enable this code */
/* We do this so the desktop icons appear to really be part of the /* We do this so the desktop icons appear to really be part of the
desktop */ 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; return window;
} }