comparison src/rcfile.c @ 684:9f00d0d874fa

Save order of Properties dialog tabs to rc file. Users of GTK+ <2.10 can set tabs order directly in the rc file, others can move tabs using drag'n drop. The option is named properties.tabs_order, its default value is "123" which is General, Keywords, Exif tabs (left to right).
author zas_
date Sun, 18 May 2008 21:14:01 +0000
parents 81441380d3be
children a3218946bd2d
comparison
equal deleted inserted replaced
683:fece9ff5c624 684:9f00d0d874fa
415 WRITE_INT(panels.info.width); 415 WRITE_INT(panels.info.width);
416 WRITE_BOOL(panels.sort.enabled); 416 WRITE_BOOL(panels.sort.enabled);
417 WRITE_INT(panels.sort.action_state); 417 WRITE_INT(panels.sort.action_state);
418 WRITE_INT(panels.sort.mode_state); 418 WRITE_INT(panels.sort.mode_state);
419 WRITE_INT(panels.sort.selection_state); 419 WRITE_INT(panels.sort.selection_state);
420
421 WRITE_SUBTITLE("Properties dialog Options");
422 WRITE_CHAR(properties.tabs_order);
420 423
421 WRITE_SUBTITLE("Image Options"); 424 WRITE_SUBTITLE("Image Options");
422 425
423 secure_fprintf(ssi, "# image.zoom_mode possible values are:\n" 426 secure_fprintf(ssi, "# image.zoom_mode possible values are:\n"
424 "# original\n" 427 "# original\n"
725 READ_BOOL(panels.sort.enabled); 728 READ_BOOL(panels.sort.enabled);
726 READ_INT(panels.sort.action_state); 729 READ_INT(panels.sort.action_state);
727 READ_INT(panels.sort.mode_state); 730 READ_INT(panels.sort.mode_state);
728 READ_INT(panels.sort.selection_state); 731 READ_INT(panels.sort.selection_state);
729 732
733 /* properties dialog options */
734 READ_CHAR(properties.tabs_order);
735
730 /* image options */ 736 /* image options */
731 if (g_ascii_strcasecmp(option, "image.zoom_mode") == 0) 737 if (g_ascii_strcasecmp(option, "image.zoom_mode") == 0)
732 { 738 {
733 if (g_ascii_strcasecmp(value, "original") == 0) 739 if (g_ascii_strcasecmp(value, "original") == 0)
734 options->image.zoom_mode = ZOOM_RESET_ORIGINAL; 740 options->image.zoom_mode = ZOOM_RESET_ORIGINAL;