# HG changeset patch # User zas_ # Date 1208772541 0 # Node ID 7a69309b91c8ed8489fbe78ee54152f250880231 # Parent 5e9c24d3b3a85f240d2a865543ab601052a179d1 Allow the user to set the drag'n drop icon size through Preferences > Advanced > Behavior > Drag'n drop icon size. It is saved to rc file as dnd_icon_size. diff -r 5e9c24d3b3a8 -r 7a69309b91c8 src/dnd.c --- a/src/dnd.c Sun Apr 20 23:17:35 2008 +0000 +++ b/src/dnd.c Mon Apr 21 10:09:01 2008 +0000 @@ -32,7 +32,7 @@ gint dnd_file_drop_types_count = 2; -#define DND_ICON_SIZE 48 +#define DND_ICON_SIZE (options->dnd_icon_size) static void pixbuf_draw_border(GdkPixbuf *pixbuf, gint w, gint h) diff -r 5e9c24d3b3a8 -r 7a69309b91c8 src/globals.c --- a/src/globals.c Sun Apr 20 23:17:35 2008 +0000 +++ b/src/globals.c Mon Apr 21 10:09:01 2008 +0000 @@ -29,6 +29,7 @@ options->color_profile.screen_type = 0; options->color_profile.use_image = TRUE; + options->dnd_icon_size = 48; options->duplicates_similarity_threshold = 99; options->enable_metadata_dirs = FALSE; diff -r 5e9c24d3b3a8 -r 7a69309b91c8 src/preferences.c --- a/src/preferences.c Sun Apr 20 23:17:35 2008 +0000 +++ b/src/preferences.c Mon Apr 21 10:09:01 2008 +0000 @@ -267,6 +267,7 @@ options->tree_descend_subdirs = c_options->tree_descend_subdirs; options->open_recent_list_maxsize = c_options->open_recent_list_maxsize; + options->dnd_icon_size = c_options->dnd_icon_size; #ifdef DEBUG debug = debug_c; @@ -1406,6 +1407,9 @@ pref_spin_new_int(group, _("Open recent list maximum size"), NULL, 1, 50, 1, options->open_recent_list_maxsize, &c_options->open_recent_list_maxsize); + + pref_spin_new_int(group, _("Drag'n drop icon size"), NULL, + 16, 256, 16, options->dnd_icon_size, &c_options->dnd_icon_size); group = pref_group_new(vbox, FALSE, _("Navigation"), GTK_ORIENTATION_VERTICAL); diff -r 5e9c24d3b3a8 -r 7a69309b91c8 src/rcfile.c --- a/src/rcfile.c Sun Apr 20 23:17:35 2008 +0000 +++ b/src/rcfile.c Mon Apr 21 10:09:01 2008 +0000 @@ -318,6 +318,7 @@ WRITE_BOOL(mousewheel_scrolls); WRITE_INT(open_recent_list_maxsize); + WRITE_INT(dnd_icon_size); WRITE_BOOL(place_dialogs_under_mouse); @@ -608,7 +609,7 @@ READ_BOOL(mousewheel_scrolls); READ_INT(open_recent_list_maxsize); - + READ_INT(dnd_icon_size); READ_BOOL(place_dialogs_under_mouse); diff -r 5e9c24d3b3a8 -r 7a69309b91c8 src/typedefs.h --- a/src/typedefs.h Sun Apr 20 23:17:35 2008 +0000 +++ b/src/typedefs.h Mon Apr 21 10:09:01 2008 +0000 @@ -760,6 +760,7 @@ gint duplicates_similarity_threshold; gint open_recent_list_maxsize; + gint dnd_icon_size; /* file ops */ struct {