mirror of https://github.com/MidnightCommander/mc
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:
parent
2565113b86
commit
c08415b616
|
@ -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@
|
||||||
|
|
|
@ -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);
|
||||||
|
@ -1246,11 +1247,12 @@ panel_create_icon_display (WPanel *panel)
|
||||||
icon_field = GNOME_ICON_LIST (gnome_icon_list_new ());
|
icon_field = GNOME_ICON_LIST (gnome_icon_list_new ());
|
||||||
|
|
||||||
gnome_icon_list_set_selection_mode (icon_field, GTK_SELECTION_MULTIPLE);
|
gnome_icon_list_set_selection_mode (icon_field, GTK_SELECTION_MULTIPLE);
|
||||||
|
|
||||||
gtk_signal_connect (GTK_OBJECT (icon_field), "select_icon",
|
gtk_signal_connect (GTK_OBJECT (icon_field), "select_icon",
|
||||||
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);
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue