diff -Nru yad-0.30.1/ChangeLog yad-0.31.0/ChangeLog --- yad-0.30.1/ChangeLog 2015-09-08 04:58:58.000000000 +0000 +++ yad-0.31.0/ChangeLog 2015-09-10 08:28:48.000000000 +0000 @@ -1,3 +1,83 @@ +2015-09-10 05:31 v1c0nt + + * data/yad.1, po/ru.po, po/uk.po, src/file.c, src/form.c, + src/option.c, src/util.c, src/yad.h: enable preview for all of + file chooser dialogs + +2015-09-09 16:34 v1c0nt + + * po/ru.po, po/uk.po: remove crap from translation + +2015-09-09 16:19 v1c0nt + + * data/yad.1, po/ru.po, po/uk.po, src/file.c, src/form.c, + src/option.c, src/yad.h: extend file filters and apply them to + all of file dialogs + +2015-09-09 12:15 v1c0nt + + * src/form.c, src/option.c, src/util.c, src/yad.h: add date_format + default settings + +2015-09-09 11:25 v1c0nt + + * src/option.c, src/yad.h: remove rules_hint from settings + +2015-09-09 11:21 v1c0nt + + * data/yad.1, po/ru.po, po/uk.po, src/color.c, src/option.c, + src/util.c, src/yad.h: add palette options to color dialog. + remove this settings fron yad settings file + +2015-09-09 10:29 v1c0nt + + * data/yad.1, src/html.c, src/icons.c, src/text.c, src/util.c, + src/yad.h: change hardcoded xdg-open to yad setting + "open_command" + +2015-09-09 09:53 v1c0nt + + * src/main.c, src/option.c, src/util.c, src/yad.h: remove obsolete + dialog-sep option. code cleanup + +2015-09-09 05:48 v1c0nt + + * ChangeLog: + +2015-09-08 14:22 v1c0nt + + * po/ru.po, po/uk.po: + +2015-09-08 14:22 v1c0nt + + * data/yad.1, src/option.c: + +2015-09-08 14:16 v1c0nt + + * configure.ac: add -no-rules-hint option to list dialog + +2015-09-08 14:15 v1c0nt + + * data/yad.1, po/ru.po, po/uk.po, src/color.c, src/list.c, + src/option.c, src/util.c, src/yad.h: + +2015-09-08 12:20 v1c0nt + + * data/yad.1, src/main.c: add YAD_OPTIONS variable + +2015-09-08 12:03 v1c0nt + + * src/main.c: fix setting icon theme + +2015-09-08 10:35 v1c0nt + + * configure.ac: + +2015-09-08 10:34 v1c0nt + + * data/yad.1, po/ru.po, po/uk.po, src/list.c, src/option.c, + src/yad.h: add separators to --list dialog + 2015-09-08 04:57 v1c0nt * src/option.c: fix parsing orientation diff -Nru yad-0.30.1/configure yad-0.31.0/configure --- yad-0.30.1/configure 2015-09-08 04:59:04.000000000 +0000 +++ yad-0.31.0/configure 2015-09-11 10:17:41.000000000 +0000 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for YAD 0.30.1. +# Generated by GNU Autoconf 2.69 for YAD 0.31.0. # # Report bugs to . # @@ -580,8 +580,8 @@ # Identity of this package. PACKAGE_NAME='YAD' PACKAGE_TARNAME='yad' -PACKAGE_VERSION='0.30.1' -PACKAGE_STRING='YAD 0.30.1' +PACKAGE_VERSION='0.31.0' +PACKAGE_STRING='YAD 0.31.0' PACKAGE_BUGREPORT='https://sourceforge.net/p/yad-dialog/tickets/' PACKAGE_URL='https://sourceforge.net/projects/yad-dialog/' @@ -1346,7 +1346,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures YAD 0.30.1 to adapt to many kinds of systems. +\`configure' configures YAD 0.31.0 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1412,7 +1412,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of YAD 0.30.1:";; + short | recursive ) echo "Configuration of YAD 0.31.0:";; esac cat <<\_ACEOF @@ -1527,7 +1527,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -YAD configure 0.30.1 +YAD configure 0.31.0 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -1896,7 +1896,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by YAD $as_me 0.30.1, which was +It was created by YAD $as_me 0.31.0, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2760,7 +2760,7 @@ # Define the identity of the package. PACKAGE='yad' - VERSION='0.30.1' + VERSION='0.31.0' cat >>confdefs.h <<_ACEOF @@ -6569,7 +6569,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by YAD $as_me 0.30.1, which was +This file was extended by YAD $as_me 0.31.0, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -6636,7 +6636,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -YAD config.status 0.30.1 +YAD config.status 0.31.0 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -Nru yad-0.30.1/configure.ac yad-0.31.0/configure.ac --- yad-0.30.1/configure.ac 2015-09-08 04:58:31.000000000 +0000 +++ yad-0.31.0/configure.ac 2015-09-10 09:49:50.000000000 +0000 @@ -1,4 +1,4 @@ -AC_INIT([YAD], [0.30.1], [https://sourceforge.net/p/yad-dialog/tickets/], yad, [https://sourceforge.net/projects/yad-dialog/]) +AC_INIT([YAD], [0.31.0], [https://sourceforge.net/p/yad-dialog/tickets/], yad, [https://sourceforge.net/projects/yad-dialog/]) AC_CONFIG_AUX_DIR([build]) AM_INIT_AUTOMAKE([1.11 foreign dist-xz no-dist-gzip]) diff -Nru yad-0.30.1/data/yad.1 yad-0.31.0/data/yad.1 --- yad-0.30.1/data/yad.1 2015-09-05 05:29:39.000000000 +0000 +++ yad-0.31.0/data/yad.1 2015-09-10 07:47:06.000000000 +0000 @@ -230,6 +230,9 @@ .B \-\-init\-color=\fICOLOR\fP Set initial color value. .TP +.B \-\-gtk-palette +Show system palette inside color dialog. +.TP .B \-\-extra Show extra information about color in returned string. .TP @@ -240,6 +243,9 @@ Show palette and set predefined colors from given filename. By default used \fI/etc/X11/rgb.txt\fP. .TP +.B \-\-expand-palette +Expander for list of user-defined colors will be initially opened. +.TP .B \-\-mode=\fIMODE\fP Set output color mode. Possible values are \fIhex\fP or \fIrgb\fP. Default is \fIhex\fP. HEX mode looks like \fI#rrggbbaa\fP, RGB mode - \fIrgba(r, g, b, a)\fP. In RGBA mode opacity have values from 0.0 to 1.0. @@ -344,16 +350,6 @@ Confirm file selection if filename already exists. Optional argument is a text for confirmation dialog. .TP -.B \-\-file-filter=\fINAME | PATTERN1 PATTERN2 ...\fP -Add a filename filter. \fINAME\fP is a displayed filter name, \fIPATTERN\fP -is a shell-style filename pattern (for example *.txt). This option may be -used multiply times. -.TP -.B \-\-add-preview -Add preview widget to file dialog. Preview images loads from large or normal thumbnails according to XDG Thumbnails -specification v0.8.0 (http://standards.freedesktop.org/thumbnail-spec/latest/) or creates by yad for image files and saves -as large thumbnails. -.TP .B \-\-quoted-output Output values will be shell-style quoted. @@ -492,6 +488,9 @@ .B \-\-no-click Disable sorting of column content by clicking on its header. .TP +.B \-\-no-rules-hint +Don't draw even and odd rows by a different colors. This option depends on your current gtk theme and may not work. +.TP .B \-\-print-all Print all data from the list. .TP @@ -507,6 +506,15 @@ .B \-\-search\-column=\fINUMBER\fP Set the quick search column. \fI0\fP mean to disable searching. By default search mades on first column. .TP +.B \-\-tooltip\-column=\fINUMBER\fP +Set the column with popup tooltips. +.TP +.B \-\-sep\-column=\fINUMBER\fP +Set the row separator column. If the cell value from this column equal to specified row separator value such row will be draw as separator. +.TP +.B \-\-sep\-value=\fITEXT\fP +Set the \fITEXT\fP as a row separator value. +.TP .B \-\-limit=\fINUMBER\fP Set the number of rows in list dialog. Will be shown only the last \fINUMBER\fP rows. This option will take effect only when data reading from stdin. .TP @@ -728,6 +736,26 @@ .B \-\-mark=\fI[NAME]:VALUE\fP Add a mark to scale. May be used multiply times. \fINAME\fP is an optional arguments for set label to mark. +.SS File filters options +.TP +.B \-\-file-filter=\fINAME | PATTERN1 PATTERN2 ...\fP +Add a filename filter. \fINAME\fP is a displayed filter name, \fIPATTERN\fP +is a shell-style filename pattern (for example *.txt). This option may be used multiply times. +.TP +.B \-\-mime-filter=\fINAME | MIME1 MIME2 ...\fP +Add a mime-type filter. \fINAME\fP is a displayed filter name, \fIPATTERN\fP +is a name of mime type (for example text/plain). This option may be used multiply times. +.TP +.B \-\-image-filter=\fI[NAME]\fP +Add filter for images supported by gdk-pixbuf library. \fINAME\fP in as optional name for this filter. +.TP +.B \-\-add-preview +Add preview widget. Preview images loads from large or normal thumbnails according to XDG Thumbnails +specification v0.8.0 (http://standards.freedesktop.org/thumbnail-spec/latest/) or creates by yad for image files and saves +as large thumbnails. + +This options applies to all of yad's file chooser dialogs. + .SS Miscellaneous options .TP .B \-?, \-\-help @@ -789,6 +817,10 @@ .SH ENVIRONMENT VARIABLES .TP +.B YAD_OPTIONS +This variable can holds some default options for yad. All options in this +variable may be redefined from command line. +.TP .B YAD_PID This variable sets to the value of current dialog's pid and accessible in all dialog children. @@ -872,7 +904,7 @@ .TP .B yad.conf YAD default settings. \fIyad.conf\fP placed in \fI$XDG_CONFIG_HOME\fP or \fI$HOME/.config\fP -directory. This file contain comments on every settings and will be automatically +directory. This file contain comments on every defaults and will be automatically recreated on yad'd start if it doesn't exists. .SH EXAMPLES diff -Nru yad-0.30.1/debian/changelog yad-0.31.0/debian/changelog --- yad-0.30.1/debian/changelog 2015-09-10 10:01:41.000000000 +0000 +++ yad-0.31.0/debian/changelog 2015-09-14 09:29:34.000000000 +0000 @@ -1,4 +1,10 @@ -yad (0.30.1-1~webupd8~vivid0) vivid; urgency=medium +yad (0.31.0-1~webupd8~vivid0) vivid; urgency=medium + + * New upstream release + + -- Alin Andrei Mon, 14 Sep 2015 12:28:19 +0300 + +yad (0.30.1-1~webupd8~precise0) precise; urgency=medium * New upstream release diff -Nru yad-0.30.1/NEWS yad-0.31.0/NEWS --- yad-0.30.1/NEWS 2015-09-05 06:27:35.000000000 +0000 +++ yad-0.31.0/NEWS 2015-09-10 11:06:21.000000000 +0000 @@ -1,3 +1,17 @@ +Version 0.31.0 + - add separators to list dialog + - use YAD_OPTIONS variable for specify default yad arguments + - add --no-rules-hint option to list dialog + - add parameters for controlling palletes in color selection + - remove some entries from settings file + - set default open command and date format through the settings file + - add additional filter settings for file selection dialogs + - apply filter and preview settings to all of file selection dialogs + - fix settings custom icon theme + +Version 0.30.1 + - fix parsing paned orientation + Version 0.30.0 - add paned dialog - add --parent-win option to make dialog transient for special window diff -Nru yad-0.30.1/po/ru.po yad-0.31.0/po/ru.po --- yad-0.30.1/po/ru.po 2015-09-05 05:12:41.000000000 +0000 +++ yad-0.31.0/po/ru.po 2015-09-10 07:47:06.000000000 +0000 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: YAD\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-09-05 08:09+0300\n" +"POT-Creation-Date: 2015-09-10 08:27+0300\n" "PO-Revision-Date: 2009-04-30 16:47+0300\n" "Last-Translator: Victor Ananjevsky \n" "Language-Team: \n" @@ -92,31 +92,31 @@ msgid "Initial value greater than maximum.\n" msgstr "Начальное значение больше маскимального.\n" -#: ../src/form.c:406 +#: ../src/form.c:407 msgid "Select files" msgstr "Выбор файлов" -#: ../src/form.c:414 +#: ../src/form.c:415 msgid "Select folders" msgstr "Выбор каталогов" -#: ../src/form.c:478 +#: ../src/form.c:492 msgid "Select or create file" msgstr "Выбор или создание файла" -#: ../src/form.c:486 +#: ../src/form.c:500 msgid "Select or create folder" msgstr "Выбор или создание каталога" -#: ../src/form.c:523 +#: ../src/form.c:549 msgid "Select date" msgstr "Выбор даты" -#: ../src/form.c:743 +#: ../src/form.c:767 msgid "Select file" msgstr "Выбор файла" -#: ../src/form.c:758 +#: ../src/form.c:795 msgid "Select folder" msgstr "Выбор каталога" @@ -130,12 +130,17 @@ msgid "Unable to open directory %s: %s\n" msgstr "Не могу открыть каталог %s: %s\n" -#: ../src/main.c:103 ../src/main.c:261 +#: ../src/main.c:103 ../src/main.c:258 #, c-format msgid "%d sec" msgstr "%d сек" -#: ../src/main.c:700 +#: ../src/main.c:692 ../src/main.c:699 +#, c-format +msgid "Unable to parse YAD_OPTIONS: %s\n" +msgstr "Не могу разобрать YAD_OPTIONS: %s\n" + +#: ../src/main.c:710 #, c-format msgid "Unable to parse command line: %s\n" msgstr "Не удается разобрать командную строку: %s\n" @@ -171,456 +176,448 @@ msgid "Duplicate row" msgstr "Скопировать строку" -#: ../src/list.c:810 +#: ../src/list.c:818 #, c-format msgid "No column titles specified for List dialog.\n" msgstr "Не заданы заголовоки колонок для диалога со списком\n" -#: ../src/option.c:77 +#: ../src/option.c:78 msgid "Set the dialog title" msgstr "Задать заголовок диалога" -#: ../src/option.c:78 +#: ../src/option.c:79 msgid "TITLE" msgstr "ЗАГОЛОВОК" -#: ../src/option.c:83 +#: ../src/option.c:84 msgid "Set the window icon" msgstr "Задать значок диалога" -#: ../src/option.c:84 +#: ../src/option.c:85 msgid "ICONPATH" msgstr "ЗНАЧОК" -#: ../src/option.c:89 +#: ../src/option.c:90 msgid "Set the width" msgstr "Задать ширину окна" -#: ../src/option.c:90 +#: ../src/option.c:91 msgid "WIDTH" msgstr "ШИРИНА" -#: ../src/option.c:95 +#: ../src/option.c:96 msgid "Set the height" msgstr "Задать высоту окна" -#: ../src/option.c:96 +#: ../src/option.c:97 msgid "HEIGHT" msgstr "ВЫСОТА" -#: ../src/option.c:101 +#: ../src/option.c:102 msgid "Set the window geometry" msgstr "Задать геометрию окна" -#: ../src/option.c:102 +#: ../src/option.c:103 msgid "WxH+X+Y" msgstr "ВxШ+X+Y" -#: ../src/option.c:107 +#: ../src/option.c:108 msgid "Set dialog timeout in seconds" msgstr "Задать время работы диалога в секундах" -#: ../src/option.c:108 +#: ../src/option.c:109 msgid "TIMEOUT" msgstr "ЗАДЕРЖКА" -#: ../src/option.c:113 +#: ../src/option.c:114 msgid "Show remaining time indicator (top, bottom, left, right)" msgstr "Показать индикатор задержки (top, bottom, left, right)" -#: ../src/option.c:114 ../src/option.c:1029 +#: ../src/option.c:115 ../src/option.c:1040 msgid "POS" msgstr "ПОЗИЦИЯ" -#: ../src/option.c:119 +#: ../src/option.c:120 msgid "Set the dialog text" msgstr "Задать текст диалога" -#: ../src/option.c:120 ../src/option.c:150 ../src/option.c:423 -#: ../src/option.c:429 ../src/option.c:435 ../src/option.c:575 -#: ../src/option.c:1091 ../src/option.c:1130 +#: ../src/option.c:121 ../src/option.c:151 ../src/option.c:428 +#: ../src/option.c:434 ../src/option.c:440 ../src/option.c:568 +#: ../src/option.c:859 ../src/option.c:1102 ../src/option.c:1141 msgid "TEXT" msgstr "ТЕКСТ" -#: ../src/option.c:125 +#: ../src/option.c:126 msgid "Set the dialog text alignment (left, center, right, fill)" msgstr "Задать выравнивание текста диалога (left, center, right, fill)" -#: ../src/option.c:126 ../src/option.c:168 ../src/option.c:598 -#: ../src/option.c:818 ../src/option.c:906 ../src/option.c:949 -#: ../src/option.c:1023 ../src/option.c:1057 ../src/option.c:1258 +#: ../src/option.c:127 ../src/option.c:169 ../src/option.c:591 +#: ../src/option.c:817 ../src/option.c:917 ../src/option.c:960 +#: ../src/option.c:1034 ../src/option.c:1068 ../src/option.c:1269 msgid "TYPE" msgstr "ТИП" -#: ../src/option.c:131 +#: ../src/option.c:132 msgid "Set the dialog image" msgstr "Задать картинку диалога" -#: ../src/option.c:132 ../src/option.c:459 ../src/option.c:471 +#: ../src/option.c:133 ../src/option.c:464 ../src/option.c:476 msgid "IMAGE" msgstr "КАРТИНКА" -#: ../src/option.c:137 +#: ../src/option.c:138 msgid "Show image above main widget" msgstr "Показывать картинку над основным виджетом" -#: ../src/option.c:143 +#: ../src/option.c:144 msgid "Use specified icon theme instead of default" msgstr "Использовать указанную тему иконок" -#: ../src/option.c:144 +#: ../src/option.c:145 msgid "THEME" msgstr "ТЕМА" -#: ../src/option.c:149 +#: ../src/option.c:150 msgid "Hide main widget with expander" msgstr "Спрятать основной виджет" -#: ../src/option.c:155 +#: ../src/option.c:156 msgid "Add dialog button (may be used multiple times)" msgstr "Добавить кнопку (может использоваться несколько раз)" -#: ../src/option.c:156 +#: ../src/option.c:157 msgid "NAME:ID" msgstr "ИМЯ:ID" -#: ../src/option.c:161 +#: ../src/option.c:162 msgid "Don't show buttons" msgstr "Не показывать кнопки" -#: ../src/option.c:167 +#: ../src/option.c:168 msgid "Set buttons layout type (spread, edge, start, end or center)" msgstr "Задать тип размещения кнопок (spread, edge, start, end или center)" -#: ../src/option.c:173 +#: ../src/option.c:174 msgid "Don't use pango markup language in dialog's text" msgstr "Не использовать разметку pango в тексте" -#: ../src/option.c:179 +#: ../src/option.c:180 msgid "Don't close dialog if Escape was pressed" msgstr "Не закрывать диалог при нажатии Escape" #: ../src/option.c:186 -msgid "Add separator between dialog and buttons" -msgstr "Добавить разделитель между диалогом и кнопками" - -#: ../src/option.c:193 msgid "Set window borders" msgstr "Установить границы окна" -#: ../src/option.c:194 ../src/option.c:273 ../src/option.c:604 -#: ../src/option.c:824 ../src/option.c:830 ../src/option.c:836 -#: ../src/option.c:842 ../src/option.c:848 ../src/option.c:854 -#: ../src/option.c:955 +#: ../src/option.c:187 ../src/option.c:266 ../src/option.c:597 +#: ../src/option.c:823 ../src/option.c:829 ../src/option.c:835 +#: ../src/option.c:841 ../src/option.c:847 ../src/option.c:853 +#: ../src/option.c:865 ../src/option.c:966 msgid "NUMBER" msgstr "ЧИСЛО" -#: ../src/option.c:199 +#: ../src/option.c:192 msgid "Always print result" msgstr "Всегда выводить результат" -#: ../src/option.c:205 +#: ../src/option.c:198 msgid "Dialog text can be selected" msgstr "Текст диалога может быть выделен" -#: ../src/option.c:212 +#: ../src/option.c:205 msgid "Set window sticky" msgstr "Окно видимо на всех рабочих столах" -#: ../src/option.c:218 +#: ../src/option.c:211 msgid "Set window unresizable" msgstr "Неизменяемый размер" -#: ../src/option.c:224 +#: ../src/option.c:217 msgid "Place window on top" msgstr "Разместить окно поверх остальных" -#: ../src/option.c:230 +#: ../src/option.c:223 msgid "Place window on center of screen" msgstr "Разместить окно в центре экрана" -#: ../src/option.c:236 +#: ../src/option.c:229 msgid "Place window at the mouse position" msgstr "Разместить окно под указателем мыши" -#: ../src/option.c:242 +#: ../src/option.c:235 msgid "Set window undecorated" msgstr "Убрать обрамление" -#: ../src/option.c:248 +#: ../src/option.c:241 msgid "Don't show window in taskbar" msgstr "Не показывать окно в панели задач" -#: ../src/option.c:254 +#: ../src/option.c:247 msgid "Set window maximized" msgstr "Задать окну максимальный размер" -#: ../src/option.c:260 +#: ../src/option.c:253 msgid "Set window fulscreen" msgstr "Развернуть окно на весь экран" -#: ../src/option.c:266 +#: ../src/option.c:259 msgid "Special type of dialog for XEMBED" msgstr "Специальный режим диалога для встраивания" -#: ../src/option.c:267 ../src/option.c:937 ../src/option.c:1035 +#: ../src/option.c:260 ../src/option.c:948 ../src/option.c:1046 msgid "KEY" msgstr "КЛЮЧ" -#: ../src/option.c:272 +#: ../src/option.c:265 msgid "Tab nubmer of this dialog" msgstr "Номер вкладки для этого диалога" -#: ../src/option.c:279 +#: ../src/option.c:272 msgid "XID of parent window" msgstr "Идентификатор родительсткого окна" -#: ../src/option.c:285 +#: ../src/option.c:278 msgid "Send SIGNAL to parent" msgstr "Послать СИГНАЛ родителю" -#: ../src/option.c:286 +#: ../src/option.c:279 msgid "SIGNAL" msgstr "СИГНАЛ" -#: ../src/option.c:291 +#: ../src/option.c:284 msgid "Print X Window Id to the stderr" msgstr "Вывести идентификатор окна на stderr" -#: ../src/option.c:298 +#: ../src/option.c:291 msgid "Add path for search icons by name" msgstr "Добавить каталог для поиска изображений по имени" -#: ../src/option.c:299 +#: ../src/option.c:292 msgid "PATH" msgstr "ПУТЬ" -#: ../src/option.c:308 +#: ../src/option.c:301 msgid "Display calendar dialog" msgstr "Отобразить диалог для выбора даты" -#: ../src/option.c:314 +#: ../src/option.c:307 msgid "Set the calendar day" msgstr "Задать день календаря" -#: ../src/option.c:315 +#: ../src/option.c:308 msgid "DAY" msgstr "ДЕНЬ" -#: ../src/option.c:320 +#: ../src/option.c:313 msgid "Set the calendar month" msgstr "Задать месяц календаря" -#: ../src/option.c:321 +#: ../src/option.c:314 msgid "MONTH" msgstr "МЕСЯЦ" -#: ../src/option.c:326 +#: ../src/option.c:319 msgid "Set the calendar year" msgstr "Задать год календаря" -#: ../src/option.c:327 +#: ../src/option.c:320 msgid "YEAR" msgstr "ГОД" -#: ../src/option.c:332 ../src/option.c:621 +#: ../src/option.c:325 ../src/option.c:614 msgid "Set the format for the returned date" msgstr "Задать формат возвращаемой даты" -#: ../src/option.c:333 ../src/option.c:622 ../src/option.c:729 +#: ../src/option.c:326 ../src/option.c:615 ../src/option.c:722 msgid "PATTERN" msgstr "ШАБЛОН" -#: ../src/option.c:338 +#: ../src/option.c:331 msgid "Set the filename with dates details" msgstr "Задать имя файла с описанием дат" -#: ../src/option.c:339 ../src/option.c:367 ../src/option.c:499 -#: ../src/option.c:1051 ../src/option.c:1276 ../src/option.c:1322 -#: ../src/option.c:1332 +#: ../src/option.c:332 ../src/option.c:366 ../src/option.c:504 +#: ../src/option.c:1062 ../src/option.c:1287 ../src/option.c:1361 +#: ../src/option.c:1371 msgid "FILENAME" msgstr "ИМЯ_ФАЙЛА" -#: ../src/option.c:348 +#: ../src/option.c:341 msgid "Display color selection dialog" msgstr "Отобразить диалог для выбора цвета" -#: ../src/option.c:354 +#: ../src/option.c:347 msgid "Alias for --color" msgstr "Синоним для --color" -#: ../src/option.c:360 +#: ../src/option.c:353 msgid "Set initial color value" msgstr "Задать начальное значение цвета" -#: ../src/option.c:361 ../src/option.c:1234 ../src/option.c:1240 -#: ../src/option.c:1294 +#: ../src/option.c:354 ../src/option.c:1245 ../src/option.c:1251 +#: ../src/option.c:1305 msgid "COLOR" msgstr "ЦВЕТ" -#: ../src/option.c:366 +#: ../src/option.c:359 +msgid "Show system palette in color dialog" +msgstr "Показывать системную палитру" + +#: ../src/option.c:365 msgid "Set path to palette file. Default - " msgstr "Задать путь к файлу цветов. По-умолчанию - " -#: ../src/option.c:372 +#: ../src/option.c:371 +msgid "Expand user palette" +msgstr "Раскрывать пользовательскую палитру" + +#: ../src/option.c:377 msgid "Set output mode to MODE. Values are hex (default) or rgb" msgstr "Установить ревим вывода в РЕЖИМ. Значения - hex (по-умолчанию) или rgb" -#: ../src/option.c:373 +#: ../src/option.c:378 msgid "MODE" msgstr "РЕЖИМ" -#: ../src/option.c:378 +#: ../src/option.c:383 msgid "Use #rrrrggggbbbb format instead of #rrggbb" msgstr "Использовать формат #rrrrggggbbbb вместо #rrggbb" -#: ../src/option.c:384 +#: ../src/option.c:389 msgid "Add opacity to output color value" msgstr "Добавить прозрачность к значению цвета" -#: ../src/option.c:394 +#: ../src/option.c:399 msgid "Display drag-n-drop box" msgstr "Отобразить диалог для перехвата dnd" -#: ../src/option.c:400 +#: ../src/option.c:405 msgid "Use dialog text as tooltip" msgstr "Использовать текст диалога в качестве подсказки" -#: ../src/option.c:406 +#: ../src/option.c:411 msgid "Set command for process d-n-d data" msgstr "Команда для обработки полученных данных" -#: ../src/option.c:407 ../src/option.c:465 ../src/option.c:477 -#: ../src/option.c:860 ../src/option.c:971 +#: ../src/option.c:412 ../src/option.c:470 ../src/option.c:482 +#: ../src/option.c:871 ../src/option.c:982 msgid "CMD" msgstr "КОМАНДА" -#: ../src/option.c:416 +#: ../src/option.c:421 msgid "Display text entry or combo-box dialog" msgstr "Отобразить диалог для ввода текста или выбора варианта" -#: ../src/option.c:422 +#: ../src/option.c:427 msgid "Set the entry label" msgstr "Задать метку поля ввода" -#: ../src/option.c:428 +#: ../src/option.c:433 msgid "Set the entry text" msgstr "Задать текст по умолчанию для ввода" -#: ../src/option.c:434 +#: ../src/option.c:439 msgid "Hide the entry text" msgstr "Прятать введенный текст (Пароль)" -#: ../src/option.c:440 +#: ../src/option.c:445 msgid "Use completion instead of combo-box" msgstr "Использовать автодополнение вместо списка значений" -#: ../src/option.c:446 +#: ../src/option.c:451 msgid "Use spin button for text entry" msgstr "Использовать числовое поле вместо текста" -#: ../src/option.c:452 +#: ../src/option.c:457 msgid "Allow changes to text in combo-box" msgstr "Разрешить изменять текст в режиме выбора варианта" -#: ../src/option.c:458 +#: ../src/option.c:463 msgid "Set the left entry icon" msgstr "Задать левый значок" -#: ../src/option.c:464 +#: ../src/option.c:469 msgid "Set the left entry icon action" msgstr "Действие для левого значка" -#: ../src/option.c:470 +#: ../src/option.c:475 msgid "Set the right entry icon" msgstr "Задать правый значок" -#: ../src/option.c:476 +#: ../src/option.c:481 msgid "Set the right entry icon action" msgstr "Действие для правого значка" -#: ../src/option.c:486 +#: ../src/option.c:491 msgid "Display file selection dialog" msgstr "Отобразить диалог для выбора файла" -#: ../src/option.c:492 +#: ../src/option.c:497 msgid "Alias for --file" msgstr "Синоним для --file" -#: ../src/option.c:498 +#: ../src/option.c:503 msgid "Set the filename" msgstr "Задать имя файла" -#: ../src/option.c:504 +#: ../src/option.c:509 msgid "Allow multiple files to be selected" msgstr "Разрешить выбор нескольких файлов" -#: ../src/option.c:510 +#: ../src/option.c:515 msgid "Activate directory-only selection" msgstr "Активировать выделение только по каталогам" -#: ../src/option.c:516 +#: ../src/option.c:521 msgid "Activate save mode" msgstr "Активировать режим сохранения" -#: ../src/option.c:522 ../src/option.c:609 ../src/option.c:793 +#: ../src/option.c:527 ../src/option.c:602 ../src/option.c:792 msgid "Set output separator character" msgstr "Установить выходной разделяющий символ" -#: ../src/option.c:523 ../src/option.c:610 ../src/option.c:616 -#: ../src/option.c:794 ../src/option.c:983 ../src/option.c:989 +#: ../src/option.c:528 ../src/option.c:603 ../src/option.c:609 +#: ../src/option.c:793 ../src/option.c:994 ../src/option.c:1000 msgid "SEPARATOR" msgstr "РАЗДЕЛИТЕЛЬ" -#: ../src/option.c:528 +#: ../src/option.c:533 msgid "Confirm file selection if filename already exists" msgstr "Подтверждать выбор файла, если файл уже существует" -#: ../src/option.c:529 +#: ../src/option.c:534 msgid "[TEXT]" msgstr "[ТЕКСТ]" -#: ../src/option.c:534 -msgid "Sets a filename filter" -msgstr "Задать фильтр файлов" - -#: ../src/option.c:535 -msgid "NAME | PATTERN1 PATTERN2 ..." -msgstr "ИМЯ | ШАБЛОН1 ШАБЛОН2 ..." - -#: ../src/option.c:540 -msgid "Enable preview" -msgstr "Добавить предпросмотр" - -#: ../src/option.c:546 ../src/option.c:633 ../src/option.c:877 +#: ../src/option.c:539 ../src/option.c:626 ../src/option.c:888 msgid "Quote dialogs output" msgstr "Вывод значений в кавычках" -#: ../src/option.c:556 +#: ../src/option.c:549 msgid "Display font selection dialog" msgstr "Отобразить диалог для выбора шрифта" -#: ../src/option.c:562 +#: ../src/option.c:555 msgid "Alias for --font" msgstr "Синоним для --font" -#: ../src/option.c:568 +#: ../src/option.c:561 msgid "Set initial font" msgstr "Задать начальный шрифт" -#: ../src/option.c:569 ../src/option.c:1075 ../src/option.c:1246 +#: ../src/option.c:562 ../src/option.c:1086 ../src/option.c:1257 msgid "FONTNAME" msgstr "ШРИФТ" -#: ../src/option.c:574 +#: ../src/option.c:567 msgid "Set preview text" msgstr "Задать текст образца" -#: ../src/option.c:584 +#: ../src/option.c:577 msgid "Display form dialog" msgstr "Отобразить диалог формы ввода" -#: ../src/option.c:591 +#: ../src/option.c:584 msgid "" "Add field to form (TYPE - H, RO, NUM, CHK, CB, CBE, CE, FL, SFL, MFL, DIR, " "CDIR, MDIR, FN, DT, SCL, CLR, BTN, FBTN, LBL or TXT)" @@ -628,95 +625,95 @@ "Добавить поле к форме (Тип поля: Н, RO, NUM, CHK, CB, CBE, CE, FL, SFL, MFL, " "DIR, CDIR, MDIR, FN, MFL, DT, SCL, CLR, BTN, FBTN, LBL или TXT)" -#: ../src/option.c:592 ../src/option.c:894 +#: ../src/option.c:585 ../src/option.c:905 msgid "LABEL[:TYPE]" msgstr "МЕТКА[:ТИП]" -#: ../src/option.c:597 +#: ../src/option.c:590 msgid "Set alignment of filed labels (left, center or right)" msgstr "Задать выравнивание меток полей (left, center или right)" -#: ../src/option.c:603 +#: ../src/option.c:596 msgid "Set number of columns in form" msgstr "Задать количество колонок в форме" -#: ../src/option.c:615 +#: ../src/option.c:608 msgid "Set separator character for combobox or scale data" msgstr "Установить разделяющий символ для данных списка или числового поля" -#: ../src/option.c:627 +#: ../src/option.c:620 msgid "Make form scrollable" msgstr "Сделать форму прокручиваемой" -#: ../src/option.c:639 +#: ../src/option.c:632 msgid "Order output fields by rows" msgstr "Упорядочить вівод по строкам" -#: ../src/option.c:650 +#: ../src/option.c:643 msgid "Display HTML dialog" msgstr "Отобразить HTML диалог" -#: ../src/option.c:656 +#: ../src/option.c:649 msgid "Open specified location" msgstr "Открыть указанный адрес" -#: ../src/option.c:657 +#: ../src/option.c:650 msgid "URI" msgstr "URI" -#: ../src/option.c:662 +#: ../src/option.c:655 msgid "Turn on browser mode" msgstr "Включить режим браузера" -#: ../src/option.c:668 +#: ../src/option.c:661 msgid "Print clicked uri to stdout" msgstr "Печатать ссылки по щелчку" -#: ../src/option.c:674 +#: ../src/option.c:667 msgid "Set mime type of input stream data" msgstr "Задать тип mime для входных данных" -#: ../src/option.c:675 +#: ../src/option.c:668 msgid "MIME" msgstr "MIME" -#: ../src/option.c:680 +#: ../src/option.c:673 msgid "Set encoding of input stream data" msgstr "Задать кодировку для входных данных" -#: ../src/option.c:681 +#: ../src/option.c:674 msgid "ENCODING" msgstr "КОДИРОВКА" -#: ../src/option.c:691 +#: ../src/option.c:684 msgid "Display icons box dialog" msgstr "Отобразить диалог со значками быстрого доступа" -#: ../src/option.c:697 +#: ../src/option.c:690 msgid "Read data from .desktop files in specified directory" msgstr "Читать данные из .desktop файлов в определенном каталоге" -#: ../src/option.c:698 +#: ../src/option.c:691 msgid "DIRECTORY" msgstr "КАТАЛОГ" -#: ../src/option.c:703 +#: ../src/option.c:696 msgid "Use compact (list) view" msgstr "Использовать компактный вид (список)" -#: ../src/option.c:709 +#: ../src/option.c:702 msgid "Use GenericName field instead of Name for icon label" msgstr "Использовать поле GenericName вместо Name для метки" -#: ../src/option.c:715 +#: ../src/option.c:708 msgid "Read data from stdin" msgstr "Читать данные со стандартного ввода" -#: ../src/option.c:721 +#: ../src/option.c:714 msgid "Set the width of dialog items" msgstr "Задать ширину элемента диалога" -#: ../src/option.c:728 +#: ../src/option.c:721 #, no-c-format msgid "" "Use specified pattern for launch command in terminal (default: xterm -e %s)" @@ -724,66 +721,70 @@ "Использовать указанный шаблон для запуска в терминале (по умолчанию: xterm -" "e %s)" -#: ../src/option.c:734 +#: ../src/option.c:727 msgid "Sort items by name instead of filename" msgstr "Сортировать по полю Имя вместо имени файла" -#: ../src/option.c:740 +#: ../src/option.c:733 msgid "Sort items in descending order" msgstr "Сортировать в убывающем порядке" -#: ../src/option.c:746 +#: ../src/option.c:739 msgid "Activate items by single click" msgstr "Активировать элемент одинарным щелчком" -#: ../src/option.c:756 +#: ../src/option.c:749 msgid "Display list dialog" msgstr "Отобразить диалог со списком" -#: ../src/option.c:762 -msgid "Don't show column headers" -msgstr "Не показывать заголовки колонок" - -#: ../src/option.c:768 +#: ../src/option.c:755 msgid "Set the column header (TYPE - TEXT, NUM, FLT, CHK, RD, IMG, HD or TIP)" msgstr "" "Задать заголовок столбца (ТИП - TEXT, NUM, FLT, CHK, RD, IMG, HD или TIP)" -#: ../src/option.c:769 +#: ../src/option.c:756 msgid "COLUMN[:TYPE]" msgstr "СТОЛБЕЦ[:ТИП]" -#: ../src/option.c:774 +#: ../src/option.c:761 msgid "Use checkboxes for first column" msgstr "Использовать флажки для первой колонки" -#: ../src/option.c:780 +#: ../src/option.c:767 msgid "Use radioboxes for first column" msgstr "Использовать переключатель для первой колонки" -#: ../src/option.c:786 +#: ../src/option.c:773 +msgid "Don't show column headers" +msgstr "Не показывать заголовки колонок" + +#: ../src/option.c:779 msgid "Disable clickable column headers" msgstr "Запретить нажимаемые заголовки" -#: ../src/option.c:799 +#: ../src/option.c:785 +msgid "Disable rules hints" +msgstr "Запретить раскраску строк" + +#: ../src/option.c:798 msgid "Allow multiple rows to be selected" msgstr "Разрешить выбор нескольких строк" -#: ../src/option.c:805 ../src/option.c:1281 +#: ../src/option.c:804 ../src/option.c:1292 msgid "Allow changes to text" msgstr "Разрешить изменять текст" -#: ../src/option.c:811 +#: ../src/option.c:810 msgid "Print all data from list" msgstr "Печатать таблицу полностью" -#: ../src/option.c:817 +#: ../src/option.c:816 msgid "Set ellipsize mode for text columns (TYPE - NONE, START, MIDDLE or END)" msgstr "" "Задать тип усечсения для текстовых столбцов (ТИП - NONE, START, MIDDLE или " "END)" -#: ../src/option.c:823 +#: ../src/option.c:822 msgid "" "Print a specific column. By default or if 0 is specified will be printed all " "columns" @@ -791,564 +792,613 @@ "Распечатать только определённый столбец. По-умолчанию или если столбец равен " "0, будут распечатаны все столбцы" -#: ../src/option.c:829 +#: ../src/option.c:828 msgid "Hide a specific column" msgstr "Скрыть указанный столбец" -#: ../src/option.c:835 +#: ../src/option.c:834 msgid "Set the column expandable by default. 0 sets all columns expandable" msgstr "" "Задать колонку, расширяемую по-умолчанию. 0 устанавливает расширяемыми все " "колонки" -#: ../src/option.c:841 +#: ../src/option.c:840 msgid "" "Set the quick search column. Default is first column. Set it to 0 for " "disable searching" msgstr "Задать колонку поиска. По-умолчанию первая. 0 запрещает поиск" -#: ../src/option.c:847 +#: ../src/option.c:846 msgid "Set the tooltip column" msgstr "Задать колонку всплывающих подсказок" -#: ../src/option.c:853 +#: ../src/option.c:852 +msgid "Set the row separator column" +msgstr "Задать колонку разделителя строк" + +#: ../src/option.c:858 +msgid "Set the row separator value" +msgstr "Задать значение разделителя строк" + +#: ../src/option.c:864 msgid "Set the limit of rows in list" msgstr "Задать количество строк в списке" -#: ../src/option.c:859 +#: ../src/option.c:870 msgid "Set double-click action" msgstr "Действие по двойному щелчку мыши" -#: ../src/option.c:865 +#: ../src/option.c:876 msgid "Use regex in search" msgstr "Использовать регулярные выражения при поиске" -#: ../src/option.c:871 +#: ../src/option.c:882 msgid "Listen for data on stdin in addition to command-line" msgstr "Получать даннные из stdin в дополнение к указанным в командной строке" -#: ../src/option.c:887 +#: ../src/option.c:898 msgid "Display multi progress bars dialog" msgstr "Отобразить диалог c несколькими индикаторами" -#: ../src/option.c:893 +#: ../src/option.c:904 msgid "Add the progress bar (TYPE - NORM, RTL or PULSE)" msgstr "Добавить индикатор (ТИП - NORM, RTL или PULSE)" -#: ../src/option.c:899 +#: ../src/option.c:910 msgid "Show vertical bars" msgstr "Показывать вертикальные индикаторы" -#: ../src/option.c:905 +#: ../src/option.c:916 msgid "Set alignment of bar labels (left, center or right)" msgstr "Задать выравнивание меток индикаторов (left, center или right)" -#: ../src/option.c:912 +#: ../src/option.c:923 #, no-c-format msgid "Dismiss the dialog when 100% of all bars has been reached" msgstr "Закрыть диалог по достижении 100% всеми индикаторами" -#: ../src/option.c:919 ../src/option.c:1116 +#: ../src/option.c:930 ../src/option.c:1127 msgid "Kill parent process if cancel button is pressed" msgstr "Завершить родительский процесс, если нажата кнопка отмены" -#: ../src/option.c:930 +#: ../src/option.c:941 msgid "Display notebook dialog" msgstr "Отобразить диалог с вкладками" -#: ../src/option.c:936 ../src/option.c:1034 +#: ../src/option.c:947 ../src/option.c:1045 msgid "Identifier of embedded dialogs" msgstr "Идентификатор встраиваемых диалогов" -#: ../src/option.c:942 +#: ../src/option.c:953 msgid "Add a tab to notebook" msgstr "Добавить вкладку" -#: ../src/option.c:943 +#: ../src/option.c:954 msgid "LABEL" msgstr "МЕТКА" -#: ../src/option.c:948 +#: ../src/option.c:959 msgid "Set position of a notebook tabs (top, bottom, left or right)" msgstr "Задать позицию метки вкладки (top, bottom, left или right)" -#: ../src/option.c:954 +#: ../src/option.c:965 msgid "Set tab borders" msgstr "Установить границы вкладки" -#: ../src/option.c:964 +#: ../src/option.c:975 msgid "Display notification" msgstr "Отобразить диалог уведомления" -#: ../src/option.c:970 +#: ../src/option.c:981 msgid "Set left-click action" msgstr "Действие по левому щелчку мыши" -#: ../src/option.c:976 +#: ../src/option.c:987 msgid "Listen for commands on stdin" msgstr "Воспринимать команды со стандартного ввода" -#: ../src/option.c:982 +#: ../src/option.c:993 msgid "Set separator character for menu values" msgstr "Установить разделяющий символ для значений меню" -#: ../src/option.c:988 +#: ../src/option.c:999 msgid "Set separator character for menu items" msgstr "Установить разделяющий символ для элементов меню" -#: ../src/option.c:994 +#: ../src/option.c:1005 msgid "Set initial popup menu" msgstr "Задать начальное меню" -#: ../src/option.c:995 +#: ../src/option.c:1006 msgid "STRING" msgstr "СТРОКА" -#: ../src/option.c:1000 +#: ../src/option.c:1011 msgid "Disable exit on middle click" msgstr "Запретить выход по щелчку средней кнопкой" -#: ../src/option.c:1006 +#: ../src/option.c:1017 msgid "Doesn't show icon at startup" msgstr "Не показывать иконку при запуске" -#: ../src/option.c:1016 +#: ../src/option.c:1027 msgid "Display paned dialog" msgstr "Отобразить диалог панелей" -#: ../src/option.c:1022 +#: ../src/option.c:1033 msgid "Set orientation (TYPE - hor[izontal] or vert[ical])" msgstr "Задать ориентацию (ТИП - hor[izontal] или vert[ical])" -#: ../src/option.c:1028 +#: ../src/option.c:1039 msgid "Set initial splitter position" msgstr "Задать начальную позицию разделителя" -#: ../src/option.c:1044 +#: ../src/option.c:1055 msgid "Display printing dialog" msgstr "Отобразить диалог печати" -#: ../src/option.c:1050 +#: ../src/option.c:1061 msgid "Source filename" msgstr "Имя исходного файла" -#: ../src/option.c:1056 +#: ../src/option.c:1067 msgid "Set source type (TYPE - TEXT, IMAGE or RAW)" msgstr "Тип исходных данных (ТИП - TEXT, IMAGE или RAW)" -#: ../src/option.c:1062 +#: ../src/option.c:1073 msgid "Add headers to page" msgstr "Добавлять колонтитулы на страницу" -#: ../src/option.c:1068 +#: ../src/option.c:1079 msgid "Enable preview in print dialog" msgstr "Разрешить предпросмотр в диалоге печати" -#: ../src/option.c:1074 ../src/option.c:1245 +#: ../src/option.c:1085 ../src/option.c:1256 msgid "Use specified font" msgstr "Использовать указанный шрифт" -#: ../src/option.c:1084 +#: ../src/option.c:1095 msgid "Display progress indication dialog" msgstr "Отобразить диалог хода процесса" -#: ../src/option.c:1090 +#: ../src/option.c:1101 msgid "Set progress text" msgstr "Показывать текст на индикаторе" -#: ../src/option.c:1096 +#: ../src/option.c:1107 msgid "Set initial percentage" msgstr "Задать начальный процент" -#: ../src/option.c:1097 +#: ../src/option.c:1108 msgid "PERCENTAGE" msgstr "ПРОЦЕНТЫ" -#: ../src/option.c:1102 +#: ../src/option.c:1113 msgid "Pulsate progress bar" msgstr "Пульсирующий индикатор прогресса" -#: ../src/option.c:1109 +#: ../src/option.c:1120 #, no-c-format msgid "Dismiss the dialog when 100% has been reached" msgstr "Закрыть диалог по достижении 100%" -#: ../src/option.c:1123 +#: ../src/option.c:1134 msgid "Right-To-Left progress bar direction" msgstr "Направление индикатора Справа-Налево" -#: ../src/option.c:1129 +#: ../src/option.c:1140 msgid "Show log window" msgstr "Показать окно журнала" -#: ../src/option.c:1135 +#: ../src/option.c:1146 msgid "Expand log window" msgstr "Развернуть окно журнала" -#: ../src/option.c:1141 +#: ../src/option.c:1152 msgid "Place log window above progress bar" msgstr "Разместить окно журнала над индикатором прогресса" -#: ../src/option.c:1147 +#: ../src/option.c:1158 msgid "Height of log window" msgstr "Высота окна журнала" -#: ../src/option.c:1157 +#: ../src/option.c:1168 msgid "Display scale dialog" msgstr "Отобразить диалог масштаба" -#: ../src/option.c:1163 +#: ../src/option.c:1174 msgid "Set initial value" msgstr "Задать начальное значение" -#: ../src/option.c:1164 ../src/option.c:1170 ../src/option.c:1176 -#: ../src/option.c:1182 ../src/option.c:1188 +#: ../src/option.c:1175 ../src/option.c:1181 ../src/option.c:1187 +#: ../src/option.c:1193 ../src/option.c:1199 msgid "VALUE" msgstr "ЗНАЧЕНИЕ" -#: ../src/option.c:1169 +#: ../src/option.c:1180 msgid "Set minimum value" msgstr "Задать минимальное значение" -#: ../src/option.c:1175 +#: ../src/option.c:1186 msgid "Set maximum value" msgstr "Задать максимальное значение" -#: ../src/option.c:1181 +#: ../src/option.c:1192 msgid "Set step size" msgstr "Задать шаг" -#: ../src/option.c:1187 +#: ../src/option.c:1198 msgid "Set paging size" msgstr "Задать шаг страницы" -#: ../src/option.c:1193 +#: ../src/option.c:1204 msgid "Print partial values" msgstr "Печатать частичные значения" -#: ../src/option.c:1199 +#: ../src/option.c:1210 msgid "Hide value" msgstr "Скрыть величину" -#: ../src/option.c:1205 +#: ../src/option.c:1216 msgid "Show vertical scale" msgstr "Показывать вертикальную шкалу" -#: ../src/option.c:1211 +#: ../src/option.c:1222 msgid "Invert direction" msgstr "Инвертировать направление" -#: ../src/option.c:1217 +#: ../src/option.c:1228 msgid "Add mark to scale (may be used multiple times)" msgstr "Добавить метку (может использоваться несколько раз)" -#: ../src/option.c:1218 +#: ../src/option.c:1229 msgid "NAME:VALUE" msgstr "ИМЯ:ЗНАЧЕНИЕ" -#: ../src/option.c:1227 +#: ../src/option.c:1238 msgid "Display text information dialog" msgstr "Отобразить диалог с текстовой информацией" -#: ../src/option.c:1233 +#: ../src/option.c:1244 msgid "Use specified color for text" msgstr "Использовать указанный цвет текста" -#: ../src/option.c:1239 +#: ../src/option.c:1250 msgid "Use specified color for background" msgstr "Использовать указанный цвет фона" -#: ../src/option.c:1251 +#: ../src/option.c:1262 msgid "Enable text wrapping" msgstr "Разрешить перенос текста" -#: ../src/option.c:1257 +#: ../src/option.c:1268 msgid "Set justification (TYPE - left, right, center or fill)" msgstr "Установить выравнивание (ТИП - left, right, center или fill)" -#: ../src/option.c:1263 +#: ../src/option.c:1274 msgid "Set text margins" msgstr "Установить отступы" -#: ../src/option.c:1264 +#: ../src/option.c:1275 msgid "SIZE" msgstr "РАЗМЕР" -#: ../src/option.c:1269 +#: ../src/option.c:1280 msgid "Autoscroll to end of text" msgstr "Автопрокрутка в конец текста" -#: ../src/option.c:1275 +#: ../src/option.c:1286 msgid "Open file" msgstr "Открыть файл" -#: ../src/option.c:1287 +#: ../src/option.c:1298 msgid "Make URI clickable" msgstr "Сделать ссылки активными" -#: ../src/option.c:1293 +#: ../src/option.c:1304 msgid "Use specified color for links" msgstr "Использовать указанный цвет для ссылок" -#: ../src/option.c:1299 +#: ../src/option.c:1310 msgid "Listen for data on stdin in addition to file" msgstr "Получать данные из стандартного потока ввода в дополнение к файлу" -#: ../src/option.c:1309 +#: ../src/option.c:1320 +msgid "Sets a filename filter" +msgstr "Задать фильтр файлов по маске" + +#: ../src/option.c:1321 +msgid "NAME | PATTERN1 PATTERN2 ..." +msgstr "ИМЯ | ШАБЛОН1 ШАБЛОН2 ..." + +#: ../src/option.c:1326 +msgid "Sets a mime-type filter" +msgstr "Задать фильтр файлов по типу mime" + +#: ../src/option.c:1327 +msgid "NAME | MIME1 MIME2 ..." +msgstr "ИМЯ | ТИП1 ТИП2 ..." + +#: ../src/option.c:1332 +msgid "Add filter for images" +msgstr "Добавить фильтр изображений" + +#: ../src/option.c:1333 +msgid "NAME" +msgstr "ИМЯ" + +#: ../src/option.c:1338 +msgid "Enable preview" +msgstr "Добавить предпросмотр" + +#: ../src/option.c:1348 msgid "Show about dialog" msgstr "Показать диалог 'О программе'" -#: ../src/option.c:1315 +#: ../src/option.c:1354 msgid "Print version" msgstr "Вывести версию" -#: ../src/option.c:1321 +#: ../src/option.c:1360 msgid "Load additional GTK settings from file" msgstr "Загрузить дополнительные настройки GTK из файла" -#: ../src/option.c:1331 +#: ../src/option.c:1370 msgid "Load extra arguments from file" msgstr "Загрузить дополнительные аргументы из файла" -#: ../src/option.c:1376 ../src/option.c:1604 +#: ../src/option.c:1415 ../src/option.c:1708 #, c-format msgid "Unknown align type: %s\n" msgstr "Неизвестный тип выравнивания: %s\n" -#: ../src/option.c:1533 +#: ../src/option.c:1572 #, c-format msgid "Mark %s doesn't have a value\n" msgstr "Метке %s не задано значение\n" -#: ../src/option.c:1570 +#: ../src/option.c:1609 +msgid "Images" +msgstr "Изображения" + +#: ../src/option.c:1674 #, c-format msgid "Unknown color mode: %s\n" msgstr "Неизвестный режим цвета: '%s'\n" -#: ../src/option.c:1589 +#: ../src/option.c:1693 #, c-format msgid "Unknown buttons layout type: %s\n" msgstr "Неизвестный тип расположения кнопок: %s\n" -#: ../src/option.c:1621 +#: ../src/option.c:1725 #, c-format msgid "Unknown justification type: %s\n" msgstr "Неизвестный тип выравнивания: %s\n" -#: ../src/option.c:1638 +#: ../src/option.c:1742 #, c-format msgid "Unknown tab position type: %s\n" msgstr "Неизвестный тип позиции вкладки: %s\n" -#: ../src/option.c:1674 +#: ../src/option.c:1778 #, c-format msgid "Unknown ellipsize type: %s\n" msgstr "Неизвестный тип усечения: %s\n" -#: ../src/option.c:1687 +#: ../src/option.c:1791 #, c-format msgid "Unknown orientation: %s\n" msgstr "Неизвестная ориентация: %s\n" -#: ../src/option.c:1702 +#: ../src/option.c:1806 #, c-format msgid "Unknown source type: %s\n" msgstr "Неизвестный исходный тип: %s\n" -#: ../src/option.c:1713 +#: ../src/option.c:1817 msgid "Progress log" msgstr "Окно журнала" -#: ../src/option.c:1821 +#: ../src/option.c:1925 #, c-format msgid "Unknown signal: %s\n" msgstr "Неизвестный сигнал: %s\n" -#: ../src/option.c:1977 +#: ../src/option.c:2081 msgid "File exist. Overwrite?" msgstr "Файл существует. Перезаписать?" -#: ../src/option.c:2089 +#: ../src/option.c:2198 msgid "- Yet another dialoging program" msgstr "- Программа для отображения диалогов" #. Adds general option entries -#: ../src/option.c:2093 +#: ../src/option.c:2202 msgid "General options" msgstr "Основные параметры" -#: ../src/option.c:2093 +#: ../src/option.c:2202 msgid "Show general options" msgstr "Показывать основные параметры" #. Adds calendar option entries -#: ../src/option.c:2099 +#: ../src/option.c:2208 msgid "Calendar options" msgstr "Параметры календаря" -#: ../src/option.c:2099 +#: ../src/option.c:2208 msgid "Show calendar options" msgstr "Показывать параметры календаря" #. Adds color option entries -#: ../src/option.c:2105 +#: ../src/option.c:2214 msgid "Color selection options" msgstr "Параметры диалога выбора цвета" -#: ../src/option.c:2105 +#: ../src/option.c:2214 msgid "Show color selection options" msgstr "Показывать параметры диалога выбора цвета" #. Adds dnd option entries -#: ../src/option.c:2111 +#: ../src/option.c:2220 msgid "DND options" msgstr "Параметры DND" -#: ../src/option.c:2111 +#: ../src/option.c:2220 msgid "Show drag-n-drop options" msgstr "Показывать параметры dnd" #. Adds entry option entries -#: ../src/option.c:2117 +#: ../src/option.c:2226 msgid "Text entry options" msgstr "Параметры ввода текста" -#: ../src/option.c:2117 +#: ../src/option.c:2226 msgid "Show text entry options" msgstr "Показывать параметры ввода текста" #. Adds file selection option entries -#: ../src/option.c:2123 +#: ../src/option.c:2232 msgid "File selection options" msgstr "Параметры диалога выбора файла" -#: ../src/option.c:2123 +#: ../src/option.c:2232 msgid "Show file selection options" msgstr "Показывать параметры диалога выбора файлов" #. Add font selection option entries -#: ../src/option.c:2129 +#: ../src/option.c:2238 msgid "Font selection options" msgstr "Параметры диалога выбора шрифта" -#: ../src/option.c:2129 +#: ../src/option.c:2238 msgid "Show font selection options" msgstr "Показывать параметры диалога выбора шрифта" #. Add form option entries -#: ../src/option.c:2135 +#: ../src/option.c:2244 msgid "Form options" msgstr "Параметры диалога формы" -#: ../src/option.c:2135 +#: ../src/option.c:2244 msgid "Show form options" msgstr "Показывать параметры диалога формы" #. Add html options entries -#: ../src/option.c:2142 +#: ../src/option.c:2251 msgid "HTML options" msgstr "Параметры HTML диалога" -#: ../src/option.c:2142 +#: ../src/option.c:2251 msgid "Show HTML options" msgstr "Показывать параметры HTML диалога" #. Add icons option entries -#: ../src/option.c:2149 +#: ../src/option.c:2258 msgid "Icons box options" msgstr "Параметры диалога значков" -#: ../src/option.c:2149 +#: ../src/option.c:2258 msgid "Show icons box options" msgstr "Показывать параметры диалога значков быстрого доступа" #. Adds list option entries -#: ../src/option.c:2155 +#: ../src/option.c:2264 msgid "List options" msgstr "Параметры списка" -#: ../src/option.c:2155 +#: ../src/option.c:2264 msgid "Show list options" msgstr "Показывать параметры списка" #. Adds multi progress option entries -#: ../src/option.c:2161 +#: ../src/option.c:2270 msgid "Multi progress bars options" msgstr "Параметры диалога с несколькими индикаторами" -#: ../src/option.c:2162 +#: ../src/option.c:2271 msgid "Show multi progress bars options" msgstr "Показывать параметры диалога с несколькими индикаторами" #. Adds notebook option entries -#: ../src/option.c:2168 +#: ../src/option.c:2277 msgid "Notebook options" msgstr "Параметры диалога с вкладками" -#: ../src/option.c:2168 +#: ../src/option.c:2277 msgid "Show notebook dialog options" msgstr "Показывать параметры диалога с вкладками" #. Adds notification option entries -#: ../src/option.c:2174 +#: ../src/option.c:2283 msgid "Notification icon options" msgstr "Параметры значка уведомления" -#: ../src/option.c:2175 +#: ../src/option.c:2284 msgid "Show notification icon options" msgstr "Показывать параметры значка уведомления" #. Adds paned option entries -#: ../src/option.c:2181 +#: ../src/option.c:2290 msgid "Paned dialog options" msgstr "Параметры диалога с панелями" -#: ../src/option.c:2181 +#: ../src/option.c:2290 msgid "Show paned dialog options" msgstr "Показывать параметры диалога с панелями" #. Adds print option entries -#: ../src/option.c:2187 +#: ../src/option.c:2296 msgid "Print dialog options" msgstr "Параметры диалога печати" -#: ../src/option.c:2187 +#: ../src/option.c:2296 msgid "Show print dialog options" msgstr "Показывать параметры диалога печати" #. Adds progress option entries -#: ../src/option.c:2193 +#: ../src/option.c:2302 msgid "Progress options" msgstr "Параметры хода процесса" -#: ../src/option.c:2193 +#: ../src/option.c:2302 msgid "Show progress options" msgstr "Показывать параметры хода процесса" #. Adds scale option entries -#: ../src/option.c:2199 +#: ../src/option.c:2308 msgid "Scale options" msgstr "Параметры масштаба" -#: ../src/option.c:2199 +#: ../src/option.c:2308 msgid "Show scale options" msgstr "Показывать параметры масштаба" #. Adds text option entries -#: ../src/option.c:2205 +#: ../src/option.c:2314 msgid "Text information options" msgstr "Параметры текстовой информации" -#: ../src/option.c:2205 +#: ../src/option.c:2314 msgid "Show text information options" msgstr "Показывать параметры текстовой информации" +#. Adds file filters option entries +#: ../src/option.c:2320 +msgid "File filter options" +msgstr "Параметры фильтров диалога выбора файла" + +#: ../src/option.c:2320 +msgid "Show file filter options" +msgstr "Показывать параметры фильтров диалога выбора файлов" + #. Adds miscellaneous option entries -#: ../src/option.c:2211 +#: ../src/option.c:2326 msgid "Miscellaneous options" msgstr "Дополнительные параметры" -#: ../src/option.c:2211 +#: ../src/option.c:2326 msgid "Show miscellaneous options" msgstr "Показывать дополнительные параметры" diff -Nru yad-0.30.1/po/uk.po yad-0.31.0/po/uk.po --- yad-0.30.1/po/uk.po 2015-09-05 05:18:57.000000000 +0000 +++ yad-0.31.0/po/uk.po 2015-09-11 10:17:29.000000000 +0000 @@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: YAD\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2015-09-05 08:09+0300\n" +"POT-Creation-Date: 2015-09-10 08:27+0300\n" "PO-Revision-Date: 2009-04-30 16:47+0300\n" "Last-Translator: Victor Ananjevsky \n" "Language-Team: \n" @@ -73,7 +73,7 @@ #: ../src/calendar.c:39 ../src/text.c:389 #, c-format msgid "Cannot open file '%s': %s\n" -msgstr "Не можу відкрити файлу %s: %s\n" +msgstr "Не можу відкрити файл %s: %s\n" #: ../src/entry.c:173 ../src/scale.c:39 #, c-format @@ -92,50 +92,55 @@ msgid "Initial value greater than maximum.\n" msgstr "Початкове значення - більше за максимальне.\n" -#: ../src/form.c:406 +#: ../src/form.c:407 msgid "Select files" msgstr "Вибір файлу" -#: ../src/form.c:414 +#: ../src/form.c:415 msgid "Select folders" msgstr "Вибір каталогів" -#: ../src/form.c:478 +#: ../src/form.c:492 msgid "Select or create file" msgstr "Вибір або створення файлу" -#: ../src/form.c:486 +#: ../src/form.c:500 msgid "Select or create folder" msgstr "Вибір або створення каталогу" -#: ../src/form.c:523 +#: ../src/form.c:549 msgid "Select date" msgstr "Вибір дати" -#: ../src/form.c:743 +#: ../src/form.c:767 msgid "Select file" msgstr "Вибір файлу" -#: ../src/form.c:758 +#: ../src/form.c:795 msgid "Select folder" msgstr "Вибір каталогу" #: ../src/icons.c:325 #, c-format msgid "Unable to parse file %s: %s\n" -msgstr "Не можу розібрати файлу %s: %s\n" +msgstr "Не можу розібрати файл %s: %s\n" #: ../src/icons.c:342 #, c-format msgid "Unable to open directory %s: %s\n" -msgstr "Не можу відкрити каталогу %s: %s\n" +msgstr "Не можу відкрити каталог %s: %s\n" -#: ../src/main.c:103 ../src/main.c:261 +#: ../src/main.c:103 ../src/main.c:258 #, c-format msgid "%d sec" msgstr "%d сек" -#: ../src/main.c:700 +#: ../src/main.c:692 ../src/main.c:699 +#, c-format +msgid "Unable to parse YAD_OPTIONS: %s\n" +msgstr "Не можу розібрати YAD_OPTIONS: %s\n" + +#: ../src/main.c:710 #, c-format msgid "Unable to parse command line: %s\n" msgstr "Не вдається розібрати командний рядок: %s\n" @@ -165,464 +170,456 @@ #: ../src/list.c:776 msgid "Delete row" -msgstr "Прибрати рядок" +msgstr "Видалити рядок" #: ../src/list.c:783 msgid "Duplicate row" msgstr "Скопіювати рядок" -#: ../src/list.c:810 +#: ../src/list.c:818 #, c-format msgid "No column titles specified for List dialog.\n" msgstr "Не задані заголовки стовпчиків для діалогу зі списком\n" -#: ../src/option.c:77 +#: ../src/option.c:78 msgid "Set the dialog title" msgstr "Задати заголовок діалогу" -#: ../src/option.c:78 +#: ../src/option.c:79 msgid "TITLE" msgstr "ЗАГОЛОВОК" -#: ../src/option.c:83 +#: ../src/option.c:84 msgid "Set the window icon" msgstr "Задати іконку діалогу" -#: ../src/option.c:84 +#: ../src/option.c:85 msgid "ICONPATH" msgstr "ІКОНКА" -#: ../src/option.c:89 +#: ../src/option.c:90 msgid "Set the width" msgstr "Задати ширину вікна" -#: ../src/option.c:90 +#: ../src/option.c:91 msgid "WIDTH" msgstr "ШИРИНА" -#: ../src/option.c:95 +#: ../src/option.c:96 msgid "Set the height" msgstr "Задати висоту вікна" -#: ../src/option.c:96 +#: ../src/option.c:97 msgid "HEIGHT" msgstr "ВИСОТА" -#: ../src/option.c:101 +#: ../src/option.c:102 msgid "Set the window geometry" msgstr "Задати геометрію вікна" -#: ../src/option.c:102 +#: ../src/option.c:103 msgid "WxH+X+Y" msgstr "ВxШ+X+Y" -#: ../src/option.c:107 +#: ../src/option.c:108 msgid "Set dialog timeout in seconds" msgstr "Задати час роботи діалогу в секундах" -#: ../src/option.c:108 +#: ../src/option.c:109 msgid "TIMEOUT" msgstr "ЗАТРИМКА" -#: ../src/option.c:113 +#: ../src/option.c:114 msgid "Show remaining time indicator (top, bottom, left, right)" msgstr "Показник часу, який залишився (top, bottom, left, right)" -#: ../src/option.c:114 ../src/option.c:1029 +#: ../src/option.c:115 ../src/option.c:1040 msgid "POS" msgstr "ПОЗИЦІЯ" -#: ../src/option.c:119 +#: ../src/option.c:120 msgid "Set the dialog text" msgstr "Задати текст діалогу" -#: ../src/option.c:120 ../src/option.c:150 ../src/option.c:423 -#: ../src/option.c:429 ../src/option.c:435 ../src/option.c:575 -#: ../src/option.c:1091 ../src/option.c:1130 +#: ../src/option.c:121 ../src/option.c:151 ../src/option.c:428 +#: ../src/option.c:434 ../src/option.c:440 ../src/option.c:568 +#: ../src/option.c:859 ../src/option.c:1102 ../src/option.c:1141 msgid "TEXT" msgstr "ТЕКСТ" -#: ../src/option.c:125 +#: ../src/option.c:126 msgid "Set the dialog text alignment (left, center, right, fill)" msgstr "Задати вирівнювання тексту діалогу (left, center, right, fill)" -#: ../src/option.c:126 ../src/option.c:168 ../src/option.c:598 -#: ../src/option.c:818 ../src/option.c:906 ../src/option.c:949 -#: ../src/option.c:1023 ../src/option.c:1057 ../src/option.c:1258 +#: ../src/option.c:127 ../src/option.c:169 ../src/option.c:591 +#: ../src/option.c:817 ../src/option.c:917 ../src/option.c:960 +#: ../src/option.c:1034 ../src/option.c:1068 ../src/option.c:1269 msgid "TYPE" msgstr "ТИП" -#: ../src/option.c:131 +#: ../src/option.c:132 msgid "Set the dialog image" -msgstr "Задати картинку діалогу" +msgstr "Задати зображення діалогу" -#: ../src/option.c:132 ../src/option.c:459 ../src/option.c:471 +#: ../src/option.c:133 ../src/option.c:464 ../src/option.c:476 msgid "IMAGE" -msgstr "КАРТИНКА" +msgstr "ЗОБРАЖЕННЯ" -#: ../src/option.c:137 +#: ../src/option.c:138 msgid "Show image above main widget" -msgstr "Показувати картинку над основним віджетом" +msgstr "Показувати зображення над основним віджетом" -#: ../src/option.c:143 +#: ../src/option.c:144 msgid "Use specified icon theme instead of default" msgstr "Використовувати вказану тему іконок" -#: ../src/option.c:144 +#: ../src/option.c:145 msgid "THEME" msgstr "ТЕМА" -#: ../src/option.c:149 +#: ../src/option.c:150 msgid "Hide main widget with expander" msgstr "Приховати головний віджет" -#: ../src/option.c:155 +#: ../src/option.c:156 msgid "Add dialog button (may be used multiple times)" msgstr "Додати кнопку (може використовуватись декілька разів)" -#: ../src/option.c:156 +#: ../src/option.c:157 msgid "NAME:ID" msgstr "ІМ'Я:ID" -#: ../src/option.c:161 +#: ../src/option.c:162 msgid "Don't show buttons" msgstr "Не показувати кнопки" -#: ../src/option.c:167 +#: ../src/option.c:168 msgid "Set buttons layout type (spread, edge, start, end or center)" msgstr "Задати тип розміщення кнопок (spread, edge, start, end або center)" # # (розкидано, по краю, на початку, по центру) -#: ../src/option.c:173 +#: ../src/option.c:174 msgid "Don't use pango markup language in dialog's text" msgstr "Не використовувати розмітку pango в тексті" -#: ../src/option.c:179 +#: ../src/option.c:180 msgid "Don't close dialog if Escape was pressed" -msgstr "Не закривати диалог, якшо натиснуто Escape" +msgstr "Не закривати діалог, якшо натиснуто Escape" #: ../src/option.c:186 -msgid "Add separator between dialog and buttons" -msgstr "Додати розділювач між діалогом та кнопками" - -#: ../src/option.c:193 msgid "Set window borders" -msgstr "Задати краї вікна" +msgstr "Встановити межі вікна" -#: ../src/option.c:194 ../src/option.c:273 ../src/option.c:604 -#: ../src/option.c:824 ../src/option.c:830 ../src/option.c:836 -#: ../src/option.c:842 ../src/option.c:848 ../src/option.c:854 -#: ../src/option.c:955 +#: ../src/option.c:187 ../src/option.c:266 ../src/option.c:597 +#: ../src/option.c:823 ../src/option.c:829 ../src/option.c:835 +#: ../src/option.c:841 ../src/option.c:847 ../src/option.c:853 +#: ../src/option.c:865 ../src/option.c:966 msgid "NUMBER" msgstr "ЧИСЛО" -#: ../src/option.c:199 +#: ../src/option.c:192 msgid "Always print result" msgstr "Завжди виводити результат" -#: ../src/option.c:205 +#: ../src/option.c:198 msgid "Dialog text can be selected" msgstr "Текст діалогу може буди виділеним" -#: ../src/option.c:212 +#: ../src/option.c:205 msgid "Set window sticky" -msgstr "Вікно - на всіх стільницях" +msgstr "Вікно на всіх стільницях" -#: ../src/option.c:218 +#: ../src/option.c:211 msgid "Set window unresizable" msgstr "Незмінний розмір вікна" -#: ../src/option.c:224 +#: ../src/option.c:217 msgid "Place window on top" msgstr "Розташувати вікно над іншими" -#: ../src/option.c:230 +#: ../src/option.c:223 msgid "Place window on center of screen" msgstr "Розташувати вікно по центру екрана" -#: ../src/option.c:236 +#: ../src/option.c:229 msgid "Place window at the mouse position" msgstr "Розташувати вікно в положенні мишки" -#: ../src/option.c:242 +#: ../src/option.c:235 msgid "Set window undecorated" msgstr "Прибрати декорації вікна" -#: ../src/option.c:248 +#: ../src/option.c:241 msgid "Don't show window in taskbar" msgstr "Не показувати вікна в панелі завдань" -#: ../src/option.c:254 +#: ../src/option.c:247 msgid "Set window maximized" -msgstr "Задати вікну максимальний розмір вікна" +msgstr "Задати вікну максимальний розмір" -#: ../src/option.c:260 +#: ../src/option.c:253 msgid "Set window fulscreen" msgstr "Розгорнути вікно на весь екран" -#: ../src/option.c:266 +#: ../src/option.c:259 msgid "Special type of dialog for XEMBED" -msgstr "Спеціальний режим діалога для вбудовування" +msgstr "Особливий режим діалогу для вбудовування" -#: ../src/option.c:267 ../src/option.c:937 ../src/option.c:1035 +#: ../src/option.c:260 ../src/option.c:948 ../src/option.c:1046 msgid "KEY" msgstr "КЛЮЧ" -#: ../src/option.c:272 +#: ../src/option.c:265 msgid "Tab nubmer of this dialog" -msgstr "Номер вкладки для цього діалога" +msgstr "Номер вкладки для цього діалогу" -#: ../src/option.c:279 +#: ../src/option.c:272 msgid "XID of parent window" msgstr "Ідентифікатор батьківського вікна" -#: ../src/option.c:285 +#: ../src/option.c:278 msgid "Send SIGNAL to parent" msgstr "Послати СИГНАЛ батьківському процесу" -#: ../src/option.c:286 +#: ../src/option.c:279 msgid "SIGNAL" msgstr "СИГНАЛ" -#: ../src/option.c:291 +#: ../src/option.c:284 msgid "Print X Window Id to the stderr" msgstr "Вивести ідентифікатор вікна на stderr" -#: ../src/option.c:298 +#: ../src/option.c:291 msgid "Add path for search icons by name" -msgstr "Додати каталог для пошуку зображень" +msgstr "Додати каталог для пошуку іконок" -#: ../src/option.c:299 +#: ../src/option.c:292 msgid "PATH" msgstr "КАТАЛОГ" -#: ../src/option.c:308 +#: ../src/option.c:301 msgid "Display calendar dialog" -msgstr "Зобразити діалог для вибору дати" +msgstr "Відобразити діалог для вибору дати" -#: ../src/option.c:314 +#: ../src/option.c:307 msgid "Set the calendar day" msgstr "Задати календарний день" -#: ../src/option.c:315 +#: ../src/option.c:308 msgid "DAY" msgstr "ДЕНЬ" -#: ../src/option.c:320 +#: ../src/option.c:313 msgid "Set the calendar month" msgstr "Задати календарний місяць" -#: ../src/option.c:321 +#: ../src/option.c:314 msgid "MONTH" msgstr "МІСЯЦЬ" -#: ../src/option.c:326 +#: ../src/option.c:319 msgid "Set the calendar year" msgstr "Задати календарний рік" -#: ../src/option.c:327 +#: ../src/option.c:320 msgid "YEAR" msgstr "РІК" -#: ../src/option.c:332 ../src/option.c:621 +#: ../src/option.c:325 ../src/option.c:614 msgid "Set the format for the returned date" msgstr "Задати формат відображення дати" -#: ../src/option.c:333 ../src/option.c:622 ../src/option.c:729 +#: ../src/option.c:326 ../src/option.c:615 ../src/option.c:722 msgid "PATTERN" msgstr "ШАБЛОН" -#: ../src/option.c:338 +#: ../src/option.c:331 msgid "Set the filename with dates details" msgstr "Задати назву файлу з описом дат" -#: ../src/option.c:339 ../src/option.c:367 ../src/option.c:499 -#: ../src/option.c:1051 ../src/option.c:1276 ../src/option.c:1322 -#: ../src/option.c:1332 +#: ../src/option.c:332 ../src/option.c:366 ../src/option.c:504 +#: ../src/option.c:1062 ../src/option.c:1287 ../src/option.c:1361 +#: ../src/option.c:1371 msgid "FILENAME" msgstr "НАЗВА ФАЙЛУ" -#: ../src/option.c:348 +#: ../src/option.c:341 msgid "Display color selection dialog" msgstr "Відобразити діалог для вибору кольору" -#: ../src/option.c:354 +#: ../src/option.c:347 msgid "Alias for --color" msgstr "Синонім для --color" -#: ../src/option.c:360 +#: ../src/option.c:353 msgid "Set initial color value" msgstr "Задати початковий колір" -#: ../src/option.c:361 ../src/option.c:1234 ../src/option.c:1240 -#: ../src/option.c:1294 +#: ../src/option.c:354 ../src/option.c:1245 ../src/option.c:1251 +#: ../src/option.c:1305 msgid "COLOR" msgstr "КОЛІР" -#: ../src/option.c:366 +#: ../src/option.c:359 +msgid "Show system palette in color dialog" +msgstr "Відобразити системну палітру" + +#: ../src/option.c:365 msgid "Set path to palette file. Default - " msgstr "Задати шлях до файлу кольорів. Без назви - " -#: ../src/option.c:372 +#: ../src/option.c:371 +msgid "Expand user palette" +msgstr "Розкривати палітру користувача" + +#: ../src/option.c:377 msgid "Set output mode to MODE. Values are hex (default) or rgb" msgstr "" "Встановити режим вивода в РЕЖИМ. Значення - hex (за умовчанням) або rgb" -#: ../src/option.c:373 +#: ../src/option.c:378 msgid "MODE" msgstr "РЕЖИМ" -#: ../src/option.c:378 +#: ../src/option.c:383 msgid "Use #rrrrggggbbbb format instead of #rrggbb" msgstr "Використовувати формат #rrrrggggbbbb замість #rrggbb" -#: ../src/option.c:384 +#: ../src/option.c:389 msgid "Add opacity to output color value" msgstr "Додати прозорість до значення кольору" -#: ../src/option.c:394 +#: ../src/option.c:399 msgid "Display drag-n-drop box" msgstr "Відобразити діалог для перехоплення dnd" -#: ../src/option.c:400 +#: ../src/option.c:405 msgid "Use dialog text as tooltip" msgstr "Використовувати текст діалогу в якості підказки" -#: ../src/option.c:406 +#: ../src/option.c:411 msgid "Set command for process d-n-d data" msgstr "Команда для обробки отриманих даних" -#: ../src/option.c:407 ../src/option.c:465 ../src/option.c:477 -#: ../src/option.c:860 ../src/option.c:971 +#: ../src/option.c:412 ../src/option.c:470 ../src/option.c:482 +#: ../src/option.c:871 ../src/option.c:982 msgid "CMD" msgstr "КОМАНДА" -#: ../src/option.c:416 +#: ../src/option.c:421 msgid "Display text entry or combo-box dialog" msgstr "Відобразити діалог для вводу тексту або вибору варіанта" -#: ../src/option.c:422 +#: ../src/option.c:427 msgid "Set the entry label" msgstr "Задати мітку поля вводу" -#: ../src/option.c:428 +#: ../src/option.c:433 msgid "Set the entry text" msgstr "Задати текст для поля вводу" -#: ../src/option.c:434 +#: ../src/option.c:439 msgid "Hide the entry text" -msgstr "Сховати введений текст (Пароль)" +msgstr "Приховати введений текст (Пароль)" -#: ../src/option.c:440 +#: ../src/option.c:445 msgid "Use completion instead of combo-box" msgstr "Використовувати автозаповнення замість списку значень" -#: ../src/option.c:446 +#: ../src/option.c:451 msgid "Use spin button for text entry" msgstr "Використовувати числове поле замість тексту" -#: ../src/option.c:452 +#: ../src/option.c:457 msgid "Allow changes to text in combo-box" msgstr "Дозволити змінювати текст у режимі вибору варіанта" -#: ../src/option.c:458 +#: ../src/option.c:463 msgid "Set the left entry icon" msgstr "Задати ліву іконку" -#: ../src/option.c:464 +#: ../src/option.c:469 msgid "Set the left entry icon action" msgstr "Дія для лівої іконки" -#: ../src/option.c:470 +#: ../src/option.c:475 msgid "Set the right entry icon" msgstr "Задати праву іконку" -#: ../src/option.c:476 +#: ../src/option.c:481 msgid "Set the right entry icon action" msgstr "Дія для правої іконки" -#: ../src/option.c:486 +#: ../src/option.c:491 msgid "Display file selection dialog" -msgstr "Відобразити діалог для вибору файлу" +msgstr "Відобразити діалог для вибору файла" -#: ../src/option.c:492 +#: ../src/option.c:497 msgid "Alias for --file" msgstr "Синонім для --file" -#: ../src/option.c:498 +#: ../src/option.c:503 msgid "Set the filename" msgstr "Задати назву файлу" -#: ../src/option.c:504 +#: ../src/option.c:509 msgid "Allow multiple files to be selected" msgstr "Дозволити вибір декількох файлів" -#: ../src/option.c:510 +#: ../src/option.c:515 msgid "Activate directory-only selection" -msgstr "Активувати виділення тільки по каталогам" +msgstr "Активувати виділення тільки по каталогах" -#: ../src/option.c:516 +#: ../src/option.c:521 msgid "Activate save mode" msgstr "Активувати режим зберігання" -#: ../src/option.c:522 ../src/option.c:609 ../src/option.c:793 +#: ../src/option.c:527 ../src/option.c:602 ../src/option.c:792 msgid "Set output separator character" -msgstr "Установити вихідний розділювач" +msgstr "Встановити вихідний розділювач" -#: ../src/option.c:523 ../src/option.c:610 ../src/option.c:616 -#: ../src/option.c:794 ../src/option.c:983 ../src/option.c:989 +#: ../src/option.c:528 ../src/option.c:603 ../src/option.c:609 +#: ../src/option.c:793 ../src/option.c:994 ../src/option.c:1000 msgid "SEPARATOR" msgstr "РОЗДІЛЮВАЧ" -#: ../src/option.c:528 +#: ../src/option.c:533 msgid "Confirm file selection if filename already exists" msgstr "Підтвердити вибір файлу, якщо файл вже існує" -#: ../src/option.c:529 +#: ../src/option.c:534 msgid "[TEXT]" msgstr "[ТЕКСТ]" -#: ../src/option.c:534 -msgid "Sets a filename filter" -msgstr "Задати фільтр файлів" - -#: ../src/option.c:535 -msgid "NAME | PATTERN1 PATTERN2 ..." -msgstr "НАЗВА | ШАБЛОН1 ШАБЛОН2 ..." - -#: ../src/option.c:540 -msgid "Enable preview" -msgstr "Додати попередній перегляд" - -#: ../src/option.c:546 ../src/option.c:633 ../src/option.c:877 +#: ../src/option.c:539 ../src/option.c:626 ../src/option.c:888 msgid "Quote dialogs output" msgstr "Виводити значення у лапках" -#: ../src/option.c:556 +#: ../src/option.c:549 msgid "Display font selection dialog" msgstr "Відобразити діалог для вибору шрифту" -#: ../src/option.c:562 +#: ../src/option.c:555 msgid "Alias for --font" msgstr "Синонім для --font" -#: ../src/option.c:568 +#: ../src/option.c:561 msgid "Set initial font" msgstr "Задати початковий шрифт" -#: ../src/option.c:569 ../src/option.c:1075 ../src/option.c:1246 +#: ../src/option.c:562 ../src/option.c:1086 ../src/option.c:1257 msgid "FONTNAME" msgstr "НАЗВА_ШРИФТУ" -#: ../src/option.c:574 +#: ../src/option.c:567 msgid "Set preview text" msgstr "Задати текст зразка" -#: ../src/option.c:584 +#: ../src/option.c:577 msgid "Display form dialog" msgstr "Відобразити діалог форми вводу" -#: ../src/option.c:591 +#: ../src/option.c:584 msgid "" "Add field to form (TYPE - H, RO, NUM, CHK, CB, CBE, CE, FL, SFL, MFL, DIR, " "CDIR, MDIR, FN, DT, SCL, CLR, BTN, FBTN, LBL or TXT)" @@ -630,95 +627,95 @@ "Додати поле до форми (Тип поля: Н, RO, NUM, CHK, CB, CBE, CE, FL, SFL, MFL, " "DIR, CDIR, MDIR, FN, MFL, DT, SCL, CLR, BTN, FBTN, LBL або TXT)" -#: ../src/option.c:592 ../src/option.c:894 +#: ../src/option.c:585 ../src/option.c:905 msgid "LABEL[:TYPE]" msgstr "МІТКА[:ТИП]" -#: ../src/option.c:597 +#: ../src/option.c:590 msgid "Set alignment of filed labels (left, center or right)" msgstr "Задати вирівнювання міток полів (left, center або right)" -#: ../src/option.c:603 +#: ../src/option.c:596 msgid "Set number of columns in form" msgstr "Задати кількість стовпчиків у формі" -#: ../src/option.c:615 +#: ../src/option.c:608 msgid "Set separator character for combobox or scale data" msgstr "Задати розділювач для даних списку або числового поля" -#: ../src/option.c:627 +#: ../src/option.c:620 msgid "Make form scrollable" msgstr "Додати прокрутку до форми" -#: ../src/option.c:639 +#: ../src/option.c:632 msgid "Order output fields by rows" msgstr "Упорядкувати виведення по рядках" -#: ../src/option.c:650 +#: ../src/option.c:643 msgid "Display HTML dialog" msgstr "Відобразити HTML діалог" -#: ../src/option.c:656 +#: ../src/option.c:649 msgid "Open specified location" msgstr "Відкрити вказану адресу" -#: ../src/option.c:657 +#: ../src/option.c:650 msgid "URI" msgstr "URI" -#: ../src/option.c:662 +#: ../src/option.c:655 msgid "Turn on browser mode" msgstr "Ввімкнути режим браузеру" -#: ../src/option.c:668 +#: ../src/option.c:661 msgid "Print clicked uri to stdout" msgstr "Друкувати натиснуті зсилки" -#: ../src/option.c:674 +#: ../src/option.c:667 msgid "Set mime type of input stream data" msgstr "Задати тип mime для вхідних даних" -#: ../src/option.c:675 +#: ../src/option.c:668 msgid "MIME" msgstr "MIME" -#: ../src/option.c:680 +#: ../src/option.c:673 msgid "Set encoding of input stream data" msgstr "Задати кодування для вхідних даних" -#: ../src/option.c:681 +#: ../src/option.c:674 msgid "ENCODING" msgstr "КОДУВАННЯ" -#: ../src/option.c:691 +#: ../src/option.c:684 msgid "Display icons box dialog" msgstr "Відобразити діалог з іконками швидкого доступу" -#: ../src/option.c:697 +#: ../src/option.c:690 msgid "Read data from .desktop files in specified directory" msgstr "Читати дані з файлів .desktop у вказаному каталозі" -#: ../src/option.c:698 +#: ../src/option.c:691 msgid "DIRECTORY" msgstr "КАТАЛОГ" -#: ../src/option.c:703 +#: ../src/option.c:696 msgid "Use compact (list) view" msgstr "Використовувати компактний вигляд (список)" -#: ../src/option.c:709 +#: ../src/option.c:702 msgid "Use GenericName field instead of Name for icon label" msgstr "Використовувати поле GenericName замість Name для мітки" -#: ../src/option.c:715 +#: ../src/option.c:708 msgid "Read data from stdin" msgstr "Читати дані зі стандартного вводу" -#: ../src/option.c:721 +#: ../src/option.c:714 msgid "Set the width of dialog items" msgstr "Задати ширину елемента діалогу" -#: ../src/option.c:728 +#: ../src/option.c:721 #, no-c-format msgid "" "Use specified pattern for launch command in terminal (default: xterm -e %s)" @@ -726,66 +723,70 @@ "Використовувати вказаний шаблон для запуску в терміналі (без шаблону: xterm -" "e %s)" -#: ../src/option.c:734 +#: ../src/option.c:727 msgid "Sort items by name instead of filename" msgstr "Сортувати по полю Назва замість назви файлу" -#: ../src/option.c:740 +#: ../src/option.c:733 msgid "Sort items in descending order" msgstr "Сортувати в порядку спадання" -#: ../src/option.c:746 +#: ../src/option.c:739 msgid "Activate items by single click" msgstr "Активувати елемент одним натисненням" -#: ../src/option.c:756 +#: ../src/option.c:749 msgid "Display list dialog" msgstr "Відобразити діалог зі списком" -#: ../src/option.c:762 -msgid "Don't show column headers" -msgstr "Не показувати заголовки стовпчиків" - -#: ../src/option.c:768 +#: ../src/option.c:755 msgid "Set the column header (TYPE - TEXT, NUM, FLT, CHK, RD, IMG, HD or TIP)" msgstr "" "Задати заголовок стовпчика (ТИП - TEXT, NUM, FLT, CHK, RD, IMG, HD або TIP)" -#: ../src/option.c:769 +#: ../src/option.c:756 msgid "COLUMN[:TYPE]" msgstr "СТОВПЧИК[:ТИП]" -#: ../src/option.c:774 +#: ../src/option.c:761 msgid "Use checkboxes for first column" msgstr "Використовувати відмітки для першого стовпчика" -#: ../src/option.c:780 +#: ../src/option.c:767 msgid "Use radioboxes for first column" msgstr "Використовувати перемикач для першого стовпчика" -#: ../src/option.c:786 +#: ../src/option.c:773 +msgid "Don't show column headers" +msgstr "Не показувати заголовки стовпчиків" + +#: ../src/option.c:779 msgid "Disable clickable column headers" msgstr "Заборонити натискати на заголовок" -#: ../src/option.c:799 +#: ../src/option.c:785 +msgid "Disable rules hints" +msgstr "Заборонити розмальовку стрічок" + +#: ../src/option.c:798 msgid "Allow multiple rows to be selected" msgstr "Дозволити вибір декількох рядків" -#: ../src/option.c:805 ../src/option.c:1281 +#: ../src/option.c:804 ../src/option.c:1292 msgid "Allow changes to text" msgstr "Дозволити змінювати текст" -#: ../src/option.c:811 +#: ../src/option.c:810 msgid "Print all data from list" msgstr "Виводити таблицю повністю" -#: ../src/option.c:817 +#: ../src/option.c:816 msgid "Set ellipsize mode for text columns (TYPE - NONE, START, MIDDLE or END)" msgstr "" "Задати тип урізання для текстових стовпчиків (ТИП - NONE, START, MIDDLE або " "END)" -#: ../src/option.c:823 +#: ../src/option.c:822 msgid "" "Print a specific column. By default or if 0 is specified will be printed all " "columns" @@ -793,15 +794,15 @@ "Виводити тільки вказаний стовпчик. Без вказівки або якщо стовпчик дорівнює " "0, будуть виведені усі стовпчики" -#: ../src/option.c:829 +#: ../src/option.c:828 msgid "Hide a specific column" msgstr "Сховати вказаний стовпчик" -#: ../src/option.c:835 +#: ../src/option.c:834 msgid "Set the column expandable by default. 0 sets all columns expandable" msgstr "Задати стовпчик, який розширюється. 0 розширює всі стовпчики" -#: ../src/option.c:841 +#: ../src/option.c:840 msgid "" "Set the quick search column. Default is first column. Set it to 0 for " "disable searching" @@ -809,548 +810,597 @@ "Задати стовпчик швидкого пошуку. Без вказівки використовується перший " "стовпчик. 0 забороняє пошук" -#: ../src/option.c:847 +#: ../src/option.c:846 msgid "Set the tooltip column" msgstr "Задати стовпчик підказок" -#: ../src/option.c:853 +#: ../src/option.c:852 +msgid "Set the row separator column" +msgstr "Задати стовпчик розділювача стрічок" + +#: ../src/option.c:858 +msgid "Set the row separator value" +msgstr "Задати значення розділювача стрічок" + +#: ../src/option.c:864 msgid "Set the limit of rows in list" msgstr "Задати кількість рядків у списку" -#: ../src/option.c:859 +#: ../src/option.c:870 msgid "Set double-click action" -msgstr "Дія для подвійного клацання мишки" +msgstr "Дія для подвійного натискання мишки" -#: ../src/option.c:865 +#: ../src/option.c:876 msgid "Use regex in search" msgstr "Використовувати регулярні вирази в пошуку" -#: ../src/option.c:871 +#: ../src/option.c:882 msgid "Listen for data on stdin in addition to command-line" msgstr "Отримувати дані з потоку вводу додатково до командного рядка" -#: ../src/option.c:887 +#: ../src/option.c:898 msgid "Display multi progress bars dialog" msgstr "Відобразити діалог з декількома індикаторами виконання" -#: ../src/option.c:893 +#: ../src/option.c:904 msgid "Add the progress bar (TYPE - NORM, RTL or PULSE)" msgstr "Додати індикатор виконання (ТИП - NORM, RTL або PULSE)" -#: ../src/option.c:899 +#: ../src/option.c:910 msgid "Show vertical bars" msgstr "Відобразити вертикальні індикатори" -#: ../src/option.c:905 +#: ../src/option.c:916 msgid "Set alignment of bar labels (left, center or right)" msgstr "Задати вирівнювання міток індикаторів (left, center або right)" -#: ../src/option.c:912 +#: ../src/option.c:923 #, no-c-format msgid "Dismiss the dialog when 100% of all bars has been reached" msgstr "Закрити діалог по досягненні 100% усіма індикаторами" -#: ../src/option.c:919 ../src/option.c:1116 +#: ../src/option.c:930 ../src/option.c:1127 msgid "Kill parent process if cancel button is pressed" msgstr "Завершити батьківський процес, якщо натиснута кнопка відміни" -#: ../src/option.c:930 +#: ../src/option.c:941 msgid "Display notebook dialog" msgstr "Відобразити діалог із вкладинками" -#: ../src/option.c:936 ../src/option.c:1034 +#: ../src/option.c:947 ../src/option.c:1045 msgid "Identifier of embedded dialogs" msgstr "Ідентифікатор діалогів що вбудовуваються" -#: ../src/option.c:942 +#: ../src/option.c:953 msgid "Add a tab to notebook" msgstr "Додати вкладку" -#: ../src/option.c:943 +#: ../src/option.c:954 msgid "LABEL" msgstr "МІТКА" -#: ../src/option.c:948 +#: ../src/option.c:959 msgid "Set position of a notebook tabs (top, bottom, left or right)" msgstr "Задати позицію ярлика вкладки (top, bottom, left, або right)" -#: ../src/option.c:954 +#: ../src/option.c:965 msgid "Set tab borders" -msgstr "Задати краї вкладок" +msgstr "Задати межі вкладок" -#: ../src/option.c:964 +#: ../src/option.c:975 msgid "Display notification" msgstr "Відобразити діалог повідомлень" -#: ../src/option.c:970 +#: ../src/option.c:981 msgid "Set left-click action" -msgstr "Дія для лівого клацання мишки" +msgstr "Дія для лівої кнопки мишки" -#: ../src/option.c:976 +#: ../src/option.c:987 msgid "Listen for commands on stdin" msgstr "Читати команди зі стандартного вводу" -#: ../src/option.c:982 +#: ../src/option.c:993 msgid "Set separator character for menu values" msgstr "Встановити розділювач для значень меню" -#: ../src/option.c:988 +#: ../src/option.c:999 msgid "Set separator character for menu items" msgstr "Встановити розділювач для елементів меню" -#: ../src/option.c:994 +#: ../src/option.c:1005 msgid "Set initial popup menu" msgstr "Задати початкове меню" -#: ../src/option.c:995 +#: ../src/option.c:1006 msgid "STRING" msgstr "РЯДОК" -#: ../src/option.c:1000 +#: ../src/option.c:1011 msgid "Disable exit on middle click" msgstr "Заборонити вихід середньою кнопкою мишки" -#: ../src/option.c:1006 +#: ../src/option.c:1017 msgid "Doesn't show icon at startup" msgstr "Не показувати іконку при старті" -#: ../src/option.c:1016 +#: ../src/option.c:1027 msgid "Display paned dialog" msgstr "Відобразити діалог з панелями" -#: ../src/option.c:1022 +#: ../src/option.c:1033 msgid "Set orientation (TYPE - hor[izontal] or vert[ical])" msgstr "Задати оріентицію (ТИП - hor[izontal] або vert[ical])" -#: ../src/option.c:1028 +#: ../src/option.c:1039 msgid "Set initial splitter position" msgstr "Задати початкову позицію розділювача" -#: ../src/option.c:1044 +#: ../src/option.c:1055 msgid "Display printing dialog" msgstr "Відобразити діалог друку" -#: ../src/option.c:1050 +#: ../src/option.c:1061 msgid "Source filename" msgstr "Назва файлу" -#: ../src/option.c:1056 +#: ../src/option.c:1067 msgid "Set source type (TYPE - TEXT, IMAGE or RAW)" msgstr "Задати тип даних (ТИП - TEXT, IMAGE або RAW)" -#: ../src/option.c:1062 +#: ../src/option.c:1073 msgid "Add headers to page" msgstr "Додати колонтитули до сторінки" -#: ../src/option.c:1068 +#: ../src/option.c:1079 msgid "Enable preview in print dialog" msgstr "Додати попередній перегляд до діалогу друку" -#: ../src/option.c:1074 ../src/option.c:1245 +#: ../src/option.c:1085 ../src/option.c:1256 msgid "Use specified font" msgstr "Використовувати вказаний шрифт" -#: ../src/option.c:1084 +#: ../src/option.c:1095 msgid "Display progress indication dialog" msgstr "Відобразити діалог прогресу" -#: ../src/option.c:1090 +#: ../src/option.c:1101 msgid "Set progress text" msgstr "Показувати текст на індикаторі" -#: ../src/option.c:1096 +#: ../src/option.c:1107 msgid "Set initial percentage" msgstr "Задати початковий процент" -#: ../src/option.c:1097 +#: ../src/option.c:1108 msgid "PERCENTAGE" msgstr "ВІДСОТКИ" -#: ../src/option.c:1102 +#: ../src/option.c:1113 msgid "Pulsate progress bar" msgstr "Пульсовий індикатор виконання" -#: ../src/option.c:1109 +#: ../src/option.c:1120 #, no-c-format msgid "Dismiss the dialog when 100% has been reached" msgstr "Закрити діалог по досягненні 100%" -#: ../src/option.c:1123 +#: ../src/option.c:1134 msgid "Right-To-Left progress bar direction" -msgstr "Напрямок індикатору Справа Наліво" +msgstr "Напрямок індикатору Справа-Наліво" -#: ../src/option.c:1129 +#: ../src/option.c:1140 msgid "Show log window" msgstr "Відобразити вікно журналу" -#: ../src/option.c:1135 +#: ../src/option.c:1146 msgid "Expand log window" msgstr "Розгорнути вікно журналу" -#: ../src/option.c:1141 +#: ../src/option.c:1152 msgid "Place log window above progress bar" msgstr "Розмістити вікно жуналу поверх індикатора виконання" -#: ../src/option.c:1147 +#: ../src/option.c:1158 msgid "Height of log window" msgstr "Висота вікна журналу" -#: ../src/option.c:1157 +#: ../src/option.c:1168 msgid "Display scale dialog" msgstr "Відобразити діалог масштабу" -#: ../src/option.c:1163 +#: ../src/option.c:1174 msgid "Set initial value" msgstr "Задати початкове значення" -#: ../src/option.c:1164 ../src/option.c:1170 ../src/option.c:1176 -#: ../src/option.c:1182 ../src/option.c:1188 +#: ../src/option.c:1175 ../src/option.c:1181 ../src/option.c:1187 +#: ../src/option.c:1193 ../src/option.c:1199 msgid "VALUE" msgstr "ЗНАЧЕННЯ" -#: ../src/option.c:1169 +#: ../src/option.c:1180 msgid "Set minimum value" msgstr "Задати мінімальне значення" -#: ../src/option.c:1175 +#: ../src/option.c:1186 msgid "Set maximum value" msgstr "Задати максимальне значення" -#: ../src/option.c:1181 +#: ../src/option.c:1192 msgid "Set step size" msgstr "Задати крок" -#: ../src/option.c:1187 +#: ../src/option.c:1198 msgid "Set paging size" msgstr "Задати крок сторінки" -#: ../src/option.c:1193 +#: ../src/option.c:1204 msgid "Print partial values" msgstr "Виводити часткові значення" -#: ../src/option.c:1199 +#: ../src/option.c:1210 msgid "Hide value" msgstr "Сховати значення" -#: ../src/option.c:1205 +#: ../src/option.c:1216 msgid "Show vertical scale" msgstr "Відобразити вертикальну шкалу" -#: ../src/option.c:1211 +#: ../src/option.c:1222 msgid "Invert direction" -msgstr "Інвертувати напрямок" +msgstr "Зворотній напрямок" -#: ../src/option.c:1217 +#: ../src/option.c:1228 msgid "Add mark to scale (may be used multiple times)" msgstr "Додати мітку шкали (може використовуватись декілька разів)" -#: ../src/option.c:1218 +#: ../src/option.c:1229 msgid "NAME:VALUE" msgstr "НАЗВА:ЗНАЧЕННЯ" -#: ../src/option.c:1227 +#: ../src/option.c:1238 msgid "Display text information dialog" msgstr "Відобразити діалог з текстовою інформацією" -#: ../src/option.c:1233 +#: ../src/option.c:1244 msgid "Use specified color for text" msgstr "Використовувати вказаний колір тексту" -#: ../src/option.c:1239 +#: ../src/option.c:1250 msgid "Use specified color for background" msgstr "Використовувати вказаний колір фону" -#: ../src/option.c:1251 +#: ../src/option.c:1262 msgid "Enable text wrapping" msgstr "Дозволити перенос тексту" -#: ../src/option.c:1257 +#: ../src/option.c:1268 msgid "Set justification (TYPE - left, right, center or fill)" msgstr "Встановити вирівнювання (ТИП - left, right, center або fill)" -#: ../src/option.c:1263 +#: ../src/option.c:1274 msgid "Set text margins" msgstr "Встановити відступи" -#: ../src/option.c:1264 +#: ../src/option.c:1275 msgid "SIZE" msgstr "РОЗМІР" -#: ../src/option.c:1269 +#: ../src/option.c:1280 msgid "Autoscroll to end of text" msgstr "Автопрокрутка в кінець тексту" -#: ../src/option.c:1275 +#: ../src/option.c:1286 msgid "Open file" msgstr "Відкрити файл" -#: ../src/option.c:1287 +#: ../src/option.c:1298 msgid "Make URI clickable" msgstr "Зробити посилання активними" -#: ../src/option.c:1293 +#: ../src/option.c:1304 msgid "Use specified color for links" msgstr "Використовувати вказаний колір для посилань" -#: ../src/option.c:1299 +#: ../src/option.c:1310 msgid "Listen for data on stdin in addition to file" msgstr "Отримувати дані з потоку вводу додатково до файлу" -#: ../src/option.c:1309 +#: ../src/option.c:1320 +msgid "Sets a filename filter" +msgstr "Задати фільтр файлів по масці" + +#: ../src/option.c:1321 +msgid "NAME | PATTERN1 PATTERN2 ..." +msgstr "НАЗВА | ШАБЛОН1 ШАБЛОН2 ..." + +#: ../src/option.c:1326 +msgid "Sets a mime-type filter" +msgstr "Задати фільтр файлів по типу mime" + +#: ../src/option.c:1327 +msgid "NAME | MIME1 MIME2 ..." +msgstr "НАЗВА | ТИП1 ТИП2 ..." + +#: ../src/option.c:1332 +msgid "Add filter for images" +msgstr "Додати фільтр для зображень" + +#: ../src/option.c:1333 +msgid "NAME" +msgstr "ІМ'Я" + +#: ../src/option.c:1338 +msgid "Enable preview" +msgstr "Додати попередній перегляд" + +#: ../src/option.c:1348 msgid "Show about dialog" msgstr "Показати діалог 'Про програму'" -#: ../src/option.c:1315 +#: ../src/option.c:1354 msgid "Print version" msgstr "Вивести версію" -#: ../src/option.c:1321 +#: ../src/option.c:1360 msgid "Load additional GTK settings from file" msgstr "Завантажити додаткові налаштування GTK з файлу" -#: ../src/option.c:1331 +#: ../src/option.c:1370 msgid "Load extra arguments from file" msgstr "Завантажити додаткові аргументи з файлу" -#: ../src/option.c:1376 ../src/option.c:1604 +#: ../src/option.c:1415 ../src/option.c:1708 #, c-format msgid "Unknown align type: %s\n" msgstr "Невідомий тип вирівнювання: %s\n" -#: ../src/option.c:1533 +#: ../src/option.c:1572 #, c-format msgid "Mark %s doesn't have a value\n" msgstr "Помітці %s не надано значення\n" -#: ../src/option.c:1570 +#: ../src/option.c:1609 +msgid "Images" +msgstr "Зображення" + +#: ../src/option.c:1674 #, c-format msgid "Unknown color mode: %s\n" -msgstr "Невідомий режим коліру: '%s'\n" +msgstr "Невідомий режим кольору: '%s'\n" -#: ../src/option.c:1589 +#: ../src/option.c:1693 #, c-format msgid "Unknown buttons layout type: %s\n" msgstr "Невідомий тип розміщення кнопок: %s\n" -#: ../src/option.c:1621 +#: ../src/option.c:1725 #, c-format msgid "Unknown justification type: %s\n" msgstr "Невідомий тип вирівнювання: %s\n" -#: ../src/option.c:1638 +#: ../src/option.c:1742 #, c-format msgid "Unknown tab position type: %s\n" msgstr "Невідомий тип позиції вкладки: %s\n" -#: ../src/option.c:1674 +#: ../src/option.c:1778 #, c-format msgid "Unknown ellipsize type: %s\n" msgstr "Невідомий тип урізання: %s\n" -#: ../src/option.c:1687 +#: ../src/option.c:1791 #, c-format msgid "Unknown orientation: %s\n" -msgstr "Невідома оріентація: %s\n" +msgstr "Невідома орієнтація: %s\n" -#: ../src/option.c:1702 +#: ../src/option.c:1806 #, c-format msgid "Unknown source type: %s\n" msgstr "Невідомий тип даних: %s\n" -#: ../src/option.c:1713 +#: ../src/option.c:1817 msgid "Progress log" msgstr "Вікно журналу" -#: ../src/option.c:1821 +#: ../src/option.c:1925 #, c-format msgid "Unknown signal: %s\n" msgstr "Невідомий сигнал: %s\n" -#: ../src/option.c:1977 +#: ../src/option.c:2081 msgid "File exist. Overwrite?" msgstr "Файл існує. Перезаписати?" -#: ../src/option.c:2089 +#: ../src/option.c:2198 msgid "- Yet another dialoging program" msgstr "- Програма для відображення діалогів" #. Adds general option entries -#: ../src/option.c:2093 +#: ../src/option.c:2202 msgid "General options" msgstr "Основні параметри" -#: ../src/option.c:2093 +#: ../src/option.c:2202 msgid "Show general options" msgstr "Показувати основні параметри" #. Adds calendar option entries -#: ../src/option.c:2099 +#: ../src/option.c:2208 msgid "Calendar options" msgstr "Параметри календаря" -#: ../src/option.c:2099 +#: ../src/option.c:2208 msgid "Show calendar options" msgstr "Показувати параметри календаря" #. Adds color option entries -#: ../src/option.c:2105 +#: ../src/option.c:2214 msgid "Color selection options" msgstr "Параметри діалогу вибору кольору" -#: ../src/option.c:2105 +#: ../src/option.c:2214 msgid "Show color selection options" msgstr "Показувати параметри діалогу вибору кольору" #. Adds dnd option entries -#: ../src/option.c:2111 +#: ../src/option.c:2220 msgid "DND options" msgstr "Параметри DND" -#: ../src/option.c:2111 +#: ../src/option.c:2220 msgid "Show drag-n-drop options" msgstr "Показувати параметри dnd" #. Adds entry option entries -#: ../src/option.c:2117 +#: ../src/option.c:2226 msgid "Text entry options" msgstr "Параметри вводу тексту" -#: ../src/option.c:2117 +#: ../src/option.c:2226 msgid "Show text entry options" msgstr "Показувати параметри вводу тексту" #. Adds file selection option entries -#: ../src/option.c:2123 +#: ../src/option.c:2232 msgid "File selection options" msgstr "Параметри діалогу вибору файлів" -#: ../src/option.c:2123 +#: ../src/option.c:2232 msgid "Show file selection options" msgstr "Показувати параметри діалогу вибору файлів" #. Add font selection option entries -#: ../src/option.c:2129 +#: ../src/option.c:2238 msgid "Font selection options" msgstr "Параметри діалогу вибору шрифту" -#: ../src/option.c:2129 +#: ../src/option.c:2238 msgid "Show font selection options" msgstr "Показувати параметри діалоги вибору шрифту" #. Add form option entries -#: ../src/option.c:2135 +#: ../src/option.c:2244 msgid "Form options" msgstr "Параметри діалогу форми" -#: ../src/option.c:2135 +#: ../src/option.c:2244 msgid "Show form options" msgstr "Показувати параметри діалогу форми" #. Add html options entries -#: ../src/option.c:2142 +#: ../src/option.c:2251 msgid "HTML options" msgstr "Параметри HTML діалогу" -#: ../src/option.c:2142 +#: ../src/option.c:2251 msgid "Show HTML options" msgstr "Показувати параметри HTML діалогу" #. Add icons option entries -#: ../src/option.c:2149 +#: ../src/option.c:2258 msgid "Icons box options" msgstr "Параметри діалогу іконок" -#: ../src/option.c:2149 +#: ../src/option.c:2258 msgid "Show icons box options" msgstr "Показувати параметри діалогу іконок швидкого доступу" #. Adds list option entries -#: ../src/option.c:2155 +#: ../src/option.c:2264 msgid "List options" msgstr "Параметри списку" -#: ../src/option.c:2155 +#: ../src/option.c:2264 msgid "Show list options" msgstr "Показувати параметри списку" #. Adds multi progress option entries -#: ../src/option.c:2161 +#: ../src/option.c:2270 msgid "Multi progress bars options" msgstr "Параметри діалогу з декількома індикаторами" -#: ../src/option.c:2162 +#: ../src/option.c:2271 msgid "Show multi progress bars options" msgstr "Показувати параметри діалогу з декількома індикаторами" #. Adds notebook option entries -#: ../src/option.c:2168 +#: ../src/option.c:2277 msgid "Notebook options" msgstr "Параметри діалогу з вкладками" -#: ../src/option.c:2168 +#: ../src/option.c:2277 msgid "Show notebook dialog options" msgstr "Показувати параметри діалогу з вкладками" #. Adds notification option entries -#: ../src/option.c:2174 +#: ../src/option.c:2283 msgid "Notification icon options" msgstr "Параметри іконки повідомлень" -#: ../src/option.c:2175 +#: ../src/option.c:2284 msgid "Show notification icon options" msgstr "Показувати параметри іконки повідомлень" #. Adds paned option entries -#: ../src/option.c:2181 +#: ../src/option.c:2290 msgid "Paned dialog options" msgstr "Параметри діалогу з панелями" -#: ../src/option.c:2181 +#: ../src/option.c:2290 msgid "Show paned dialog options" msgstr "Показувати параметри діалогу з панелями" #. Adds print option entries -#: ../src/option.c:2187 +#: ../src/option.c:2296 msgid "Print dialog options" msgstr "Параметри діалогу друку" -#: ../src/option.c:2187 +#: ../src/option.c:2296 msgid "Show print dialog options" msgstr "Показувати параметри діалогу друку" #. Adds progress option entries -#: ../src/option.c:2193 +#: ../src/option.c:2302 msgid "Progress options" msgstr "Параметри прогресу" -#: ../src/option.c:2193 +#: ../src/option.c:2302 msgid "Show progress options" msgstr "Показувати параметри прогресу" #. Adds scale option entries -#: ../src/option.c:2199 +#: ../src/option.c:2308 msgid "Scale options" msgstr "Параметри масштабу" -#: ../src/option.c:2199 +#: ../src/option.c:2308 msgid "Show scale options" msgstr "Показувати параметри масштабу" #. Adds text option entries -#: ../src/option.c:2205 +#: ../src/option.c:2314 msgid "Text information options" msgstr "Параметри текстової інформації" -#: ../src/option.c:2205 +#: ../src/option.c:2314 msgid "Show text information options" msgstr "Показувати параметри текстової інформації" +#. Adds file filters option entries +#: ../src/option.c:2320 +msgid "File filter options" +msgstr "Параметри фільтрів для діалогу вибору файлів" + +#: ../src/option.c:2320 +msgid "Show file filter options" +msgstr "Показувати параметри фільтрів для діалогу вибору файлів" + #. Adds miscellaneous option entries -#: ../src/option.c:2211 +#: ../src/option.c:2326 msgid "Miscellaneous options" msgstr "Додаткові параметри" -#: ../src/option.c:2211 +#: ../src/option.c:2326 msgid "Show miscellaneous options" msgstr "Показувати додаткові параметри" @@ -1392,7 +1442,7 @@ #: ../src/color.c:65 #, c-format msgid "Can't open file %s: %s\n" -msgstr "Не можу відкрити файлу %s: %s\n" +msgstr "Не можу відкрити файл %s: %s\n" #. create expander #: ../src/color.c:150 @@ -1414,7 +1464,7 @@ #: ../src/browser.c:132 msgid "scalable " -msgstr "масштабовний " +msgstr "масштабований " #: ../src/browser.c:142 msgid "built-in" @@ -1423,11 +1473,11 @@ #. initialize GTK+ and parse the command line arguments #: ../src/browser.c:200 msgid "- Icon browser" -msgstr "- Переглядач іконок" +msgstr "- Навігатор іконок" #: ../src/browser.c:213 msgid "Icon browser" -msgstr "Переглядач іконок" +msgstr "Навігатор іконок" #: ../src/browser.c:247 msgid "Name:" @@ -1451,7 +1501,7 @@ #: ../data/yad-icon-browser.desktop.in.h:1 msgid "Icon Browser" -msgstr "Переглядач іконок" +msgstr "Павігатор іконок" #: ../data/yad-icon-browser.desktop.in.h:2 msgid "Inspect GTK Icon Theme" diff -Nru yad-0.30.1/src/color.c yad-0.31.0/src/color.c --- yad-0.30.1/src/color.c 2015-08-09 06:09:21.000000000 +0000 +++ yad-0.31.0/src/color.c 2015-09-09 11:13:45.000000000 +0000 @@ -125,7 +125,7 @@ color = gtk_color_selection_new (); gtk_widget_set_name (color, "yad-color-widget"); - gtk_color_selection_set_has_palette (GTK_COLOR_SELECTION (color), settings.show_gtk_palette); + gtk_color_selection_set_has_palette (GTK_COLOR_SELECTION (color), options.color_data.gtk_palette); if (options.color_data.init_color) { GdkColor c; @@ -148,7 +148,7 @@ /* create expander */ exp = gtk_expander_new (_("Palette")); - gtk_expander_set_expanded (GTK_EXPANDER (exp), settings.expand_palette); + gtk_expander_set_expanded (GTK_EXPANDER (exp), options.color_data.expand_palette); gtk_container_set_border_width (GTK_CONTAINER (exp), 5); gtk_box_pack_start (GTK_BOX (w), exp, TRUE, TRUE, 2); @@ -156,11 +156,11 @@ sw = gtk_scrolled_window_new (NULL, NULL); gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (sw), GTK_SHADOW_ETCHED_IN); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); + gtk_widget_set_size_request (sw, -1, 75); gtk_container_add (GTK_CONTAINER (exp), sw); list = gtk_tree_view_new_with_model (model); gtk_widget_set_name (list, "yad-color-palette"); - gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (list), settings.rules_hint); g_object_unref (model); gtk_container_add (GTK_CONTAINER (sw), list); diff -Nru yad-0.30.1/src/file.c yad-0.31.0/src/file.c --- yad-0.30.1/src/file.c 2015-08-09 06:09:21.000000000 +0000 +++ yad-0.31.0/src/file.c 2015-09-10 07:47:06.000000000 +0000 @@ -23,9 +23,6 @@ static GtkWidget *filechooser; -static gchar *normal_path; -static gchar *large_path; - static void file_activated_cb (GtkFileChooser * chooser, gpointer data) { @@ -33,65 +30,6 @@ gtk_dialog_response (GTK_DIALOG (data), YAD_RESPONSE_OK); } -static void -update_preview_cb (GtkFileChooser * chooser, gpointer data) -{ - gchar *uri; - GtkWidget *p = GTK_WIDGET (data); - - uri = gtk_file_chooser_get_preview_uri (chooser); - if (uri) - { - gchar *file; - GChecksum *chs; - GdkPixbuf *pb; - - chs = g_checksum_new (G_CHECKSUM_MD5); - g_checksum_update (chs, uri, -1); - /* first try to get preview from large thumbnail */ - file = g_strdup_printf ("%s/%s.png", large_path, g_checksum_get_string (chs)); - if (g_file_test (file, G_FILE_TEST_EXISTS)) - pb = gdk_pixbuf_new_from_file (file, NULL); - else - { - /* try to get preview from normal thumbnail */ - g_free (file); - file = g_strdup_printf ("%s/%s.png", normal_path, g_checksum_get_string (chs)); - if (g_file_test (file, G_FILE_TEST_EXISTS)) - pb = gdk_pixbuf_new_from_file (file, NULL); - else - { - /* try to create it */ - g_free (file); - file = g_filename_from_uri (uri, NULL, NULL); - pb = gdk_pixbuf_new_from_file_at_size (file, 256, 256, NULL); - g_free (file); - if (pb) - { - /* save thumbnail */ - g_mkdir_with_parents (large_path, 0755); - file = g_strdup_printf ("%s/%s.png", large_path, g_checksum_get_string (chs)); - gdk_pixbuf_save (pb, file, "png", NULL, NULL); - } - } - } - g_checksum_free (chs); - - if (pb) - { - gtk_image_set_from_pixbuf (GTK_IMAGE (p), pb); - g_object_unref (pb); - gtk_file_chooser_set_preview_widget_active (chooser, TRUE); - } - else - gtk_file_chooser_set_preview_widget_active (chooser, FALSE); - - g_free (uri); - } - else - gtk_file_chooser_set_preview_widget_active (chooser, FALSE); -} - void confirm_overwrite_cb (GtkDialog * dlg, gint id, gpointer data) { @@ -125,6 +63,7 @@ { GtkWidget *w; gchar *dir, *basename; + GList *filt; GtkFileChooserAction action = GTK_FILE_CHOOSER_ACTION_OPEN; if (options.file_data.directory) @@ -167,65 +106,17 @@ if (options.common_data.multi) gtk_file_chooser_set_select_multiple (GTK_FILE_CHOOSER (w), TRUE); + /* add preview */ if (options.common_data.preview) { - /* add widget */ GtkWidget *p = gtk_image_new (); gtk_file_chooser_set_preview_widget (GTK_FILE_CHOOSER (w), p); - g_signal_connect (w, "update-preview", G_CALLBACK (update_preview_cb), p); - /* init thumbnails path */ - normal_path = g_build_filename (g_get_user_cache_dir (), "thumbnails", "normal", NULL); - large_path = g_build_filename (g_get_user_cache_dir (), "thumbnails", "large", NULL); + g_signal_connect (w, "update-preview", G_CALLBACK (update_preview), p); } - if (options.file_data.filter) - { - /* Filter format: Executables | *.exe *.bat *.com */ - gint filter_i; - - for (filter_i = 0; options.file_data.filter[filter_i]; filter_i++) - { - GtkFileFilter *filter = gtk_file_filter_new (); - gchar *filter_str = options.file_data.filter[filter_i]; - gchar **pattern, **patterns; - gchar *name = NULL; - gint i; - - /* Set name */ - for (i = 0; filter_str[i] != '\0'; i++) - { - if (filter_str[i] == '|') - break; - } - - if (filter_str[i] == '|') - name = g_strstrip (g_strndup (filter_str, i)); - - if (name) - { - gtk_file_filter_set_name (filter, name); - - /* Point i to the right position for split */ - for (++i; filter_str[i] == ' '; i++); - } - else - { - gtk_file_filter_set_name (filter, filter_str); - i = 0; - } - - /* Get patterns */ - patterns = g_strsplit_set (filter_str + i, " ", -1); - - for (pattern = patterns; *pattern; pattern++) - gtk_file_filter_add_pattern (filter, *pattern); - - g_free (name); - g_strfreev (patterns); - - gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (w), filter); - } - } + /* add filters */ + for (filt = options.common_data.filters; filt; filt = filt->next) + gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (w), GTK_FILE_FILTER (filt->data)); g_signal_connect (w, "file-activated", G_CALLBACK (file_activated_cb), dlg); diff -Nru yad-0.30.1/src/form.c yad-0.31.0/src/form.c --- yad-0.30.1/src/form.c 2015-08-09 06:09:21.000000000 +0000 +++ yad-0.31.0/src/form.c 2015-09-10 07:47:06.000000000 +0000 @@ -385,6 +385,7 @@ select_files_cb (GtkEntry * entry, GtkEntryIconPosition pos, GdkEventButton * event, gpointer data) { GtkWidget *dlg; + GList *filt; static gchar *path = NULL; if (event->button == 1) @@ -420,6 +421,18 @@ gtk_file_chooser_set_select_multiple (GTK_FILE_CHOOSER (dlg), TRUE); gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (dlg), path); + /* add preview */ + if (options.common_data.preview) + { + GtkWidget *p = gtk_image_new (); + gtk_file_chooser_set_preview_widget (GTK_FILE_CHOOSER (dlg), p); + g_signal_connect (dlg, "update-preview", G_CALLBACK (update_preview), p); + } + + /* add filters */ + for (filt = options.common_data.filters; filt; filt = filt->next) + gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (dlg), GTK_FILE_FILTER (filt->data)); + if (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_ACCEPT) { GSList *files, *ptr; @@ -457,6 +470,7 @@ create_files_cb (GtkEntry * entry, GtkEntryIconPosition pos, GdkEventButton * event, gpointer data) { GtkWidget *dlg; + GList *filt; static gchar *path = NULL; if (event->button == 1) @@ -491,6 +505,18 @@ } gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (dlg), path); + /* add preview */ + if (options.common_data.preview) + { + GtkWidget *p = gtk_image_new (); + gtk_file_chooser_set_preview_widget (GTK_FILE_CHOOSER (dlg), p); + g_signal_connect (dlg, "update-preview", G_CALLBACK (update_preview), p); + } + + /* add filters */ + for (filt = options.common_data.filters; filt; filt = filt->next) + gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (dlg), GTK_FILE_FILTER (filt->data)); + if (gtk_dialog_run (GTK_DIALOG (dlg)) == GTK_RESPONSE_ACCEPT) { gchar *file = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dlg)); @@ -545,9 +571,6 @@ gchar *format = options.common_data.date_format; gchar time_string[128]; - if (format == NULL) - format = "%x"; - gtk_calendar_get_date (GTK_CALENDAR (cal), &day, &month, &year); d = g_date_new_dmy (year, month + 1, day); g_date_strftime (time_string, 127, format, d); @@ -563,6 +586,7 @@ { GtkWidget *sw, *vp, *tbl; GtkWidget *w = NULL; + GList *filt; if (options.form_data.fields) { @@ -743,6 +767,19 @@ e = gtk_file_chooser_button_new (_("Select file"), GTK_FILE_CHOOSER_ACTION_OPEN); gtk_widget_set_name (e, "yad-form-file"); gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (e), g_get_current_dir ()); + + /* add preview */ + if (options.common_data.preview) + { + GtkWidget *p = gtk_image_new (); + gtk_file_chooser_set_preview_widget (GTK_FILE_CHOOSER (e), p); + g_signal_connect (e, "update-preview", G_CALLBACK (update_preview), p); + } + + /* add filters */ + for (filt = options.common_data.filters; filt; filt = filt->next) + gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (e), GTK_FILE_FILTER (filt->data)); + #if !GTK_CHECK_VERSION(3,0,0) gtk_table_attach (GTK_TABLE (tbl), e, 1 + col * 2, 2 + col * 2, row, row + 1, GTK_EXPAND | GTK_FILL, 0, 5, 5); diff -Nru yad-0.30.1/src/html.c yad-0.31.0/src/html.c --- yad-0.30.1/src/html.c 2015-08-09 06:09:21.000000000 +0000 +++ yad-0.31.0/src/html.c 2015-09-09 10:23:45.000000000 +0000 @@ -91,7 +91,7 @@ g_printf ("%s\n", uri); else { - gchar *cmd = g_strdup_printf ("xdg-open '%s'", uri); + gchar *cmd = g_strdup_printf (settings.open_cmd, uri); g_spawn_command_line_async (cmd, NULL); g_free (cmd); } diff -Nru yad-0.30.1/src/icons.c yad-0.31.0/src/icons.c --- yad-0.30.1/src/icons.c 2015-08-09 06:09:21.000000000 +0000 +++ yad-0.31.0/src/icons.c 2015-09-09 10:22:50.000000000 +0000 @@ -304,7 +304,7 @@ gchar *url = g_key_file_get_string (kf, "Desktop Entry", "URL", NULL); if (url) { - ent->command = g_strdup_printf ("xdg-open '%s'", url); + ent->command = g_strdup_printf (settings.open_cmd, url); g_free (url); } } diff -Nru yad-0.30.1/src/list.c yad-0.31.0/src/list.c --- yad-0.30.1/src/list.c 2015-08-09 06:09:21.000000000 +0000 +++ yad-0.31.0/src/list.c 2015-09-08 13:58:19.000000000 +0000 @@ -794,6 +794,14 @@ return FALSE; } +static gboolean +row_sep_func (GtkTreeModel * m, GtkTreeIter * it, gpointer data) +{ + gchar *name; + gtk_tree_model_get (m, it, options.list_data.sep_column - 1, &name, -1); + return (strcmp (name, options.list_data.sep_value) == 0); +} + GtkWidget * list_create_widget (GtkWidget * dlg) { @@ -820,7 +828,7 @@ list_view = gtk_tree_view_new_with_model (model); gtk_widget_set_name (list_view, "yad-list-widget"); gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (list_view), !options.list_data.no_headers); - gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (list_view), settings.rules_hint); + gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (list_view), options.list_data.rules_hint); gtk_tree_view_set_reorderable (GTK_TREE_VIEW (list_view), options.common_data.editable); g_object_unref (model); @@ -857,6 +865,10 @@ gtk_tree_view_set_search_equal_func (GTK_TREE_VIEW (list_view), regex_search, NULL, NULL); } + /* add row separator function */ + if (options.list_data.sep_column > 0) + gtk_tree_view_set_row_separator_func (GTK_TREE_VIEW (list_view), row_sep_func, NULL, NULL); + return w; } diff -Nru yad-0.30.1/src/main.c yad-0.31.0/src/main.c --- yad-0.30.1/src/main.c 2015-09-05 04:32:12.000000000 +0000 +++ yad-0.31.0/src/main.c 2015-09-09 09:49:35.000000000 +0000 @@ -149,9 +149,6 @@ dlg = gtk_dialog_new (); gtk_window_set_type_hint (GTK_WINDOW (dlg), GDK_WINDOW_TYPE_HINT_NORMAL); gtk_window_set_title (GTK_WINDOW (dlg), options.data.dialog_title); -#if !GTK_CHECK_VERSION(2,22,0) - gtk_dialog_set_has_separator (GTK_DIALOG (dlg), options.data.dialog_sep); -#endif gtk_widget_set_name (dlg, "yad-dialog-window"); #ifndef G_OS_WIN32 @@ -678,6 +675,47 @@ g_set_application_name ("YAD"); yad_options_init (); + ctx = yad_create_context (); + /* parse YAD_OPTIONS */ + if (g_getenv ("YAD_OPTIONS")) + { + gchar *cmd, **args = NULL; + gint cnt; + + cmd = g_strdup_printf ("yad %s", g_getenv ("YAD_OPTIONS")); + + if (g_shell_parse_argv (cmd, &cnt, &args, &err)) + { + g_option_context_parse (ctx, &cnt, &args, &err); + if (err) + { + g_printerr (_("Unable to parse YAD_OPTIONS: %s\n"), err->message); + g_error_free (err); + err = NULL; + } + } + else + { + g_printerr (_("Unable to parse YAD_OPTIONS: %s\n"), err->message); + g_error_free (err); + err = NULL; + } + + g_free (cmd); + } + /* parse command line */ + g_option_context_parse (ctx, &argc, &argv, &err); + if (err) + { + g_printerr (_("Unable to parse command line: %s\n"), err->message); + return -1; + } + yad_set_mode (); + + /* parse custom gtkrc */ + if (options.gtkrc_file) + gtk_rc_parse (options.gtkrc_file); + /* set default icons and icon theme */ if (options.data.icon_theme) { @@ -693,19 +731,6 @@ settings.small_fallback_image = gtk_icon_theme_load_icon (settings.icon_theme, "yad", MIN (w, h), GTK_ICON_LOOKUP_GENERIC_FALLBACK, NULL); - ctx = yad_create_context (); - g_option_context_parse (ctx, &argc, &argv, &err); - if (err) - { - g_printerr (_("Unable to parse command line: %s\n"), err->message); - return -1; - } - yad_set_mode (); - - /* parse custom gtkrc */ - if (options.gtkrc_file) - gtk_rc_parse (options.gtkrc_file); - /* correct separators */ str = g_strcompress (options.common_data.separator); options.common_data.separator = str; diff -Nru yad-0.30.1/src/option.c yad-0.31.0/src/option.c --- yad-0.30.1/src/option.c 2015-09-08 04:56:35.000000000 +0000 +++ yad-0.31.0/src/option.c 2015-09-10 07:47:06.000000000 +0000 @@ -30,6 +30,7 @@ static gboolean add_scale_mark (const gchar *, const gchar *, gpointer, GError **); static gboolean add_palette (const gchar *, const gchar *, gpointer, GError **); static gboolean add_confirm_overwrite (const gchar *, const gchar *, gpointer, GError **); +static gboolean add_file_filter (const gchar *, const gchar *, gpointer, GError **); static gboolean set_color_mode (const gchar *, const gchar *, gpointer, GError **); static gboolean set_buttons_layout (const gchar *, const gchar *, gpointer, GError **); static gboolean set_align (const gchar *, const gchar *, gpointer, GError **); @@ -178,14 +179,6 @@ &options.data.no_escape, N_("Don't close dialog if Escape was pressed"), NULL}, -#if !GTK_CHECK_VERSION(2,22,0) - {"dialog-sep", 0, - 0, - G_OPTION_ARG_NONE, - &options.data.dialog_sep, - N_("Add separator between dialog and buttons"), - NULL}, -#endif {"borders", 0, 0, G_OPTION_ARG_INT, @@ -359,12 +352,24 @@ &options.color_data.init_color, N_("Set initial color value"), N_("COLOR")}, + {"gtk-palette", 0, + 0, + G_OPTION_ARG_NONE, + &options.color_data.gtk_palette, + N_("Show system palette in color dialog"), + NULL}, {"palette", 0, G_OPTION_FLAG_OPTIONAL_ARG, G_OPTION_ARG_CALLBACK, add_palette, N_("Set path to palette file. Default - " RGB_FILE), N_("FILENAME")}, + {"expand-palette", 0, + 0, + G_OPTION_ARG_NONE, + &options.color_data.expand_palette, + N_("Expand user palette"), + NULL}, {"mode", 0, 0, G_OPTION_ARG_CALLBACK, @@ -527,18 +532,6 @@ add_confirm_overwrite, N_("Confirm file selection if filename already exists"), N_("[TEXT]")}, - {"file-filter", 0, - 0, - G_OPTION_ARG_STRING_ARRAY, - &options.file_data.filter, - N_("Sets a filename filter"), - N_("NAME | PATTERN1 PATTERN2 ...")}, - {"add-preview", 0, - 0, - G_OPTION_ARG_NONE, - &options.common_data.preview, - N_("Enable preview"), - NULL}, {"quoted-output", 0, G_OPTION_FLAG_NOALIAS, G_OPTION_ARG_NONE, @@ -755,12 +748,6 @@ &list_mode, N_("Display list dialog"), NULL}, - {"no-headers", 0, - 0, - G_OPTION_ARG_NONE, - &options.list_data.no_headers, - N_("Don't show column headers"), - NULL}, {"column", 0, 0, G_OPTION_ARG_CALLBACK, @@ -779,12 +766,24 @@ &options.list_data.radiobox, N_("Use radioboxes for first column"), NULL}, + {"no-headers", 0, + 0, + G_OPTION_ARG_NONE, + &options.list_data.no_headers, + N_("Don't show column headers"), + NULL}, {"no-click", 0, G_OPTION_FLAG_REVERSE, G_OPTION_ARG_NONE, &options.list_data.clickable, N_("Disable clickable column headers"), NULL}, + {"no-rules-hint", 0, + G_OPTION_FLAG_REVERSE, + G_OPTION_ARG_NONE, + &options.list_data.rules_hint, + N_("Disable rules hints"), + NULL}, {"separator", 0, G_OPTION_FLAG_NOALIAS, @@ -846,6 +845,18 @@ &options.list_data.tooltip_column, N_("Set the tooltip column"), N_("NUMBER")}, + {"sep-column", 0, + 0, + G_OPTION_ARG_INT, + &options.list_data.sep_column, + N_("Set the row separator column"), + N_("NUMBER")}, + {"sep-value", 0, + 0, + G_OPTION_ARG_STRING, + &options.list_data.sep_value, + N_("Set the row separator value"), + N_("TEXT")}, {"limit", 0, 0, G_OPTION_ARG_INT, @@ -1062,7 +1073,7 @@ N_("Add headers to page"), NULL}, {"add-preview", 0, - 0, + G_OPTION_FLAG_NOALIAS, G_OPTION_ARG_NONE, &options.common_data.preview, N_("Enable preview in print dialog"), @@ -1301,6 +1312,34 @@ {NULL} }; +static GOptionEntry filter_options[] = { + {"file-filter", 0, + 0, + G_OPTION_ARG_CALLBACK, + add_file_filter, + N_("Sets a filename filter"), + N_("NAME | PATTERN1 PATTERN2 ...")}, + {"mime-filter", 0, + 0, + G_OPTION_ARG_CALLBACK, + add_file_filter, + N_("Sets a mime-type filter"), + N_("NAME | MIME1 MIME2 ...")}, + {"image-filter", 0, + G_OPTION_FLAG_OPTIONAL_ARG, + G_OPTION_ARG_CALLBACK, + add_file_filter, + N_("Add filter for images"), + N_("NAME")}, + {"add-preview", 0, + G_OPTION_FLAG_NOALIAS, + G_OPTION_ARG_NONE, + &options.common_data.preview, + N_("Enable preview"), + NULL}, + {NULL} +}; + static GOptionEntry misc_options[] = { {"about", 0, 0, @@ -1560,6 +1599,71 @@ } static gboolean +add_file_filter (const gchar * option_name, const gchar * value, gpointer data, GError ** err) +{ + GtkFileFilter *filter = gtk_file_filter_new (); + + /* add image filter */ + if (strcmp (option_name, "--image-filter") == 0) + { + gtk_file_filter_set_name (filter, value ? value : _("Images")); + gtk_file_filter_add_pixbuf_formats (filter); + options.common_data.filters = g_list_append (options.common_data.filters, filter); + } + else + { + gint i; + gchar **pattern, **patterns; + gchar *name = NULL; + gboolean is_mime = (strcmp (option_name, "--mime-filter") == 0); + + /* Set name */ + for (i = 0; value[i] != '\0'; i++) + { + if (value[i] == '|') + break; + } + + if (value[i] == '|') + name = g_strstrip (g_strndup (value, i)); + + if (name) + { + gtk_file_filter_set_name (filter, name); + + /* Point i to the right position for split */ + for (++i; value[i] == ' '; i++); + } + else + { + gtk_file_filter_set_name (filter, value); + i = 0; + } + + /* Get patterns */ + patterns = g_strsplit_set (value + i, " ", -1); + + if (is_mime) + { + for (pattern = patterns; *pattern; pattern++) + gtk_file_filter_add_mime_type (filter, *pattern); + } + else + { + for (pattern = patterns; *pattern; pattern++) + gtk_file_filter_add_pattern (filter, *pattern); + } + + g_free (name); + g_strfreev (patterns); + + options.common_data.filters = g_list_append (options.common_data.filters, filter); + } + + return TRUE; +} + +static gboolean set_color_mode (const gchar * option_name, const gchar * value, gpointer data, GError ** err) { if (strcasecmp (value, "hex") == 0) @@ -1906,9 +2010,6 @@ options.data.buttons = NULL; options.data.no_buttons = FALSE; options.data.buttons_layout = GTK_BUTTONBOX_END; -#if !GTK_CHECK_VERSION(2,22,0) - options.data.dialog_sep = settings.dlg_sep; -#endif options.data.borders = -1; options.data.no_markup = FALSE; options.data.no_escape = FALSE; @@ -1934,12 +2035,13 @@ options.common_data.multi = FALSE; options.common_data.editable = FALSE; options.common_data.command = NULL; - options.common_data.date_format = "%x"; + options.common_data.date_format = settings.date_format; options.common_data.vertical = FALSE; options.common_data.align = 0.0; options.common_data.listen = FALSE; options.common_data.preview = FALSE; options.common_data.quoted_output = FALSE; + options.common_data.filters = NULL; options.common_data.key = -1; /* Initialize calendar data */ @@ -1950,7 +2052,9 @@ /* Initialize color data */ options.color_data.init_color = NULL; + options.color_data.gtk_palette = FALSE; options.color_data.use_palette = FALSE; + options.color_data.expand_palette = FALSE; options.color_data.palette = NULL; options.color_data.extra = FALSE; options.color_data.alpha = FALSE; @@ -1975,7 +2079,9 @@ options.file_data.save = FALSE; options.file_data.confirm_overwrite = FALSE; options.file_data.confirm_text = N_("File exist. Overwrite?"); - options.file_data.filter = NULL; + options.file_data.file_filt = NULL; + options.file_data.mime_filt = NULL; + options.file_data.image_filt = NULL; /* Initialize font data */ options.font_data.preview = NULL; @@ -2011,11 +2117,14 @@ options.list_data.checkbox = FALSE; options.list_data.radiobox = FALSE; options.list_data.print_all = FALSE; + options.list_data.rules_hint = TRUE; options.list_data.print_column = 0; options.list_data.hide_column = 0; options.list_data.expand_column = -1; // must be -1 for disable expand by default (keep the original behavior) options.list_data.search_column = 0; options.list_data.tooltip_column = 0; + options.list_data.sep_column = 0; + options.list_data.sep_value = NULL; options.list_data.limit = 0; options.list_data.ellipsize = PANGO_ELLIPSIZE_NONE; options.list_data.dclick_action = NULL; @@ -2207,6 +2316,12 @@ g_option_group_set_translation_domain (a_group, GETTEXT_PACKAGE); g_option_context_add_group (tmp_ctx, a_group); + /* Adds file filters option entries */ + a_group = g_option_group_new ("filter", _("File filter options"), _("Show file filter options"), NULL, NULL); + g_option_group_add_entries (a_group, filter_options); + g_option_group_set_translation_domain (a_group, GETTEXT_PACKAGE); + g_option_context_add_group (tmp_ctx, a_group); + /* Adds miscellaneous option entries */ a_group = g_option_group_new ("misc", _("Miscellaneous options"), _("Show miscellaneous options"), NULL, NULL); g_option_group_add_entries (a_group, misc_options); diff -Nru yad-0.30.1/src/text.c yad-0.31.0/src/text.c --- yad-0.30.1/src/text.c 2015-08-27 05:53:27.000000000 +0000 +++ yad-0.31.0/src/text.c 2015-09-09 10:23:29.000000000 +0000 @@ -204,7 +204,7 @@ gtk_text_iter_forward_to_tag_toggle (&end, tag); url = gtk_text_iter_get_text (&start, &end); - cmdline = g_strdup_printf ("xdg-open '%s'", url); + cmdline = g_strdup_printf (settings.open_cmd, url); g_free (url); g_spawn_command_line_async (cmdline, NULL); diff -Nru yad-0.30.1/src/util.c yad-0.31.0/src/util.c --- yad-0.30.1/src/util.c 2015-09-05 04:32:12.000000000 +0000 +++ yad-0.31.0/src/util.c 2015-09-10 07:47:06.000000000 +0000 @@ -26,8 +26,6 @@ #include "yad.h" -#define SETTINGS_FILE "yad.conf" - YadSettings settings; void @@ -41,22 +39,18 @@ settings.timeout = 0; settings.to_indicator = "none"; settings.show_remain = FALSE; - settings.rules_hint = TRUE; settings.always_selected = FALSE; -#if !GTK_CHECK_VERSION(2,22,0) - settings.dlg_sep = FALSE; -#endif settings.combo_always_editable = FALSE; - settings.show_gtk_palette = FALSE; - settings.expand_palette = FALSE; - settings.term = "xterm -e %s"; + settings.term = "xterm -e '%s'"; + settings.open_cmd = "xdg-open '%s'"; + settings.date_format = "%x"; settings.ignore_unknown = TRUE; settings.max_tab = 100; settings.print_settings = NULL; settings.page_setup = NULL; - filename = g_build_filename (g_get_user_config_dir (), SETTINGS_FILE, NULL); + filename = g_build_filename (g_get_user_config_dir (), YAD_SETTINGS_FILE, NULL); if (g_file_test (filename, G_FILE_TEST_EXISTS)) { @@ -64,10 +58,6 @@ if (g_key_file_load_from_file (kf, filename, G_KEY_FILE_NONE, NULL)) { -#if !GTK_CHECK_VERSION(2,22,0) - if (g_key_file_has_key (kf, "General", "dialog_separator", NULL)) - settings.dlg_sep = g_key_file_get_boolean (kf, "General", "dialog_separator", NULL); -#endif if (g_key_file_has_key (kf, "General", "width", NULL)) settings.width = g_key_file_get_integer (kf, "General", "width", NULL); if (g_key_file_has_key (kf, "General", "height", NULL)) @@ -78,18 +68,16 @@ settings.to_indicator = g_key_file_get_string (kf, "General", "timeout_indicator", NULL); if (g_key_file_has_key (kf, "General", "show_remain", NULL)) settings.show_remain = g_key_file_get_boolean (kf, "General", "show_remain", NULL); - if (g_key_file_has_key (kf, "General", "rules_hint", NULL)) - settings.rules_hint = g_key_file_get_boolean (kf, "General", "rules_hint", NULL); if (g_key_file_has_key (kf, "General", "always_selected", NULL)) settings.always_selected = g_key_file_get_boolean (kf, "General", "always_selected", NULL); if (g_key_file_has_key (kf, "General", "combo_always_editable", NULL)) settings.combo_always_editable = g_key_file_get_boolean (kf, "General", "combo_always_editable", NULL); - if (g_key_file_has_key (kf, "General", "show_gtk_palette", NULL)) - settings.show_gtk_palette = g_key_file_get_boolean (kf, "General", "show_gtk_palette", NULL); - if (g_key_file_has_key (kf, "General", "expand_palette", NULL)) - settings.expand_palette = g_key_file_get_boolean (kf, "General", "expand_palette", NULL); if (g_key_file_has_key (kf, "General", "terminal", NULL)) settings.term = g_key_file_get_string (kf, "General", "terminal", NULL); + if (g_key_file_has_key (kf, "General", "open_command", NULL)) + settings.open_cmd = g_key_file_get_string (kf, "General", "open_command", NULL); + if (g_key_file_has_key (kf, "General", "date_format", NULL)) + settings.date_format = g_key_file_get_string (kf, "General", "date_format", NULL); if (g_key_file_has_key (kf, "General", "ignore_unknown_options", NULL)) settings.ignore_unknown = g_key_file_get_boolean (kf, "General", "ignore_unknown_options", NULL); if (g_key_file_has_key (kf, "General", "max_tab", NULL)) @@ -115,37 +103,31 @@ kf = g_key_file_new (); -#if !GTK_CHECK_VERSION(2,22,0) - g_key_file_set_boolean (kf, "General", "dialog_separator", settings.dlg_sep); - g_key_file_set_comment (kf, "General", "dialog_separator", "Enable separator between dialog and buttons", NULL); -#endif g_key_file_set_integer (kf, "General", "width", settings.width); - g_key_file_set_comment (kf, "General", "width", "Default dialog width", NULL); + g_key_file_set_comment (kf, "General", "width", " Default dialog width", NULL); g_key_file_set_integer (kf, "General", "height", settings.height); - g_key_file_set_comment (kf, "General", "height", "Default dialog height", NULL); + g_key_file_set_comment (kf, "General", "height", " Default dialog height", NULL); g_key_file_set_integer (kf, "General", "timeout", settings.timeout); - g_key_file_set_comment (kf, "General", "timeout", "Default timeout (0 for no timeout)", NULL); + g_key_file_set_comment (kf, "General", "timeout", " Default timeout (0 for no timeout)", NULL); g_key_file_set_string (kf, "General", "timeout_indicator", settings.to_indicator); g_key_file_set_comment (kf, "General", "timeout_indicator", - "Position of timeout indicator (top, bottom, left, right, none)", NULL); + " Position of timeout indicator (top, bottom, left, right, none)", NULL); g_key_file_set_boolean (kf, "General", "show_remain", settings.show_remain); - g_key_file_set_comment (kf, "General", "show_remain", "Show remain seconds in timeout indicator", NULL); - g_key_file_set_boolean (kf, "General", "rules_hint", settings.rules_hint); - g_key_file_set_comment (kf, "General", "rules_hint", "Enable rules hints in list widget", NULL); + g_key_file_set_comment (kf, "General", "show_remain", " Show remain seconds in timeout indicator", NULL); g_key_file_set_boolean (kf, "General", "always_selected", settings.always_selected); - g_key_file_set_comment (kf, "General", "always_selected", "List widget always have a selection", NULL); + g_key_file_set_comment (kf, "General", "always_selected", " List widget always have a selection", NULL); g_key_file_set_boolean (kf, "General", "combo_always_editable", settings.combo_always_editable); - g_key_file_set_comment (kf, "General", "combo_always_editable", "Combo-box in entry dialog is always editable", NULL); - g_key_file_set_boolean (kf, "General", "show_gtk_palette", settings.show_gtk_palette); - g_key_file_set_comment (kf, "General", "show_gtk_palette", "Show GtkColorSelection palette", NULL); - g_key_file_set_boolean (kf, "General", "expand_palette", settings.expand_palette); - g_key_file_set_comment (kf, "General", "expand_palette", "Expand list of predefined colors in color dialog", NULL); + g_key_file_set_comment (kf, "General", "combo_always_editable", " Combo-box in entry dialog is always editable", NULL); g_key_file_set_string (kf, "General", "terminal", settings.term); - g_key_file_set_comment (kf, "General", "terminal", "Default terminal command (use %s for command template)", NULL); + g_key_file_set_comment (kf, "General", "terminal", " Default terminal command (use %s for arguments placeholder)", NULL); + g_key_file_set_string (kf, "General", "open_command", settings.open_cmd); + g_key_file_set_comment (kf, "General", "open_command", " Default open command (use %s for arguments placeholder)", NULL); + g_key_file_set_string (kf, "General", "date_format", settings.date_format); + g_key_file_set_comment (kf, "General", "date_format", " Default date format (sett msgfmt(3) for details)", NULL); g_key_file_set_boolean (kf, "General", "ignore_unknown_options", settings.ignore_unknown); - g_key_file_set_comment (kf, "General", "ignore_unknown_options", "Ingnore unknown command-line options", NULL); + g_key_file_set_comment (kf, "General", "ignore_unknown_options", " Ingnore unknown command-line options", NULL); g_key_file_set_integer (kf, "General", "max_tab", settings.max_tab); - g_key_file_set_comment (kf, "General", "max_tab", "Maximum number of tabs in notebook", NULL); + g_key_file_set_comment (kf, "General", "max_tab", " Maximum number of tabs in notebook", NULL); if (settings.print_settings) gtk_print_settings_to_key_file (settings.print_settings, kf, NULL); @@ -158,7 +140,7 @@ if (g_mkdir_with_parents (g_get_user_config_dir (), 0755) != -1) { - gchar *filename = g_build_filename (g_get_user_config_dir (), SETTINGS_FILE, NULL); + gchar *filename = g_build_filename (g_get_user_config_dir (), YAD_SETTINGS_FILE, NULL); g_file_set_contents (filename, context, -1, NULL); g_free (filename); } @@ -205,6 +187,73 @@ return pb; } +void +update_preview (GtkFileChooser * chooser, GtkWidget *p) +{ + gchar *uri; + static gchar *normal_path = NULL; + static gchar *large_path = NULL; + + /* init thumbnails path */ + if (!normal_path) + normal_path = g_build_filename (g_get_user_cache_dir (), "thumbnails", "normal", NULL); + if (!large_path) + large_path = g_build_filename (g_get_user_cache_dir (), "thumbnails", "large", NULL); + + /* load preview */ + uri = gtk_file_chooser_get_preview_uri (chooser); + if (uri) + { + gchar *file; + GChecksum *chs; + GdkPixbuf *pb; + + chs = g_checksum_new (G_CHECKSUM_MD5); + g_checksum_update (chs, uri, -1); + /* first try to get preview from large thumbnail */ + file = g_strdup_printf ("%s/%s.png", large_path, g_checksum_get_string (chs)); + if (g_file_test (file, G_FILE_TEST_EXISTS)) + pb = gdk_pixbuf_new_from_file (file, NULL); + else + { + /* try to get preview from normal thumbnail */ + g_free (file); + file = g_strdup_printf ("%s/%s.png", normal_path, g_checksum_get_string (chs)); + if (g_file_test (file, G_FILE_TEST_EXISTS)) + pb = gdk_pixbuf_new_from_file (file, NULL); + else + { + /* try to create it */ + g_free (file); + file = g_filename_from_uri (uri, NULL, NULL); + pb = gdk_pixbuf_new_from_file_at_size (file, 256, 256, NULL); + g_free (file); + if (pb) + { + /* save thumbnail */ + g_mkdir_with_parents (large_path, 0755); + file = g_strdup_printf ("%s/%s.png", large_path, g_checksum_get_string (chs)); + gdk_pixbuf_save (pb, file, "png", NULL, NULL); + } + } + } + g_checksum_free (chs); + + if (pb) + { + gtk_image_set_from_pixbuf (GTK_IMAGE (p), pb); + g_object_unref (pb); + gtk_file_chooser_set_preview_widget_active (chooser, TRUE); + } + else + gtk_file_chooser_set_preview_widget_active (chooser, FALSE); + + g_free (uri); + } + else + gtk_file_chooser_set_preview_widget_active (chooser, FALSE); +} + gchar ** split_arg (const gchar * str) { diff -Nru yad-0.30.1/src/yad.h yad-0.31.0/src/yad.h --- yad-0.30.1/src/yad.h 2015-09-05 05:06:00.000000000 +0000 +++ yad-0.31.0/src/yad.h 2015-09-10 07:47:06.000000000 +0000 @@ -170,9 +170,6 @@ gchar *dialog_image; gboolean image_on_top; gchar *icon_theme; -#if !GTK_CHECK_VERSION(3,0,0) - gboolean dialog_sep; -#endif gchar *expander; gint borders; GSList *buttons; @@ -203,7 +200,9 @@ typedef struct { gchar *init_color; + gboolean gtk_palette; gboolean use_palette; + gboolean expand_palette; gchar *palette; gboolean extra; gboolean alpha; @@ -231,7 +230,9 @@ gboolean save; gboolean confirm_overwrite; gchar *confirm_text; - gchar **filter; + gchar **file_filt; + gchar **mime_filt; + gchar *image_filt; } YadFileData; typedef struct { @@ -272,11 +273,14 @@ gboolean checkbox; gboolean radiobox; gboolean print_all; + gboolean rules_hint; gint print_column; gint hide_column; gint expand_column; gint search_column; gint tooltip_column; + gint sep_column; + gchar *sep_value; guint limit; PangoEllipsizeMode ellipsize; gchar *dclick_action; @@ -363,6 +367,7 @@ gboolean listen; gboolean preview; gboolean quoted_output; + GList *filters; key_t key; } YadCommonData; @@ -416,24 +421,19 @@ guint timeout; gchar *to_indicator; gboolean show_remain; - gboolean rules_hint; gboolean always_selected; -#if !GTK_CHECK_VERSION(3,0,0) - gboolean dlg_sep; -#endif gboolean combo_always_editable; - gboolean show_gtk_palette; - gboolean expand_palette; gboolean ignore_unknown; GtkIconTheme *icon_theme; GdkPixbuf *big_fallback_image; GdkPixbuf *small_fallback_image; gchar *term; + gchar *open_cmd; + gchar *date_format; guint max_tab; GtkPrintSettings *print_settings; GtkPageSetup *page_setup; - } YadSettings; extern YadSettings settings; @@ -500,6 +500,8 @@ void read_settings (void); void write_settings (void); +void update_preview (GtkFileChooser * chooser, GtkWidget *p); + GdkPixbuf *get_pixbuf (gchar * name, YadIconSize size); gchar **split_arg (const gchar * str); @@ -520,4 +522,5 @@ } G_END_DECLS + #endif /* _YAD_H_ */