mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 21:06:52 +03:00
2eab3ff5f6
* gdesktop.c (load_desktop_icons): Added arguments that specify where to place the newly-created icons. This needs some tweaking still. (reload_desktop_icons): Now takes arguments for the position of the new icons. (drag_data_received): Pass in the drop position to reload_desktop_icons(). * gscreen.c (panel_tree_drag_motion): Added missing variable declaration. * gdesktop.c (load_desktop_icons): Added an incremental flag that specifies whether icon creation is unconditional regardless of whether there is an icon for a file or not. (reload_desktop_icons): Use the incremental flag in load_desktop_icons(). (drag_data_received): Reload the desktop incrementally, to avoid flicker. (desktop_icon_info_new): Use mc_lstat(), not mc_stat(). We do want to read symlinks, even dangling ones, if they exist. (load_desktop_icons): While we are reading the desktop directory, first place all the icons that have their metadata icon-position set, and build a list of the ones that don't. *Then* place those. This fixes overlapping icons on weird situations. * directory.xpm: Removed bogus garbage. There was a stale pixmap here. * gdesktop.c (setup_desktop_dnd): Allow for GDK_ACTION_ASK as well. * gscreen.c (panel_widget_motion): The action argument to gtk_drag_begin() is a mask of possible actions, not a single action. * gdesktop.c (drag_data_received): Only reload the icons if the drop was successful.
23 lines
415 B
C
23 lines
415 B
C
/* XPM */
|
|
static char * directory_xpm[] = {
|
|
"16 13 5 1",
|
|
" c None",
|
|
". c #000000000000",
|
|
"X c #FFFFFFFFFFFF",
|
|
"o c #FFFFFFFF79E7",
|
|
"O c #C71BC30B0000",
|
|
" ..... ",
|
|
".XXXXo. ",
|
|
".XoooOo.........",
|
|
".XooooOXXXXXXXo.",
|
|
".XooooooooooooO.",
|
|
".XooooooooooooO.",
|
|
".XooooooooooooO.",
|
|
".XooooooooooooO.",
|
|
".XooooooooooooO.",
|
|
".XooooooooooooO.",
|
|
".XooooooooooooO.",
|
|
".oOOOOOOOOOOOOO.",
|
|
"................"};
|
|
|