Projects
Extra
yad
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 9
View file
yad.changes
Changed
@@ -1,4 +1,18 @@ ------------------------------------------------------------------- +Fri Apr 01 00:00:00 UTC 2011 - detlef@links2linux.de + +- new upstream version <0.10.0> + * fix in markup tooltips in list and icons dialogs + * limits for number of rows in lists + * support for settings row attributes in lists + * vertical and invert scale dialog + * numeric entry + * new font selection dialog + * tagging URIs in text dialog. + * new option --kill-parent for send SIGTERM to parent process + * fix URI handling in dnd dialog + +------------------------------------------------------------------- Sun Mar 13 00:00:00 UTC 2011 - detlef@links2linux.de - new upstream version <0.9.1>
View file
yad.spec
Changed
@@ -1,7 +1,7 @@ # norootforbuild Name: yad -Version: 0.9.1 +Version: 0.10.0 Release: 1 Summary: A fork of Zenity with many improvements
View file
yad-0.9.1.tar.bz2/ChangeLog -> yad-0.10.0.tar.bz2/ChangeLog
Changed
@@ -1,3 +1,158 @@ +2011-03-28 10:34 ananasik + + * src/dnd.c: fix dnd behavior + +2011-03-27 20:13 ananasik + + * configure.ac, src/main.c, src/notification.c: now minimum gtk+ + version is 2.16.0 + +2011-03-27 20:09 ananasik + + * src/dnd.c: dnd broken + +2011-03-27 17:58 ananasik + + * src/dnd.c: some changes in dnd + +2011-03-27 17:19 ananasik + + * po/de.po, po/ru.po, po/sk.po, po/uk.po, src/icons.c, src/list.c, + src/notification.c, src/text.c, src/util.c: add newline char in + error messages + +2011-03-27 17:08 ananasik + + * src/util.c: check for an empty args in (un)escape_markup + +2011-03-27 16:36 ananasik + + * po/sk.po: update slovak translation + +2011-03-27 15:48 ananasik + + * src/dnd.c: + +2011-03-27 15:40 ananasik + + * src/dnd.c: add text/uri-list to dnd targets + +2011-03-27 12:15 ananasik + + * ChangeLog, NEWS: + +2011-03-27 12:12 ananasik + + * ChangeLog, NEWS, src/dnd.c: unescape text in dnd + +2011-03-27 05:34 ananasik + + * data/yad.1, po/de.po, po/ru.po, po/sk.po, po/uk.po, src/main.c, + src/option.c, src/yad.h: add --kil-parent option + +2011-03-24 09:50 ananasik + + * configure.ac, data/yad.1, po/de.po, po/ru.po, po/sk.po, po/uk.po: + update man and translation. prepare to release + +2011-03-24 09:37 ananasik + + * src/text.c: fix handling cursor in text dialog + +2011-03-24 09:06 ananasik + + * src/text.c: + +2011-03-24 08:58 ananasik + + * src/text.c: fix handling utf-8 when linkifying text in text + dialog + +2011-03-24 06:12 ananasik + + * src/text.c: fixes in uri linkifying. wrong work with non-ascii + characters + +2011-03-24 06:03 ananasik + + * src/icons.c, src/list.c, src/text.c, src/yad.h: + +2011-03-23 11:41 ananasik + + * src/text.c: some updates to uri linkify + +2011-03-22 18:49 ananasik + + * src/text.c: + +2011-03-22 18:41 ananasik + + * data/yad.1, data/yad.m4.in, po/uk.po, src/about.c, src/browser.c, + src/calendar.c, src/color.c, src/dnd.c, src/entry.c, src/file.c, + src/font.c, src/icons.c, src/list.c, src/main.c, + src/notification.c, src/option.c, src/progress.c, src/scale.c, + src/text.c, src/util.c, src/yad.h: add --show-uri option to text + dialog (still little broken), update copyright info in sources + +2011-03-22 15:30 ananasik + + * data/yad.1, po/de.po, po/ru.po, po/sk.po, po/uk.po, src/entry.c, + src/list.c, src/option.c, src/yad.h: add FLT type for columns in + list dialog + +2011-03-22 15:17 ananasik + + * data/yad.1, po/de.po, po/ru.po, po/sk.po, po/uk.po, src/list.c, + src/option.c, src/yad.h: add special columns to list dialog + +2011-03-22 12:59 ananasik + + * data/yad.1, po/POTFILES.in, po/de.po, po/ru.po, po/sk.po, + po/uk.po, src/option.c: some updates to previous commit + +2011-03-22 12:49 ananasik + + * configure.ac, src/Makefile.am, src/file.c, src/fileselection.c, + src/font.c, src/main.c, src/option.c, src/text.c, src/yad.h: add + font dialog. --font option in text dialog changed to fontname + +2011-03-22 11:57 ananasik + + * src/option.c: add short option --file for file selection dialog + +2011-03-22 11:50 ananasik + + * data/yad.1, po/de.po, po/ru.po, po/sk.po, po/uk.po, src/option.c, + src/scale.c, src/yad.h: add --vertical and --invert options to + scale dialog + +2011-03-22 11:06 ananasik + + * src/entry.c: add additional check for range values in numeric + entry dialog + +2011-03-22 10:44 ananasik + + * data/yad.1, po/de.po, po/ru.po, po/sk.po, po/uk.po, src/entry.c, + src/option.c, src/yad.h: add --numeric option for entry dialog + +2011-03-22 08:39 ananasik + + * data/yad.1, po/de.po, po/ru.po, po/sk.po, po/uk.po, src/list.c, + src/option.c, src/yad.h: add --limit option to list dialog + +2011-03-17 16:02 ananasik + + * src/util.c: + +2011-03-17 15:49 ananasik + + * src/util.c: + +2011-03-13 07:39 ananasik + + * ChangeLog, NEWS: release 0.9.1 + 2011-03-13 07:33 ananasik * src/icons.c, src/list.c, src/util.c, src/yad.h: fix markup
View file
yad-0.9.1.tar.bz2/NEWS -> yad-0.10.0.tar.bz2/NEWS
Changed
@@ -1,3 +1,14 @@ +Version 0.10.0 + - fix in markup tooltips in list and icons dialogs + - limits for number of rows in lists + - support for settings row attributes in lists + - vertical and invert scale dialog + - numeric entry + - new font selection dialog + - tagging URIs in text dialog + - new option --kill-parent for send SIGTERM to parent process + - fix URI handling in dnd dialog + Version 0.9.1 - fix handle markup for tooltips in list and icons dialogs - add ukrainian and update slovak translations
View file
yad-0.9.1.tar.bz2/aclocal.m4 -> yad-0.10.0.tar.bz2/aclocal.m4
Changed
@@ -1003,8 +1003,8 @@ dnl IT_PROG_INTLTOOL(MINIMUM-VERSION, no-xml) # serial 40 IT_PROG_INTLTOOL AC_DEFUN(IT_PROG_INTLTOOL, -AC_PREREQ(2.50) -AC_REQUIRE(AM_NLS) +AC_PREREQ(2.50)dnl +AC_REQUIRE(AM_NLS)dnl case "$am__api_version" in 1.01234) @@ -1149,7 +1149,7 @@ # AC_DEFUN(IT_PO_SUBDIR, AC_PREREQ(2.53)dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. - +dnl dnl The following CONFIG_COMMANDS should be exetuted at the very end dnl of config.status. AC_CONFIG_COMMANDS_PRE( @@ -1173,7 +1173,7 @@ rm -f "$1/Makefile.tmp" mv "$1/stamp-it.tmp" "$1/stamp-it" ) -) +)dnl ) # _IT_SUBST(VARIABLE)
View file
yad-0.9.1.tar.bz2/configure -> yad-0.10.0.tar.bz2/configure
Changed
@@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.68 for YAD 0.9.1. +# Generated by GNU Autoconf 2.68 for YAD 0.10.0. # # Report bugs to <http://code.google.com/p/yad/issues/entry>. # @@ -560,8 +560,8 @@ # Identity of this package. PACKAGE_NAME='YAD' PACKAGE_TARNAME='yad' -PACKAGE_VERSION='0.9.1' -PACKAGE_STRING='YAD 0.9.1' +PACKAGE_VERSION='0.10.0' +PACKAGE_STRING='YAD 0.10.0' PACKAGE_BUGREPORT='http://code.google.com/p/yad/issues/entry' PACKAGE_URL='http://code.google.com/p/yad' @@ -1311,7 +1311,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.9.1 to adapt to many kinds of systems. +\`configure' configures YAD 0.10.0 to adapt to many kinds of systems. Usage: $0 OPTION... VAR=VALUE... @@ -1377,7 +1377,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of YAD 0.9.1:";; + short | recursive ) echo "Configuration of YAD 0.10.0:";; esac cat <<\_ACEOF @@ -1485,7 +1485,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -YAD configure 0.9.1 +YAD configure 0.10.0 generated by GNU Autoconf 2.68 Copyright (C) 2010 Free Software Foundation, Inc. @@ -1854,7 +1854,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.9.1, which was +It was created by YAD $as_me 0.10.0, which was generated by GNU Autoconf 2.68. Invocation command line was $ $0 $@ @@ -2669,7 +2669,7 @@ # Define the identity of the package. PACKAGE='yad' - VERSION='0.9.1' + VERSION='0.10.0' cat >>confdefs.h <<_ACEOF @@ -3748,8 +3748,6 @@ - - case "$am__api_version" in 1.01234) as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5 @@ -4293,8 +4291,6 @@ - - ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -4963,7 +4959,7 @@ -GTK2_REQUIRED=2.12.0 +GTK2_REQUIRED=2.16.0 GTK3_REQUIRED=2.91.0 @@ -6975,7 +6971,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.9.1, which was +This file was extended by YAD $as_me 0.10.0, which was generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -7042,7 +7038,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.9.1 +YAD config.status 0.10.0 configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\"
View file
yad-0.9.1.tar.bz2/configure.ac -> yad-0.10.0.tar.bz2/configure.ac
Changed
@@ -1,4 +1,4 @@ -AC_INIT(YAD, 0.9.1, http://code.google.com/p/yad/issues/entry, yad, http://code.google.com/p/yad) +AC_INIT(YAD, 0.10.0, http://code.google.com/p/yad/issues/entry, yad, http://code.google.com/p/yad) AM_INIT_AUTOMAKE(1.11 foreign dist-xz no-dist-gzip) AM_SILENT_RULES(yes) @@ -13,7 +13,7 @@ AC_PROG_CC -GTK2_REQUIRED=2.12.0 +GTK2_REQUIRED=2.16.0 GTK3_REQUIRED=2.91.0 PKG_CHECK_MODULES(YAD, gtk+-3.0 >= $GTK3_REQUIRED, gtk3=yes, gtk3=no)
View file
yad-0.9.1.tar.bz2/data/yad.1 -> yad-0.10.0.tar.bz2/data/yad.1
Changed
@@ -1,9 +1,11 @@ -.TH YAD 1 "December 25, 2010" +.TH YAD 1 "Marth 24, 2011" .SH NAME yad \- display GTK+ dialogs + .SH SYNOPSIS .B yad .RI options + .SH DESCRIPTION \fBYAD\fP is a program that will display GTK+ dialogs, and return (either in the return code, or on standard output) the users @@ -11,6 +13,7 @@ from the user, from all manner of shell scripts. .PP \fBYAD\fP is the fork of \fBZenity\fP program. + .SH OPTIONS This program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). @@ -33,9 +36,12 @@ .B \-\-icons Display box with shortcut icons. .TP -.B \-\-file\-selection +.B \-\-file Display file selection dialog. .TP +.B \-\-font +Display font selection dialog. +.TP .B \-\-form Display form dialog .TP @@ -77,6 +83,9 @@ Style of indicator may be set through the gtkrc file. See \fIhttp://code.google.com/p/yad/wiki/TimeoutIndicator\fP for details. .TP +.B \-\-kill-parent +Send SIGTERM to parent process. +.TP .B \-\-text=STRING Set the dialog text. .TP @@ -147,7 +156,7 @@ Set the format for the returned date. .PP -Color options +Color selection options .TP .B \-\-init\-color=COLOR Set initial color value. @@ -183,8 +192,11 @@ .TP .B \-\-editable Allow changes to text in combo-box. +.TP +.B \-\-numeric +Use spin button instead of text entry. Additional parameters in command line treats as minimum and maximum values and step value (in that order). All this values are optional. Default range is from 0 to 65535 with step 1. -Any extra data specified in commndline adds as an items of combo-box entry +Any extra data specified in command line adds as an items of combo-box entry, except of numeric mode. .PP Iconbox options @@ -236,6 +248,15 @@ Optional argument is a text for confirmation dialog. .PP +Font selection options +.TP +.B \-\-fontname=FILENAME +Set the initial font. +.TP +.B \-\-preview +Set the preview text. + +.PP Form options .TP .B \-\-field=LABEL:TYPE @@ -266,10 +287,13 @@ List options .TP .B \-\-column=STRING:TYPE -Set the column header. Types are \fITEXT\fP, \fINUM\fP, \fICHK\fP, \fIIMG\fP or \fITIP\fP. -\fITEXT\fP type is default. \fITIP\fP used for define tooltip column. -Images may be path to image or icon name from currnet GTK+ icon theme. +Set the column header. Types are \fITEXT\fP, \fINUM\fP, \fIFLT\fP, \fICHK\fP, \fIIMG\fP or \fITIP\fP. +\fITEXT\fP type is default. Use \fINUM\fP for integers and \fIFTL\fP for double values. \fITIP\fP is used for define tooltip column. +\fIIMG\fP may be path to image or icon name from currnet GTK+ icon theme. Size of icons may be set in config file. Image field prints as empty value. + +Special column names \fI@fore@\fP, \fI@back@\fP and \fI@font@\fP sets corresponding rows attributes. +Values of those columns don't show in results. .TP .B \-\-checklist Use check boxes for first column. @@ -297,6 +321,9 @@ .TP .B \-\-expand\-column=NUMBER Set the column expandable by default. \fI0\fP sets all columns expandable. +.TP +.B \-\-limit=NUMBER +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. .PP Notification options @@ -355,7 +382,7 @@ .B \-\-back=COLOR Set background color of text .TP -.B \-\-font=FONT +.B \-\-fontname=FONT Set text font. \fIFONT\fP must be in a Pango font description format. .TP .B \-\-wrap @@ -370,6 +397,9 @@ .TP .B \-\-tail Autoscroll to end when new text appears. Works only when text is read from stdin. +.TP +.B \-\-show-uri +Make URI in text clickable. Links opens with \fIxdg-open\fP command. .PP Scale options @@ -391,6 +421,12 @@ .TP .B \-\-hide\-value Hide value. +.TP +.B \-\-vertical +Show vertical scale. +.TP +.B \-\-invert +Invert scale direction. .PP Miscellaneous options
View file
yad-0.9.1.tar.bz2/data/yad.m4.in -> yad-0.10.0.tar.bz2/data/yad.m4.in
Changed
@@ -1,6 +1,6 @@ ## -*- Autoconf -*- # -# Copyright (c) 2010, Vitor Ananjevsky <ananasik@gmail.com> +# Copyright (c) 2008-2011, Vitor Ananjevsky <ananasik@gmail.com> # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it,
View file
yad-0.9.1.tar.bz2/po/POTFILES.in -> yad-0.10.0.tar.bz2/po/POTFILES.in
Changed
@@ -1,7 +1,9 @@ src/about.c src/calendar.c src/entry.c -src/fileselection.c +src/file.c +src/font.c +src/form.c src/icons.c src/main.c src/notification.c @@ -11,6 +13,5 @@ src/progress.c src/color.c src/text.c -src/form.c src/browser.c data/yad-icon-browser.desktop.in
View file
yad-0.9.1.tar.bz2/po/de.po -> yad-0.10.0.tar.bz2/po/de.po
Changed
@@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: yad\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-02-28 12:49+0200\n" +"POT-Creation-Date: 2011-03-28 13:36+0300\n" "PO-Revision-Date: 2009-11-30 16:53+0100\n" "Last-Translator: Manfred Mueller aka Quax<mmueller@live-modules.org>\n" "Language-Team: German translations at Lin2Go <mmueller@live-modules.org>\n" @@ -64,17 +64,41 @@ "\n" "Basiert auf Zenity-Code\n" -#: ../src/icons.c:238 -#, fuzzy, c-format -msgid "Unable to parse file %s: %s" -msgstr "Kann Befehlszeile nicht einlesen: %s\n" +#: ../src/entry.c:93 ../src/scale.c:39 +#, c-format +msgid "Maximum value must be greater than minimum value.\n" +msgstr "Der Maximalwert muß kleiner als der Minimalwert sein.\n" -#: ../src/icons.c:255 +#: ../src/entry.c:99 ../src/scale.c:48 #, c-format -msgid "Unable to open directory %s: %s" +msgid "Initial value less than minimal.\n" msgstr "" -#: ../src/main.c:69 ../src/main.c:167 +#: ../src/entry.c:104 ../src/scale.c:53 +#, fuzzy, c-format +msgid "Initial value greater than maximum.\n" +msgstr "Der Maximalwert muß kleiner als der Minimalwert sein.\n" + +#: ../src/form.c:103 +#, fuzzy +msgid "Select file" +msgstr "Datei öffnen" + +#: ../src/form.c:113 +msgid "Select folder" +msgstr "" + +#: ../src/icons.c:249 +#, fuzzy, c-format +msgid "Unable to parse file %s: %s\n" +msgstr "Kann Befehlszeile nicht einlesen: %s\n" + +#: ../src/icons.c:266 +#, fuzzy, c-format +msgid "Unable to open directory %s: %s\n" +msgstr "Kann Befehlszeile nicht einlesen: %s\n" + +#: ../src/main.c:69 ../src/main.c:163 #, c-format msgid "%d sec" msgstr "" @@ -90,750 +114,798 @@ msgstr "Kann Befehlszeile nicht einlesen: %s\n" #: ../src/notification.c:72 -#, c-format -msgid "Could not load notification icon '%s': %s" +#, fuzzy, c-format +msgid "Could not load notification icon '%s': %s\n" msgstr "Kann Benachrichtigungs-Symbol '%s' nicht laden: %s" -#: ../src/notification.c:244 +#: ../src/notification.c:239 #, c-format msgid "Invalid UTF-8 in tooltip!\n" msgstr "Ungültiger UTF-8 Eintrag im Tool-Tip!\n" -#: ../src/notification.c:297 +#: ../src/notification.c:292 #, c-format msgid "Unknown command '%s'\n" msgstr "Befehl '%s' unbekannt\n" -#: ../src/notification.c:338 ../src/notification.c:340 +#: ../src/notification.c:328 msgid "Yad notification" msgstr "Yad Benachrichtigung" -#: ../src/scale.c:39 -#, c-format -msgid "Maximum value must be greater than minimum value.\n" -msgstr "Der Maximalwert muß kleiner als der Minimalwert sein.\n" - -#: ../src/scale.c:48 -#, c-format -msgid "Initial value less than minimal.\n" -msgstr "" - -#: ../src/scale.c:53 -#, fuzzy, c-format -msgid "Initial value greater than maximum.\n" -msgstr "Der Maximalwert muß kleiner als der Minimalwert sein.\n" - -#: ../src/list.c:406 +#: ../src/list.c:483 msgid "Add row" msgstr "Reihe hinzufügen" -#: ../src/list.c:415 +#: ../src/list.c:492 msgid "Delete row" msgstr "Reihe löschen" -#: ../src/list.c:442 +#: ../src/list.c:521 #, c-format msgid "No column titles specified for List dialog.\n" msgstr "Keine Spaltentitel für Listendialog angegeben\n" -#: ../src/option.c:53 +#: ../src/option.c:54 msgid "Set the dialog title" msgstr "Dialogtitel angeben" -#: ../src/option.c:54 +#: ../src/option.c:55 msgid "TITLE" msgstr "TITEL" -#: ../src/option.c:59 +#: ../src/option.c:60 msgid "Set the window icon" msgstr "Fenster-Symbol angeben" -#: ../src/option.c:60 +#: ../src/option.c:61 msgid "ICONPATH" msgstr "SYMBOLPFAD" -#: ../src/option.c:65 +#: ../src/option.c:66 msgid "Set the width" msgstr "Breite angeben" -#: ../src/option.c:66 +#: ../src/option.c:67 msgid "WIDTH" msgstr "BREITE" -#: ../src/option.c:71 +#: ../src/option.c:72 msgid "Set the height" msgstr "Höhe angeben" -#: ../src/option.c:72 +#: ../src/option.c:73 msgid "HEIGHT" msgstr "HÖHE" -#: ../src/option.c:77 +#: ../src/option.c:78 #, fuzzy msgid "Set the window geometry" msgstr "Fenster-Symbol angeben" -#: ../src/option.c:78 +#: ../src/option.c:79 msgid "WxH+X+Y" msgstr "" -#: ../src/option.c:83 +#: ../src/option.c:84 msgid "Set dialog timeout in seconds" msgstr "Ablaufzeit in Sekunden angeben" -#: ../src/option.c:84 +#: ../src/option.c:85 msgid "TIMEOUT" msgstr "ABLAUFZEIT" -#: ../src/option.c:89 +#: ../src/option.c:90 msgid "Show remaining time indicator (top, bottom, left, right)" msgstr "" -#: ../src/option.c:90 +#: ../src/option.c:91 msgid "POS" msgstr "" -#: ../src/option.c:95 +#: ../src/option.c:96 msgid "Set the dialog text" msgstr "Dialogtext angeben" -#: ../src/option.c:96 ../src/option.c:283 ../src/option.c:289 -#: ../src/option.c:295 ../src/option.c:579 +#: ../src/option.c:97 ../src/option.c:290 ../src/option.c:296 +#: ../src/option.c:302 ../src/option.c:406 ../src/option.c:632 msgid "TEXT" msgstr "TEXT" -#: ../src/option.c:101 +#: ../src/option.c:102 msgid "Set the dialog image" msgstr "Dialog-Symbol angeben" -#: ../src/option.c:102 +#: ../src/option.c:103 msgid "IMAGE" msgstr "SYMBOL" -#: ../src/option.c:107 +#: ../src/option.c:108 msgid "Show image above main widget" msgstr "" -#: ../src/option.c:113 +#: ../src/option.c:114 msgid "Use specified icon theme instead of default" msgstr "" -#: ../src/option.c:114 +#: ../src/option.c:115 msgid "THEME" msgstr "" -#: ../src/option.c:119 +#: ../src/option.c:120 msgid "Add dialog button (may be used multiple times)" msgstr "Dialog-Schaltfläche hinzufügen (Auch mehrmals)" -#: ../src/option.c:120 +#: ../src/option.c:121 msgid "NAME:ID" msgstr "NAME:ID" -#: ../src/option.c:125 +#: ../src/option.c:126 msgid "Don't show buttons" msgstr "" -#: ../src/option.c:131 +#: ../src/option.c:132 msgid "Don't use pango markup language in dialog's text" msgstr "" -#: ../src/option.c:138 +#: ../src/option.c:139 msgid "Add separator between dialog and buttons" msgstr "Leerraum zwischen Dialog und Schaltflächen" -#: ../src/option.c:145 +#: ../src/option.c:146 msgid "Always print result" msgstr "" -#: ../src/option.c:152 +#: ../src/option.c:153 msgid "Set window sticky" msgstr "Fenster fixieren" -#: ../src/option.c:158 +#: ../src/option.c:159 msgid "Set window unresizable" msgstr "Fenster-Größe fixieren" -#: ../src/option.c:164 +#: ../src/option.c:165 msgid "Place window on top" msgstr "Als oberstes Fenster anzeigen" -#: ../src/option.c:170 +#: ../src/option.c:171 msgid "Place window on center of screen" msgstr "Fenster auf Bildschirm zentrieren" -#: ../src/option.c:176 +#: ../src/option.c:177 #, fuzzy msgid "Place window at the mouse position" msgstr "Als oberstes Fenster anzeigen" -#: ../src/option.c:182 +#: ../src/option.c:183 msgid "Set window undecorated" msgstr "Fenster-Dekoration entfernen" -#: ../src/option.c:192 +#: ../src/option.c:189 +msgid "Send TERM to parent" +msgstr "" + +#: ../src/option.c:199 msgid "Display calendar dialog" msgstr "Kalender-Dialog" -#: ../src/option.c:198 +#: ../src/option.c:205 msgid "Set the calendar day" msgstr "Kalender-Tag angeben" -#: ../src/option.c:199 +#: ../src/option.c:206 msgid "DAY" msgstr "TAG" -#: ../src/option.c:204 +#: ../src/option.c:211 msgid "Set the calendar month" msgstr "Kalender-Monat angeben" -#: ../src/option.c:205 +#: ../src/option.c:212 msgid "MONTH" msgstr "MONAT" -#: ../src/option.c:210 +#: ../src/option.c:217 msgid "Set the calendar year" msgstr "Kalender-Jahr angeben" -#: ../src/option.c:211 +#: ../src/option.c:218 msgid "YEAR" msgstr "Jahr" -#: ../src/option.c:216 +#: ../src/option.c:223 msgid "Set the format for the returned date" msgstr "Format des angezeigten Datums angeben" -#: ../src/option.c:217 ../src/option.c:440 +#: ../src/option.c:224 ../src/option.c:487 msgid "PATTERN" msgstr "FORMAT" -#: ../src/option.c:226 +#: ../src/option.c:233 msgid "Display color selection dialog" msgstr "Farbwahl-Dialog" -#: ../src/option.c:232 +#: ../src/option.c:239 msgid "Alias for --color" msgstr "" -#: ../src/option.c:238 +#: ../src/option.c:245 msgid "Set initial color value" msgstr "Wert der Anfangsfarbe angeben" -#: ../src/option.c:239 ../src/option.c:672 ../src/option.c:678 +#: ../src/option.c:246 ../src/option.c:737 ../src/option.c:743 msgid "COLOR" msgstr "FARBE" -#: ../src/option.c:244 +#: ../src/option.c:251 msgid "Set path to palette file. Default - " msgstr "" -#: ../src/option.c:245 ../src/option.c:323 ../src/option.c:714 +#: ../src/option.c:252 ../src/option.c:342 ../src/option.c:779 msgid "FILENAME" msgstr "DATEINAME" -#: ../src/option.c:250 +#: ../src/option.c:257 msgid "Use #rrrrggggbbbb format instead of #rrggbb" msgstr "#rrrrggggbbbb statt #rrggbb benutzen" -#: ../src/option.c:260 +#: ../src/option.c:267 #, fuzzy msgid "Display drag-n-drop box" msgstr "Kalender-Dialog" -#: ../src/option.c:266 +#: ../src/option.c:273 msgid "Set command for process d-n-d data" msgstr "" -#: ../src/option.c:267 ../src/option.c:545 +#: ../src/option.c:274 ../src/option.c:598 msgid "CMD" msgstr "" -#: ../src/option.c:276 +#: ../src/option.c:283 msgid "Display text entry or combo-box dialog" msgstr "Texteingabefeld oder Auswahlfeld" -#: ../src/option.c:282 +#: ../src/option.c:289 msgid "Set the entry label" msgstr "Eintrags-Bezeichnung angeben" -#: ../src/option.c:288 +#: ../src/option.c:295 msgid "Set the entry text" msgstr "Eintrags-Text angeben" -#: ../src/option.c:294 +#: ../src/option.c:301 msgid "Hide the entry text" msgstr "Eintrags-Text verbergen" -#: ../src/option.c:300 +#: ../src/option.c:307 msgid "Use completion instead of combo-box" msgstr "Vervollständigen statt Auswahlfeld verwenden" -#: ../src/option.c:306 +#: ../src/option.c:313 +#, fuzzy +msgid "Use spin button for text entry" +msgstr "Bestimmte Schriftart benutzen" + +#: ../src/option.c:319 msgid "Allow changes to text in combo-box" msgstr "Text-Änderungen im Auswahlfeld erlauben" -#: ../src/option.c:316 +#: ../src/option.c:329 msgid "Display file selection dialog" msgstr "Datei-Auswahlfeld" -#: ../src/option.c:322 +#: ../src/option.c:335 +msgid "Alias for --file" +msgstr "" + +#: ../src/option.c:341 msgid "Set the filename" msgstr "Dateinamen angeben" -#: ../src/option.c:328 +#: ../src/option.c:347 msgid "Allow multiple files to be selected" msgstr "Auswahl mehrerer Dateien erlauben" -#: ../src/option.c:334 +#: ../src/option.c:353 msgid "Activate directory-only selection" msgstr "Nur Verzeichnis-Auswahl aktivieren" -#: ../src/option.c:340 +#: ../src/option.c:359 msgid "Activate save mode" msgstr "Sicheren Modus aktivieren" -#: ../src/option.c:346 ../src/option.c:386 ../src/option.c:492 +#: ../src/option.c:365 ../src/option.c:433 ../src/option.c:539 msgid "Set output separator character" msgstr "Ausgabe-Trennzeichen angeben" -#: ../src/option.c:347 ../src/option.c:387 ../src/option.c:393 -#: ../src/option.c:493 ../src/option.c:557 ../src/option.c:563 +#: ../src/option.c:366 ../src/option.c:434 ../src/option.c:440 +#: ../src/option.c:540 ../src/option.c:610 ../src/option.c:616 msgid "SEPARATOR" msgstr "Trennzeichen" -#: ../src/option.c:352 +#: ../src/option.c:371 msgid "Confirm file selection if filename already exists" msgstr "Datei-Auswahl bei bestehender Datei bestätigen" -#: ../src/option.c:353 +#: ../src/option.c:372 #, fuzzy msgid "TEXT" msgstr "TEXT" -#: ../src/option.c:358 +#: ../src/option.c:377 msgid "Sets a filename filter" msgstr "Dateinames-Filter angeben" -#: ../src/option.c:359 +#: ../src/option.c:378 msgid "NAME | PATTERN1 PATTERN2 ..." msgstr "NAME | MUSTER1 MUSTER2 ..." -#: ../src/option.c:368 +#: ../src/option.c:387 +#, fuzzy +msgid "Display font selection dialog" +msgstr "Datei-Auswahlfeld" + +#: ../src/option.c:393 +msgid "Alias for --font" +msgstr "" + +#: ../src/option.c:399 +#, fuzzy +msgid "Set initial font" +msgstr "Anfangs-Prozentsatz angeben" + +#: ../src/option.c:400 ../src/option.c:749 +msgid "FONTNAME" +msgstr "SCHRIFTART" + +#: ../src/option.c:405 +#, fuzzy +msgid "Set preview text" +msgstr "Text für Fortschrittsbalken angeben" + +#: ../src/option.c:415 msgid "Display form dialog" msgstr "Formular-Dialog" -#: ../src/option.c:374 +#: ../src/option.c:421 msgid "Add field to form (TYPE - H, RO, NUM, CHK, CB, FL, DIR, FN or CLR)" msgstr "" -#: ../src/option.c:375 +#: ../src/option.c:422 msgid "LABEL:TYPE" msgstr "" -#: ../src/option.c:380 +#: ../src/option.c:427 msgid "Set alignment of fileds labels (left, center or right)" msgstr "" -#: ../src/option.c:381 ../src/option.c:696 +#: ../src/option.c:428 ../src/option.c:761 msgid "TYPE" msgstr "" -#: ../src/option.c:392 +#: ../src/option.c:439 #, fuzzy msgid "Set separator character for combobox or scale data" msgstr "Ausgabe-Trennzeichen angeben" -#: ../src/option.c:402 +#: ../src/option.c:449 #, fuzzy msgid "Display icons box dialog" msgstr "Listen-Dialog" -#: ../src/option.c:408 +#: ../src/option.c:455 msgid "Read data from .desktop files in specified directory" msgstr "" -#: ../src/option.c:409 +#: ../src/option.c:456 msgid "DIRECTORY" msgstr "" -#: ../src/option.c:414 +#: ../src/option.c:461 msgid "Use compact (list) view" msgstr "" -#: ../src/option.c:420 +#: ../src/option.c:467 msgid "Use GenericName field instead of Name for icon label" msgstr "" -#: ../src/option.c:426 +#: ../src/option.c:473 #, fuzzy msgid "Read data from stdin" msgstr "Alle Werte der Liste" -#: ../src/option.c:432 +#: ../src/option.c:479 #, fuzzy msgid "Set the width of dialog items" msgstr "Dialogtitel angeben" -#: ../src/option.c:439 +#: ../src/option.c:486 #, no-c-format msgid "" "Use specified pattern for launch command in terminal (default: xterm -e %s)" msgstr "" -#: ../src/option.c:445 +#: ../src/option.c:492 msgid "Sort items by name instead of filename" msgstr "" -#: ../src/option.c:451 +#: ../src/option.c:498 msgid "Sort items in descending order" msgstr "" -#: ../src/option.c:461 +#: ../src/option.c:508 msgid "Display list dialog" msgstr "Listen-Dialog" -#: ../src/option.c:467 +#: ../src/option.c:514 #, fuzzy msgid "Don't show column headers" msgstr "Spalten-Bezeichnung angeben" -#: ../src/option.c:473 -msgid "Set the column header (TYPE - TEXT, NUM, CHK, IMG or TIP)" +#: ../src/option.c:520 +msgid "Set the column header (TYPE - TEXT, NUM, FLT, CHK, IMG or TIP)" msgstr "" -#: ../src/option.c:474 +#: ../src/option.c:521 #, fuzzy msgid "COLUMN:TYPE" msgstr "SPALTE" -#: ../src/option.c:479 +#: ../src/option.c:526 msgid "Use check boxes for first column" msgstr "Ankreuzfeld für erste Spalte benutzen" -#: ../src/option.c:485 +#: ../src/option.c:532 msgid "Alias to checklist (deprecated)" msgstr "Alias für Ankreuzfeld (veraltet)" -#: ../src/option.c:498 +#: ../src/option.c:545 msgid "Allow multiple rows to be selected" msgstr "Auswahl mehrerer Reihen erlauben" -#: ../src/option.c:504 ../src/option.c:719 +#: ../src/option.c:551 ../src/option.c:784 msgid "Allow changes to text" msgstr "Textänderungen erlauben" -#: ../src/option.c:510 +#: ../src/option.c:557 msgid "Print all data from list" msgstr "Alle Werte der Liste" -#: ../src/option.c:516 +#: ../src/option.c:563 #, fuzzy msgid "" "Print a specific column. By default or if 0 is specified will be printed all " "columns" msgstr "Bestimmte Spalte ausgeben (Standard=1 - Alle=0)" -#: ../src/option.c:517 ../src/option.c:523 ../src/option.c:529 +#: ../src/option.c:564 ../src/option.c:570 ../src/option.c:576 +#: ../src/option.c:582 msgid "NUMBER" msgstr "ZAHL" -#: ../src/option.c:522 +#: ../src/option.c:569 msgid "Hide a specific column" msgstr "Bestimmte Spalte verbergen" -#: ../src/option.c:528 +#: ../src/option.c:575 msgid "Set the column expandable by default. 0 sets all columns expandable" msgstr "" -#: ../src/option.c:538 +#: ../src/option.c:581 +#, fuzzy +msgid "Set the limit of rows in list" +msgstr "Dialogtitel angeben" + +#: ../src/option.c:591 msgid "Display notification" msgstr "Benachrichtigung" -#: ../src/option.c:544 +#: ../src/option.c:597 msgid "Set left-click action" msgstr "" -#: ../src/option.c:550 +#: ../src/option.c:603 #, fuzzy msgid "Listen for commands on stdin" msgstr "Auf Befehle von stdin warten" -#: ../src/option.c:556 +#: ../src/option.c:609 #, fuzzy msgid "Set separator character for menu values" msgstr "Ausgabe-Trennzeichen angeben" -#: ../src/option.c:562 +#: ../src/option.c:615 #, fuzzy msgid "Set separator character for menu items" msgstr "Ausgabe-Trennzeichen angeben" -#: ../src/option.c:572 +#: ../src/option.c:625 msgid "Display progress indication dialog" msgstr "Fortschrittsbalken" -#: ../src/option.c:578 +#: ../src/option.c:631 msgid "Set progress text" msgstr "Text für Fortschrittsbalken angeben" -#: ../src/option.c:584 +#: ../src/option.c:637 msgid "Set initial percentage" msgstr "Anfangs-Prozentsatz angeben" -#: ../src/option.c:585 +#: ../src/option.c:638 msgid "PERCENTAGE" msgstr "Prozentsatz" -#: ../src/option.c:590 +#: ../src/option.c:643 msgid "Pulsate progress bar" msgstr "Pulsierender Fortschrittsbalken" -#: ../src/option.c:597 +#: ../src/option.c:650 #, no-c-format msgid "Dismiss the dialog when 100% has been reached" msgstr "Dialog bei Erreichen von 100% beenden" -#: ../src/option.c:603 +#: ../src/option.c:656 msgid "Kill parent process if cancel button is pressed" msgstr "Hauptprozess bei Klick auf Abbrechen beenden" -#: ../src/option.c:609 +#: ../src/option.c:662 msgid "Right-To-Left progress bar direction" msgstr "" -#: ../src/option.c:619 +#: ../src/option.c:672 msgid "Display scale dialog" msgstr "Schieberegler" -#: ../src/option.c:625 +#: ../src/option.c:678 msgid "Set initial value" msgstr "Anfangswert angeben" -#: ../src/option.c:626 ../src/option.c:632 ../src/option.c:638 -#: ../src/option.c:644 +#: ../src/option.c:679 ../src/option.c:685 ../src/option.c:691 +#: ../src/option.c:697 msgid "VALUE" msgstr "WERT" -#: ../src/option.c:631 +#: ../src/option.c:684 msgid "Set minimum value" msgstr "Minimal-Wert angeben" -#: ../src/option.c:637 +#: ../src/option.c:690 msgid "Set maximum value" msgstr "Maximal-Wert angeben" -#: ../src/option.c:643 +#: ../src/option.c:696 msgid "Set step size" msgstr "Abstände angeben" -#: ../src/option.c:649 +#: ../src/option.c:702 msgid "Print partial values" msgstr "Teilwerte ausgeben" -#: ../src/option.c:655 +#: ../src/option.c:708 msgid "Hide value" msgstr "Wert verbergen" -#: ../src/option.c:665 +#: ../src/option.c:714 +msgid "Show vertical scale" +msgstr "" + +#: ../src/option.c:720 +msgid "Invert direction" +msgstr "" + +#: ../src/option.c:730 msgid "Display text information dialog" msgstr "Textinformations-Dialog" -#: ../src/option.c:671 +#: ../src/option.c:736 #, fuzzy msgid "Use specified color for text" msgstr "Bestimmte Schriftart benutzen" -#: ../src/option.c:677 +#: ../src/option.c:742 #, fuzzy msgid "Use specified color for background" msgstr "Bestimmte Schriftart benutzen" -#: ../src/option.c:683 +#: ../src/option.c:748 msgid "Use specified font" msgstr "Bestimmte Schriftart benutzen" -#: ../src/option.c:684 -msgid "FONTNAME" -msgstr "SCHRIFTART" - -#: ../src/option.c:689 +#: ../src/option.c:754 #, fuzzy msgid "Enable text wrapping" msgstr "Textumbruch nicht aktivieren" -#: ../src/option.c:695 +#: ../src/option.c:760 msgid "Set justification (TYPE - left, right, center or fill)" msgstr "" -#: ../src/option.c:701 +#: ../src/option.c:766 msgid "Set text margins" msgstr "" -#: ../src/option.c:702 +#: ../src/option.c:767 msgid "SIZE" msgstr "" -#: ../src/option.c:707 +#: ../src/option.c:772 msgid "Autoscroll to end of text" msgstr "" -#: ../src/option.c:713 +#: ../src/option.c:778 msgid "Open file" msgstr "Datei öffnen" -#: ../src/option.c:729 +#: ../src/option.c:790 +msgid "Make URI clickable" +msgstr "" + +#: ../src/option.c:800 msgid "Show about dialog" msgstr "Über-Dialog" -#: ../src/option.c:735 +#: ../src/option.c:806 msgid "Print version" msgstr "Version" -#: ../src/option.c:879 +#: ../src/option.c:961 #, fuzzy, c-format msgid "Unknown align type: %s\n" msgstr "Befehl '%s' unbekannt\n" -#: ../src/option.c:898 +#: ../src/option.c:980 #, c-format msgid "Unknown justification type: %s\n" msgstr "" -#: ../src/option.c:1012 +#: ../src/option.c:1099 msgid "File exist. Overwrite?" msgstr "" -#: ../src/option.c:1072 +#: ../src/option.c:1165 msgid "Yet another dialoging program" msgstr "Nur ein anderes Dialog-Programm" #. Adds general option entries -#: ../src/option.c:1076 +#: ../src/option.c:1169 msgid "General options" msgstr "Allgemeine Einstellungen" -#: ../src/option.c:1077 +#: ../src/option.c:1170 msgid "Show general options" msgstr "Allgemeine Einstellungen anzeigen" #. Adds calendar option entries -#: ../src/option.c:1083 +#: ../src/option.c:1176 msgid "Calendar options" msgstr "Kalender-Einstellungen" -#: ../src/option.c:1084 +#: ../src/option.c:1177 msgid "Show calendar options" msgstr "Kalender-Einstellungen anzeigen" #. Adds color option entries -#: ../src/option.c:1090 -msgid "Color options" -msgstr "Farb-Einstellungen" +#: ../src/option.c:1183 +#, fuzzy +msgid "Color selection options" +msgstr "Dateiauswahl-Einstellungen" -#: ../src/option.c:1091 -msgid "Show color options" -msgstr "Farb-Einstellungen anzeigen" +#: ../src/option.c:1184 +#, fuzzy +msgid "Show color selection options" +msgstr "Dateiauswahl-Einstellungen anzeigen" #. Adds dnd option entries -#: ../src/option.c:1097 +#: ../src/option.c:1190 #, fuzzy msgid "DND options" msgstr "Formular-Einstellungen" -#: ../src/option.c:1098 +#: ../src/option.c:1191 #, fuzzy msgid "Show drag-n-drop options" msgstr "Kalender-Einstellungen anzeigen" #. Adds entry option entries -#: ../src/option.c:1104 +#: ../src/option.c:1197 msgid "Text entry options" msgstr "Textfeld-Einstellungen" -#: ../src/option.c:1105 +#: ../src/option.c:1198 msgid "Show text entry options" msgstr "Textfeld-Einstellungen anzeigen" #. Adds file selection option entries -#: ../src/option.c:1111 +#: ../src/option.c:1204 msgid "File selection options" msgstr "Dateiauswahl-Einstellungen" -#: ../src/option.c:1112 +#: ../src/option.c:1205 msgid "Show file selection options" msgstr "Dateiauswahl-Einstellungen anzeigen" +#. Add font selection option entries +#: ../src/option.c:1211 +#, fuzzy +msgid "Font selection options" +msgstr "Dateiauswahl-Einstellungen" + +#: ../src/option.c:1212 +#, fuzzy +msgid "Show font selection options" +msgstr "Dateiauswahl-Einstellungen anzeigen" + #. Add form option entries -#: ../src/option.c:1118 +#: ../src/option.c:1218 msgid "Form options" msgstr "Formular-Einstellungen" -#: ../src/option.c:1119 +#: ../src/option.c:1219 msgid "Show form options" msgstr "Formular-Einstellungen anzeigen" #. Add icons option entries -#: ../src/option.c:1125 +#: ../src/option.c:1225 #, fuzzy msgid "Icons box options" msgstr "Farb-Einstellungen" -#: ../src/option.c:1126 +#: ../src/option.c:1226 #, fuzzy msgid "Show icons box options" msgstr "Farb-Einstellungen anzeigen" #. Adds list option entries -#: ../src/option.c:1132 +#: ../src/option.c:1232 msgid "List options" msgstr "Listen-Einstellungen" -#: ../src/option.c:1133 +#: ../src/option.c:1233 msgid "Show list options" msgstr "Listen-Einstellungen anzeigen" #. Adds notification option entries -#: ../src/option.c:1139 +#: ../src/option.c:1239 msgid "Notification icon options" msgstr "Benachrichtigungssymbol-Einstellungen" -#: ../src/option.c:1140 +#: ../src/option.c:1240 msgid "Show notification icon options" msgstr "Benachrichtigungssymbol-Einstellungen" #. Adds progress option entries -#: ../src/option.c:1146 +#: ../src/option.c:1246 msgid "Progress options" msgstr "Fortschrittsbalken-Einstellungen" -#: ../src/option.c:1147 +#: ../src/option.c:1247 msgid "Show progress options" msgstr "Fortschrittsbalken-Einstellungen anzeigen" #. Adds scale option entries -#: ../src/option.c:1153 +#: ../src/option.c:1253 msgid "Scale options" msgstr "Schieberegler-Einstellungen" -#: ../src/option.c:1154 +#: ../src/option.c:1254 msgid "Show scale options" msgstr "Schieberegler-Einstellungen anzeigen" #. Adds text option entries -#: ../src/option.c:1160 +#: ../src/option.c:1260 msgid "Text information options" msgstr "Informationstext-Einstellungen" -#: ../src/option.c:1161 +#: ../src/option.c:1261 msgid "Show text information options" msgstr "Informationstext-Einstellungen anzeigen" #. Adds miscellaneous option entries -#: ../src/option.c:1167 +#: ../src/option.c:1267 msgid "Miscellaneous options" msgstr "Verschiedene Einstellungen" -#: ../src/option.c:1168 +#: ../src/option.c:1268 msgid "Show miscellaneous options" msgstr "Verschiedene Einstellungen anzeigen" @@ -855,25 +927,16 @@ msgid "Name" msgstr "" -#: ../src/text.c:128 +#: ../src/text.c:243 #, c-format msgid "Cannot open file '%s': %s\n" msgstr "" -#: ../src/text.c:158 +#: ../src/text.c:273 #, c-format msgid "Invalid UTF-8 data encountered reading file %s\n" msgstr "" -#: ../src/form.c:99 -#, fuzzy -msgid "Select file" -msgstr "Datei öffnen" - -#: ../src/form.c:109 -msgid "Select folder" -msgstr "" - #: ../src/browser.c:127 msgid "scalable " msgstr "" @@ -915,6 +978,12 @@ msgid "Inspect GTK Icon Theme" msgstr "" +#~ msgid "Color options" +#~ msgstr "Farb-Einstellungen" + +#~ msgid "Show color options" +#~ msgstr "Farb-Einstellungen anzeigen" + #~ msgid "Value out of range.\n" #~ msgstr "Wert außerhalb des Bereiches.\n"
View file
yad-0.9.1.tar.bz2/po/ru.po -> yad-0.10.0.tar.bz2/po/ru.po
Changed
@@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: YAD\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-02-28 12:49+0200\n" +"POT-Creation-Date: 2011-03-28 13:36+0300\n" "PO-Revision-Date: 2009-04-30 16:47+0300\n" "Last-Translator: Victor Ananjevsky <ananasik@gmail.com>\n" "Language-Team: Russian\n" @@ -66,17 +66,40 @@ "\n" "Основан на коде Zenity\n" -#: ../src/icons.c:238 +#: ../src/entry.c:93 ../src/scale.c:39 #, c-format -msgid "Unable to parse file %s: %s" -msgstr "Не могу разобрать файл %s: %s" +msgid "Maximum value must be greater than minimum value.\n" +msgstr "Максимальное значение должно быть больше, чем минимальное.\n" -#: ../src/icons.c:255 +#: ../src/entry.c:99 ../src/scale.c:48 #, c-format -msgid "Unable to open directory %s: %s" -msgstr "Не могу открыть каталог %s: %s" +msgid "Initial value less than minimal.\n" +msgstr "Начальное значение меньше минимального.\n" -#: ../src/main.c:69 ../src/main.c:167 +#: ../src/entry.c:104 ../src/scale.c:53 +#, c-format +msgid "Initial value greater than maximum.\n" +msgstr "Начальное значение больше маскимального.\n" + +#: ../src/form.c:103 +msgid "Select file" +msgstr "Выбрать файл" + +#: ../src/form.c:113 +msgid "Select folder" +msgstr "Выбрать каталог" + +#: ../src/icons.c:249 +#, c-format +msgid "Unable to parse file %s: %s\n" +msgstr "Не могу разобрать файл %s: %s\n" + +#: ../src/icons.c:266 +#, c-format +msgid "Unable to open directory %s: %s\n" +msgstr "Не могу открыть каталог %s: %s\n" + +#: ../src/main.c:69 ../src/main.c:163 #, c-format msgid "%d sec" msgstr "%d сек" @@ -93,383 +116,400 @@ #: ../src/notification.c:72 #, c-format -msgid "Could not load notification icon '%s': %s" -msgstr "Не удается загрузить иконку '%s': %s" +msgid "Could not load notification icon '%s': %s\n" +msgstr "Не удается загрузить иконку '%s': %s\n" -#: ../src/notification.c:244 +#: ../src/notification.c:239 #, c-format msgid "Invalid UTF-8 in tooltip!\n" msgstr "Неверная последовательность UTF-8 в подсказке!\n" -#: ../src/notification.c:297 +#: ../src/notification.c:292 #, c-format msgid "Unknown command '%s'\n" msgstr "Неизвестная команда '%s'\n" -#: ../src/notification.c:338 ../src/notification.c:340 +#: ../src/notification.c:328 msgid "Yad notification" msgstr "Диалог уведомлений" -#: ../src/scale.c:39 -#, c-format -msgid "Maximum value must be greater than minimum value.\n" -msgstr "Максимальное значение должно быть больше, чем минимальное.\n" - -#: ../src/scale.c:48 -#, c-format -msgid "Initial value less than minimal.\n" -msgstr "Начальное значение меньше минимального.\n" - -#: ../src/scale.c:53 -#, c-format -msgid "Initial value greater than maximum.\n" -msgstr "Начальное значение больше маскимального.\n" - -#: ../src/list.c:406 +#: ../src/list.c:483 msgid "Add row" msgstr "Добавить строку" -#: ../src/list.c:415 +#: ../src/list.c:492 msgid "Delete row" msgstr "Удалить строку" -#: ../src/list.c:442 +#: ../src/list.c:521 #, c-format msgid "No column titles specified for List dialog.\n" msgstr "Не заданы заголовоки колонок для диалога со списком\n" -#: ../src/option.c:53 +#: ../src/option.c:54 msgid "Set the dialog title" msgstr "Задать заголовок диалога" -#: ../src/option.c:54 +#: ../src/option.c:55 msgid "TITLE" msgstr "ЗАГОЛОВОК" -#: ../src/option.c:59 +#: ../src/option.c:60 msgid "Set the window icon" msgstr "Задать значок диалога" -#: ../src/option.c:60 +#: ../src/option.c:61 msgid "ICONPATH" msgstr "ЗНАЧОК" -#: ../src/option.c:65 +#: ../src/option.c:66 msgid "Set the width" msgstr "Задать ширину окна" -#: ../src/option.c:66 +#: ../src/option.c:67 msgid "WIDTH" msgstr "ШИРИНА" -#: ../src/option.c:71 +#: ../src/option.c:72 msgid "Set the height" msgstr "Задать высоту окна" -#: ../src/option.c:72 +#: ../src/option.c:73 msgid "HEIGHT" msgstr "ВЫСОТА" -#: ../src/option.c:77 +#: ../src/option.c:78 msgid "Set the window geometry" msgstr "Задать геометрию окна" -#: ../src/option.c:78 +#: ../src/option.c:79 msgid "WxH+X+Y" msgstr "ВxШ+X+Y" -#: ../src/option.c:83 +#: ../src/option.c:84 msgid "Set dialog timeout in seconds" msgstr "Задать время работы диалога в секундах" -#: ../src/option.c:84 +#: ../src/option.c:85 msgid "TIMEOUT" msgstr "ЗАДЕРЖКА" -#: ../src/option.c:89 +#: ../src/option.c:90 msgid "Show remaining time indicator (top, bottom, left, right)" msgstr "Показать индикатор задержки (top, bottom, left, right)" -#: ../src/option.c:90 +#: ../src/option.c:91 msgid "POS" msgstr "ПОЗИЦИЯ" -#: ../src/option.c:95 +#: ../src/option.c:96 msgid "Set the dialog text" msgstr "Задать текст диалога" -#: ../src/option.c:96 ../src/option.c:283 ../src/option.c:289 -#: ../src/option.c:295 ../src/option.c:579 +#: ../src/option.c:97 ../src/option.c:290 ../src/option.c:296 +#: ../src/option.c:302 ../src/option.c:406 ../src/option.c:632 msgid "TEXT" msgstr "ТЕКСТ" -#: ../src/option.c:101 +#: ../src/option.c:102 msgid "Set the dialog image" msgstr "Задать картинку диалога" -#: ../src/option.c:102 +#: ../src/option.c:103 msgid "IMAGE" msgstr "КАРТИНКА" -#: ../src/option.c:107 +#: ../src/option.c:108 msgid "Show image above main widget" msgstr "Показывать картинку над основным виджетом" -#: ../src/option.c:113 +#: ../src/option.c:114 msgid "Use specified icon theme instead of default" msgstr "Использовать указанную тему иконок" -#: ../src/option.c:114 +#: ../src/option.c:115 msgid "THEME" msgstr "ТЕМА" -#: ../src/option.c:119 +#: ../src/option.c:120 msgid "Add dialog button (may be used multiple times)" msgstr "Добавить кнопку (может использоваться несколько раз)" -#: ../src/option.c:120 +#: ../src/option.c:121 msgid "NAME:ID" msgstr "ИМЯ:ID" -#: ../src/option.c:125 +#: ../src/option.c:126 msgid "Don't show buttons" msgstr "Не показывать кнопки" -#: ../src/option.c:131 +#: ../src/option.c:132 msgid "Don't use pango markup language in dialog's text" msgstr "Не использовать разметку pango в тексте" -#: ../src/option.c:138 +#: ../src/option.c:139 msgid "Add separator between dialog and buttons" msgstr "Добавить разделитель между диалогом и кнопками" -#: ../src/option.c:145 +#: ../src/option.c:146 msgid "Always print result" msgstr "Всегда выводить результат" -#: ../src/option.c:152 +#: ../src/option.c:153 msgid "Set window sticky" msgstr "Окно видимо на всех рабочих столах" -#: ../src/option.c:158 +#: ../src/option.c:159 msgid "Set window unresizable" msgstr "Неизменяемый размер" -#: ../src/option.c:164 +#: ../src/option.c:165 msgid "Place window on top" msgstr "Разместить окно поверх остальных" -#: ../src/option.c:170 +#: ../src/option.c:171 msgid "Place window on center of screen" msgstr "Разместить окно в центре экрана" -#: ../src/option.c:176 +#: ../src/option.c:177 msgid "Place window at the mouse position" msgstr "Разместить окно под указателем мыши" -#: ../src/option.c:182 +#: ../src/option.c:183 msgid "Set window undecorated" msgstr "Убрать обрамление" -#: ../src/option.c:192 +#: ../src/option.c:189 +msgid "Send TERM to parent" +msgstr "Послать TERM родителю" + +#: ../src/option.c:199 msgid "Display calendar dialog" msgstr "Отобразить диалог для выбора даты" -#: ../src/option.c:198 +#: ../src/option.c:205 msgid "Set the calendar day" msgstr "Задать день календаря" -#: ../src/option.c:199 +#: ../src/option.c:206 msgid "DAY" msgstr "ДЕНЬ" -#: ../src/option.c:204 +#: ../src/option.c:211 msgid "Set the calendar month" msgstr "Задать месяц календаря" -#: ../src/option.c:205 +#: ../src/option.c:212 msgid "MONTH" msgstr "МЕСЯЦ" -#: ../src/option.c:210 +#: ../src/option.c:217 msgid "Set the calendar year" msgstr "Задать год календаря" -#: ../src/option.c:211 +#: ../src/option.c:218 msgid "YEAR" msgstr "ГОД" -#: ../src/option.c:216 +#: ../src/option.c:223 msgid "Set the format for the returned date" msgstr "Задать формат возвращаемой даты" -#: ../src/option.c:217 ../src/option.c:440 +#: ../src/option.c:224 ../src/option.c:487 msgid "PATTERN" msgstr "ШАБЛОН" -#: ../src/option.c:226 +#: ../src/option.c:233 msgid "Display color selection dialog" msgstr "Отобразить диалог для выбора цвета" -#: ../src/option.c:232 +#: ../src/option.c:239 msgid "Alias for --color" msgstr "Синоним для --color" -#: ../src/option.c:238 +#: ../src/option.c:245 msgid "Set initial color value" msgstr "Задать начальное значение цвета" -#: ../src/option.c:239 ../src/option.c:672 ../src/option.c:678 +#: ../src/option.c:246 ../src/option.c:737 ../src/option.c:743 msgid "COLOR" msgstr "ЦВЕТ" -#: ../src/option.c:244 +#: ../src/option.c:251 msgid "Set path to palette file. Default - " msgstr "Задать путь к файлу цветов. По-умолчанию - " -#: ../src/option.c:245 ../src/option.c:323 ../src/option.c:714 +#: ../src/option.c:252 ../src/option.c:342 ../src/option.c:779 msgid "FILENAME" msgstr "ИМЯ_ФАЙЛА" -#: ../src/option.c:250 +#: ../src/option.c:257 msgid "Use #rrrrggggbbbb format instead of #rrggbb" msgstr "Использовать формат #rrrrggggbbbb вместо #rrggbb" -#: ../src/option.c:260 +#: ../src/option.c:267 msgid "Display drag-n-drop box" msgstr "Отобразить диалог для перехвата dnd" -#: ../src/option.c:266 +#: ../src/option.c:273 msgid "Set command for process d-n-d data" msgstr "Команда для обработки полученных данных" -#: ../src/option.c:267 ../src/option.c:545 +#: ../src/option.c:274 ../src/option.c:598 msgid "CMD" msgstr "КОМАНДА" -#: ../src/option.c:276 +#: ../src/option.c:283 msgid "Display text entry or combo-box dialog" msgstr "Отобразить диалог для ввода текста или выбора варианта" -#: ../src/option.c:282 +#: ../src/option.c:289 msgid "Set the entry label" msgstr "Задать метку поля ввода" -#: ../src/option.c:288 +#: ../src/option.c:295 msgid "Set the entry text" msgstr "Задать текст по умолчанию для ввода" -#: ../src/option.c:294 +#: ../src/option.c:301 msgid "Hide the entry text" msgstr "Прятать введенный текст (Пароль)" -#: ../src/option.c:300 +#: ../src/option.c:307 msgid "Use completion instead of combo-box" msgstr "Использовать автодополнение вместо списка значений" -#: ../src/option.c:306 +#: ../src/option.c:313 +msgid "Use spin button for text entry" +msgstr "Использовать числовое поле вместо текста" + +#: ../src/option.c:319 msgid "Allow changes to text in combo-box" msgstr "Разрешить изменять текст в режиме выбора варианта" -#: ../src/option.c:316 +#: ../src/option.c:329 msgid "Display file selection dialog" msgstr "Отобразить диалог для выбора файла" -#: ../src/option.c:322 +#: ../src/option.c:335 +msgid "Alias for --file" +msgstr "Синоним для --file" + +#: ../src/option.c:341 msgid "Set the filename" msgstr "Задать имя файла" -#: ../src/option.c:328 +#: ../src/option.c:347 msgid "Allow multiple files to be selected" msgstr "Разрешить выбор нескольких файлов" -#: ../src/option.c:334 +#: ../src/option.c:353 msgid "Activate directory-only selection" msgstr "Активировать выделение только по каталогам" -#: ../src/option.c:340 +#: ../src/option.c:359 msgid "Activate save mode" msgstr "Активировать режим сохранения" -#: ../src/option.c:346 ../src/option.c:386 ../src/option.c:492 +#: ../src/option.c:365 ../src/option.c:433 ../src/option.c:539 msgid "Set output separator character" msgstr "Установить выходной разделяющий символ" -#: ../src/option.c:347 ../src/option.c:387 ../src/option.c:393 -#: ../src/option.c:493 ../src/option.c:557 ../src/option.c:563 +#: ../src/option.c:366 ../src/option.c:434 ../src/option.c:440 +#: ../src/option.c:540 ../src/option.c:610 ../src/option.c:616 msgid "SEPARATOR" msgstr "РАЗДЕЛИТЕЛЬ" -#: ../src/option.c:352 +#: ../src/option.c:371 msgid "Confirm file selection if filename already exists" msgstr "Подтверждать выбор файла, если файл уже существует" -#: ../src/option.c:353 +#: ../src/option.c:372 msgid "TEXT" msgstr "ТЕКСТ" -#: ../src/option.c:358 +#: ../src/option.c:377 msgid "Sets a filename filter" msgstr "Задать фильтр файлов" -#: ../src/option.c:359 +#: ../src/option.c:378 msgid "NAME | PATTERN1 PATTERN2 ..." msgstr "ИМЯ | ШАБЛОН1 ШАБЛОН2 ..." -#: ../src/option.c:368 +#: ../src/option.c:387 +msgid "Display font selection dialog" +msgstr "Отобразить диалог для выбора шрифта" + +#: ../src/option.c:393 +msgid "Alias for --font" +msgstr "Синоним для --font" + +#: ../src/option.c:399 +msgid "Set initial font" +msgstr "Задать начальный шрифт" + +#: ../src/option.c:400 ../src/option.c:749 +msgid "FONTNAME" +msgstr "ИМЯ_ШРИФТА" + +#: ../src/option.c:405 +msgid "Set preview text" +msgstr "Задать текст образца" + +#: ../src/option.c:415 msgid "Display form dialog" msgstr "Отобразить диалог формы ввода" -#: ../src/option.c:374 +#: ../src/option.c:421 msgid "Add field to form (TYPE - H, RO, NUM, CHK, CB, FL, DIR, FN or CLR)" msgstr "" "Добавить поле к форме (Тип поля: Н, RO, NUM, CHK, CB, FL, DIR, FN или CLR)" -#: ../src/option.c:375 +#: ../src/option.c:422 msgid "LABEL:TYPE" msgstr "МЕТКА:ТИП" -#: ../src/option.c:380 +#: ../src/option.c:427 msgid "Set alignment of fileds labels (left, center or right)" msgstr "Задать выравнивание меток полей (left, center или right)" -#: ../src/option.c:381 ../src/option.c:696 +#: ../src/option.c:428 ../src/option.c:761 msgid "TYPE" msgstr "ТИП" -#: ../src/option.c:392 +#: ../src/option.c:439 msgid "Set separator character for combobox or scale data" msgstr "Установить раздяеляющий символ для данных списка или числового поля" -#: ../src/option.c:402 +#: ../src/option.c:449 msgid "Display icons box dialog" msgstr "Отобразить диалог со значками быстрого доступа" -#: ../src/option.c:408 +#: ../src/option.c:455 msgid "Read data from .desktop files in specified directory" msgstr "Читать данные из .desktop файлов в определенном каталоге" -#: ../src/option.c:409 +#: ../src/option.c:456 msgid "DIRECTORY" msgstr "КАТАЛОГ" -#: ../src/option.c:414 +#: ../src/option.c:461 msgid "Use compact (list) view" msgstr "Использовать компактный вид (список)" -#: ../src/option.c:420 +#: ../src/option.c:467 msgid "Use GenericName field instead of Name for icon label" msgstr "Использовать поле GenericName вместо Name для метки" -#: ../src/option.c:426 +#: ../src/option.c:473 msgid "Read data from stdin" msgstr "Читать данные со стандартного ввода" -#: ../src/option.c:432 +#: ../src/option.c:479 msgid "Set the width of dialog items" msgstr "Задать ширину элемента диалога" -#: ../src/option.c:439 +#: ../src/option.c:486 #, no-c-format msgid "" "Use specified pattern for launch command in terminal (default: xterm -e %s)" @@ -477,51 +517,51 @@ "Использовать указанный шаблон для запуска в терминале (по умолчанию: xterm -" "e %s)" -#: ../src/option.c:445 +#: ../src/option.c:492 msgid "Sort items by name instead of filename" msgstr "Сортировать по полю Имя вместо имени файла" -#: ../src/option.c:451 +#: ../src/option.c:498 msgid "Sort items in descending order" msgstr "Сортировать в убывающем порядке" -#: ../src/option.c:461 +#: ../src/option.c:508 msgid "Display list dialog" msgstr "Отобразить диалог со списком" -#: ../src/option.c:467 +#: ../src/option.c:514 msgid "Don't show column headers" msgstr "Не показывать заголовки колонок" -#: ../src/option.c:473 -msgid "Set the column header (TYPE - TEXT, NUM, CHK, IMG or TIP)" -msgstr "Задать заголовок столбца (ТИП - TEXT, NUM, CHK, IMG или TIP)" +#: ../src/option.c:520 +msgid "Set the column header (TYPE - TEXT, NUM, FLT, CHK, IMG or TIP)" +msgstr "Задать заголовок столбца (ТИП - TEXT, NUM, FLT, CHK, IMG или TIP)" -#: ../src/option.c:474 +#: ../src/option.c:521 msgid "COLUMN:TYPE" msgstr "СТОЛБЕЦ:ТИП" -#: ../src/option.c:479 +#: ../src/option.c:526 msgid "Use check boxes for first column" msgstr "Использовать флажки для первой колонки" -#: ../src/option.c:485 +#: ../src/option.c:532 msgid "Alias to checklist (deprecated)" msgstr "Синоним для checklist" -#: ../src/option.c:498 +#: ../src/option.c:545 msgid "Allow multiple rows to be selected" msgstr "Разрешить выбор нескольких строк" -#: ../src/option.c:504 ../src/option.c:719 +#: ../src/option.c:551 ../src/option.c:784 msgid "Allow changes to text" msgstr "Разрешить изменять текст" -#: ../src/option.c:510 +#: ../src/option.c:557 msgid "Print all data from list" msgstr "Печатать таблицу полностью" -#: ../src/option.c:516 +#: ../src/option.c:563 msgid "" "Print a specific column. By default or if 0 is specified will be printed all " "columns" @@ -529,299 +569,321 @@ "Распечатать только определённый столбец. По-умолчанию или если столбец равен " "0, будут распечатаны все столбцы" -#: ../src/option.c:517 ../src/option.c:523 ../src/option.c:529 +#: ../src/option.c:564 ../src/option.c:570 ../src/option.c:576 +#: ../src/option.c:582 msgid "NUMBER" msgstr "ЧИСЛО" -#: ../src/option.c:522 +#: ../src/option.c:569 msgid "Hide a specific column" msgstr "Скрыть указанный столбец" -#: ../src/option.c:528 +#: ../src/option.c:575 msgid "Set the column expandable by default. 0 sets all columns expandable" msgstr "" "Задать колонку, расширяемую по-умолчанию. 0 устанавливает расширяемыми все " "колонки" -#: ../src/option.c:538 +#: ../src/option.c:581 +msgid "Set the limit of rows in list" +msgstr "Задать количество строк в списке" + +#: ../src/option.c:591 msgid "Display notification" msgstr "Отобразить диалог уведомления" -#: ../src/option.c:544 +#: ../src/option.c:597 msgid "Set left-click action" msgstr "Действие по левому щелчку мыши" -#: ../src/option.c:550 +#: ../src/option.c:603 msgid "Listen for commands on stdin" msgstr "Воспринимать команды со стандартного ввода" -#: ../src/option.c:556 +#: ../src/option.c:609 msgid "Set separator character for menu values" msgstr "Установить разделяющий символ для значений меню" -#: ../src/option.c:562 +#: ../src/option.c:615 msgid "Set separator character for menu items" msgstr "Установить разделяющий символ для элементов меню" -#: ../src/option.c:572 +#: ../src/option.c:625 msgid "Display progress indication dialog" msgstr "Отобразить диалог хода процесса" -#: ../src/option.c:578 +#: ../src/option.c:631 msgid "Set progress text" msgstr "Показывать текст на индикаторе" -#: ../src/option.c:584 +#: ../src/option.c:637 msgid "Set initial percentage" msgstr "Задать начальный процент" -#: ../src/option.c:585 +#: ../src/option.c:638 msgid "PERCENTAGE" msgstr "ПРОЦЕНТЫ" -#: ../src/option.c:590 +#: ../src/option.c:643 msgid "Pulsate progress bar" msgstr "Пульсирующий индикатор прогресса" -#: ../src/option.c:597 +#: ../src/option.c:650 #, no-c-format msgid "Dismiss the dialog when 100% has been reached" msgstr "Закрыть диалог когда дойдет до 100%" -#: ../src/option.c:603 +#: ../src/option.c:656 msgid "Kill parent process if cancel button is pressed" msgstr "Завершить родительский процесс, если нажата кнопка отмены" -#: ../src/option.c:609 +#: ../src/option.c:662 msgid "Right-To-Left progress bar direction" msgstr "Направление индикатора Справа-Налево" -#: ../src/option.c:619 +#: ../src/option.c:672 msgid "Display scale dialog" msgstr "Отобразить диалог масштаба" -#: ../src/option.c:625 +#: ../src/option.c:678 msgid "Set initial value" msgstr "Задать начальное значение" -#: ../src/option.c:626 ../src/option.c:632 ../src/option.c:638 -#: ../src/option.c:644 +#: ../src/option.c:679 ../src/option.c:685 ../src/option.c:691 +#: ../src/option.c:697 msgid "VALUE" msgstr "ЗНАЧЕНИЕ" -#: ../src/option.c:631 +#: ../src/option.c:684 msgid "Set minimum value" msgstr "Задать минимальное значение" -#: ../src/option.c:637 +#: ../src/option.c:690 msgid "Set maximum value" msgstr "Задать максимальное значение" -#: ../src/option.c:643 +#: ../src/option.c:696 msgid "Set step size" msgstr "Задать шаг" -#: ../src/option.c:649 +#: ../src/option.c:702 msgid "Print partial values" msgstr "Печатать частичные значения" -#: ../src/option.c:655 +#: ../src/option.c:708 msgid "Hide value" msgstr "Скрыть величину" -#: ../src/option.c:665 +#: ../src/option.c:714 +msgid "Show vertical scale" +msgstr "Показывать вертикальную шкалу" + +#: ../src/option.c:720 +msgid "Invert direction" +msgstr "Инвертировать направление" + +#: ../src/option.c:730 msgid "Display text information dialog" msgstr "Отобразить диалог с текстовой информацией" -#: ../src/option.c:671 +#: ../src/option.c:736 msgid "Use specified color for text" msgstr "Использовать указанный цвет текста" -#: ../src/option.c:677 +#: ../src/option.c:742 msgid "Use specified color for background" msgstr "Использовать указанный цвет фона" -#: ../src/option.c:683 +#: ../src/option.c:748 msgid "Use specified font" msgstr "Использовать указанный шрифт" -#: ../src/option.c:684 -msgid "FONTNAME" -msgstr "ИМЯ_ШРИФТА" - -#: ../src/option.c:689 +#: ../src/option.c:754 msgid "Enable text wrapping" msgstr "Разрешить перенос текста" -#: ../src/option.c:695 +#: ../src/option.c:760 msgid "Set justification (TYPE - left, right, center or fill)" msgstr "Установить выравнивание (ТИП - left, right, center или fill)" -#: ../src/option.c:701 +#: ../src/option.c:766 msgid "Set text margins" msgstr "Установить отступы" -#: ../src/option.c:702 +#: ../src/option.c:767 msgid "SIZE" msgstr "РАЗМЕР" -#: ../src/option.c:707 +#: ../src/option.c:772 msgid "Autoscroll to end of text" msgstr "Автопрокрутка в конец текста" -#: ../src/option.c:713 +#: ../src/option.c:778 msgid "Open file" msgstr "Открыть файл" -#: ../src/option.c:729 +#: ../src/option.c:790 +msgid "Make URI clickable" +msgstr "Сделать ссылки активными" + +#: ../src/option.c:800 msgid "Show about dialog" msgstr "Показать диалог 'О программе'" -#: ../src/option.c:735 +#: ../src/option.c:806 msgid "Print version" msgstr "Вывести версию" -#: ../src/option.c:879 +#: ../src/option.c:961 #, c-format msgid "Unknown align type: %s\n" msgstr "Неизвестный тип выравнивания: %s\n" -#: ../src/option.c:898 +#: ../src/option.c:980 #, c-format msgid "Unknown justification type: %s\n" msgstr "Неизвестный тип выравнивания: %s\n" -#: ../src/option.c:1012 +#: ../src/option.c:1099 msgid "File exist. Overwrite?" msgstr "Файл существует. Перезаписать?" -#: ../src/option.c:1072 +#: ../src/option.c:1165 msgid "Yet another dialoging program" msgstr "Программа для отображения диалогов" #. Adds general option entries -#: ../src/option.c:1076 +#: ../src/option.c:1169 msgid "General options" msgstr "Основные параметры" -#: ../src/option.c:1077 +#: ../src/option.c:1170 msgid "Show general options" msgstr "Показывать основные параметры" #. Adds calendar option entries -#: ../src/option.c:1083 +#: ../src/option.c:1176 msgid "Calendar options" msgstr "Параметры календаря" -#: ../src/option.c:1084 +#: ../src/option.c:1177 msgid "Show calendar options" msgstr "Показывать параметры календаря" #. Adds color option entries -#: ../src/option.c:1090 -msgid "Color options" +#: ../src/option.c:1183 +msgid "Color selection options" msgstr "Параметры диалога выбора цвета" -#: ../src/option.c:1091 -msgid "Show color options" +#: ../src/option.c:1184 +msgid "Show color selection options" msgstr "Показывать параметры диалога выбора цвета" #. Adds dnd option entries -#: ../src/option.c:1097 +#: ../src/option.c:1190 msgid "DND options" msgstr "Параметры DND" -#: ../src/option.c:1098 +#: ../src/option.c:1191 msgid "Show drag-n-drop options" msgstr "Показывать параметры dnd" #. Adds entry option entries -#: ../src/option.c:1104 +#: ../src/option.c:1197 msgid "Text entry options" msgstr "Параметры ввода текста" -#: ../src/option.c:1105 +#: ../src/option.c:1198 msgid "Show text entry options" msgstr "Показывать параметры ввода текста" #. Adds file selection option entries -#: ../src/option.c:1111 +#: ../src/option.c:1204 msgid "File selection options" msgstr "Параметры диалога выбора файла" -#: ../src/option.c:1112 +#: ../src/option.c:1205 msgid "Show file selection options" msgstr "Показывать параметры диалога выбора файлов" +#. Add font selection option entries +#: ../src/option.c:1211 +msgid "Font selection options" +msgstr "Параметры диалога выбора шрифта" + +#: ../src/option.c:1212 +msgid "Show font selection options" +msgstr "Показывать параметры диалога выбора шрифта" + #. Add form option entries -#: ../src/option.c:1118 +#: ../src/option.c:1218 msgid "Form options" msgstr "Параметры диалога формы" -#: ../src/option.c:1119 +#: ../src/option.c:1219 msgid "Show form options" msgstr "Показывать параметры диалога формы" #. Add icons option entries -#: ../src/option.c:1125 +#: ../src/option.c:1225 msgid "Icons box options" msgstr "Параметры диалога значков" -#: ../src/option.c:1126 +#: ../src/option.c:1226 msgid "Show icons box options" msgstr "Показывать параметры диалога значков быстрого доступа" #. Adds list option entries -#: ../src/option.c:1132 +#: ../src/option.c:1232 msgid "List options" msgstr "Параметры списка" -#: ../src/option.c:1133 +#: ../src/option.c:1233 msgid "Show list options" msgstr "Показывать параметры списка" #. Adds notification option entries -#: ../src/option.c:1139 +#: ../src/option.c:1239 msgid "Notification icon options" msgstr "Параметры значка уведомления" -#: ../src/option.c:1140 +#: ../src/option.c:1240 msgid "Show notification icon options" msgstr "Показывать параметры значка уведомления" #. Adds progress option entries -#: ../src/option.c:1146 +#: ../src/option.c:1246 msgid "Progress options" msgstr "Параметры хода процесса" -#: ../src/option.c:1147 +#: ../src/option.c:1247 msgid "Show progress options" msgstr "Показывать параметры хода процесса" #. Adds scale option entries -#: ../src/option.c:1153 +#: ../src/option.c:1253 msgid "Scale options" msgstr "Параметры масштаба" -#: ../src/option.c:1154 +#: ../src/option.c:1254 msgid "Show scale options" msgstr "Показывать параметры масштаба" #. Adds text option entries -#: ../src/option.c:1160 +#: ../src/option.c:1260 msgid "Text information options" msgstr "Параметры текстовой информации" -#: ../src/option.c:1161 +#: ../src/option.c:1261 msgid "Show text information options" msgstr "Показывать параметры текстовой информации" #. Adds miscellaneous option entries -#: ../src/option.c:1167 +#: ../src/option.c:1267 msgid "Miscellaneous options" msgstr "Дополнительные параметры" -#: ../src/option.c:1168 +#: ../src/option.c:1268 msgid "Show miscellaneous options" msgstr "Показывать дополнительные параметры" @@ -843,24 +905,16 @@ msgid "Name" msgstr "Название" -#: ../src/text.c:128 +#: ../src/text.c:243 #, c-format msgid "Cannot open file '%s': %s\n" msgstr "Не могу открыть файл %s: %s\n" -#: ../src/text.c:158 +#: ../src/text.c:273 #, c-format msgid "Invalid UTF-8 data encountered reading file %s\n" msgstr "Неверная последователньость UTF-8 при чтении файла %s\n" -#: ../src/form.c:99 -msgid "Select file" -msgstr "Выбрать файл" - -#: ../src/form.c:109 -msgid "Select folder" -msgstr "Выбрать каталог" - #: ../src/browser.c:127 msgid "scalable " msgstr "масштабируемый "
View file
yad-0.9.1.tar.bz2/po/sk.po -> yad-0.10.0.tar.bz2/po/sk.po
Changed
@@ -8,8 +8,8 @@ msgstr "" "Project-Id-Version: YAD 0.6.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-02-28 12:49+0200\n" -"PO-Revision-Date: 2011-02-28 18:50+0100\n" +"POT-Creation-Date: 2011-03-28 13:36+0300\n" +"PO-Revision-Date: 2011-03-27 18:30+0200\n" "Last-Translator: Slavko <linux@slavino.sk>\n" "Language-Team: Slovak <nomail>\n" "Language: \n" @@ -64,17 +64,40 @@ "\n" "Založený na kóde Zenity\n" -#: ../src/icons.c:238 +#: ../src/entry.c:93 ../src/scale.c:39 #, c-format -msgid "Unable to parse file %s: %s" -msgstr "Nemožno spracovať súbor %s: %s" +msgid "Maximum value must be greater than minimum value.\n" +msgstr "Maximálna hodnota musí byť väčšia ako minimálna.\n" + +#: ../src/entry.c:99 ../src/scale.c:48 +#, c-format +msgid "Initial value less than minimal.\n" +msgstr "Počiatočná hodnota je menšia ako minimálna.\n" + +#: ../src/entry.c:104 ../src/scale.c:53 +#, c-format +msgid "Initial value greater than maximum.\n" +msgstr "Maximálna hodnota je väčšia ako minimálna.\n" + +#: ../src/form.c:103 +msgid "Select file" +msgstr "Vyberte súbor" + +#: ../src/form.c:113 +msgid "Select folder" +msgstr "Vyberte pole" + +#: ../src/icons.c:249 +#, c-format +msgid "Unable to parse file %s: %s\n" +msgstr "Nemožno spracovať súbor %s: %s\n" -#: ../src/icons.c:255 +#: ../src/icons.c:266 #, c-format -msgid "Unable to open directory %s: %s" -msgstr "Nemožno otvoriť adresár %s: %s" +msgid "Unable to open directory %s: %s\n" +msgstr "Nemožno otvoriť adresár %s: %s\n" -#: ../src/main.c:69 ../src/main.c:167 +#: ../src/main.c:69 ../src/main.c:163 #, c-format msgid "%d sec" msgstr "%d s" @@ -91,433 +114,450 @@ #: ../src/notification.c:72 #, c-format -msgid "Could not load notification icon '%s': %s" -msgstr "Nemožno načítať ikonu upozornenia '%s': %s" +msgid "Could not load notification icon '%s': %s\n" +msgstr "Nemožno načítať ikonu upozornenia '%s': %s\n" -#: ../src/notification.c:244 +#: ../src/notification.c:239 #, c-format msgid "Invalid UTF-8 in tooltip!\n" msgstr "Neplatné UTF-8 v nástrojovom tipe!\n" -#: ../src/notification.c:297 +#: ../src/notification.c:292 #, c-format msgid "Unknown command '%s'\n" msgstr "Neznámy príkaz '%s'\n" -#: ../src/notification.c:338 ../src/notification.c:340 +#: ../src/notification.c:328 msgid "Yad notification" msgstr "Yad upozornenie" -#: ../src/scale.c:39 -#, c-format -msgid "Maximum value must be greater than minimum value.\n" -msgstr "Maximálna hodnota musí byť väčšia ako minimálna.\n" - -#: ../src/scale.c:48 -#, c-format -msgid "Initial value less than minimal.\n" -msgstr "Počiatočná hodnota je menšia ako minimálna.\n" - -#: ../src/scale.c:53 -#, c-format -msgid "Initial value greater than maximum.\n" -msgstr "Maximálna hodnota je väčšia ako minimálna.\n" - -#: ../src/list.c:406 +#: ../src/list.c:483 msgid "Add row" msgstr "Pridať riadok" -#: ../src/list.c:415 +#: ../src/list.c:492 msgid "Delete row" msgstr "Odstrániť riadok" -#: ../src/list.c:442 +#: ../src/list.c:521 #, c-format msgid "No column titles specified for List dialog.\n" msgstr "Neboli zadané mená stĺpcov pre dialóg Zoznam.\n" -#: ../src/option.c:53 +#: ../src/option.c:54 msgid "Set the dialog title" msgstr "Nastaviť názov dialógu" -#: ../src/option.c:54 +#: ../src/option.c:55 msgid "TITLE" msgstr "NÁZOV" -#: ../src/option.c:59 +#: ../src/option.c:60 msgid "Set the window icon" msgstr "Nastaviť ikonu okna" -#: ../src/option.c:60 +#: ../src/option.c:61 msgid "ICONPATH" msgstr "CESTA_IKON" -#: ../src/option.c:65 +#: ../src/option.c:66 msgid "Set the width" msgstr "Nastaviť šírku" -#: ../src/option.c:66 +#: ../src/option.c:67 msgid "WIDTH" msgstr "ŠÍRKA" -#: ../src/option.c:71 +#: ../src/option.c:72 msgid "Set the height" msgstr "Nastaviť šírku" -#: ../src/option.c:72 +#: ../src/option.c:73 msgid "HEIGHT" msgstr "VÝŠKA" -#: ../src/option.c:77 +#: ../src/option.c:78 msgid "Set the window geometry" msgstr "Nastaviť geometriu okna" -#: ../src/option.c:78 +#: ../src/option.c:79 msgid "WxH+X+Y" msgstr "WxH+X+Y" -#: ../src/option.c:83 +#: ../src/option.c:84 msgid "Set dialog timeout in seconds" msgstr "Nastaviť časový limit dialógu s" -#: ../src/option.c:84 +#: ../src/option.c:85 msgid "TIMEOUT" msgstr "ČASLIMIT" -#: ../src/option.c:89 +#: ../src/option.c:90 msgid "Show remaining time indicator (top, bottom, left, right)" msgstr "Zobraziť indikátor zostávajúceho času (top, bottom, left, right)" -#: ../src/option.c:90 +#: ../src/option.c:91 msgid "POS" msgstr "POZÍCIA" -#: ../src/option.c:95 +#: ../src/option.c:96 msgid "Set the dialog text" msgstr "Nastaviť text dialógu" -#: ../src/option.c:96 ../src/option.c:283 ../src/option.c:289 -#: ../src/option.c:295 ../src/option.c:579 +#: ../src/option.c:97 ../src/option.c:290 ../src/option.c:296 +#: ../src/option.c:302 ../src/option.c:406 ../src/option.c:632 msgid "TEXT" msgstr "TEXT" -#: ../src/option.c:101 +#: ../src/option.c:102 msgid "Set the dialog image" msgstr "Nastaviť obrázok dialógu" -#: ../src/option.c:102 +#: ../src/option.c:103 msgid "IMAGE" msgstr "OBRÁZOK" -#: ../src/option.c:107 +#: ../src/option.c:108 msgid "Show image above main widget" msgstr "Zobraziť obrázok nad hlavným widgetom" -#: ../src/option.c:113 +#: ../src/option.c:114 msgid "Use specified icon theme instead of default" msgstr "Použiť zadanú tému ikon, namiesto predvolenej" -#: ../src/option.c:114 +#: ../src/option.c:115 msgid "THEME" msgstr "TÉMA" -#: ../src/option.c:119 +#: ../src/option.c:120 msgid "Add dialog button (may be used multiple times)" msgstr "Pridať tlačidlo dialógu (možno použiť viackrát)" -#: ../src/option.c:120 +#: ../src/option.c:121 msgid "NAME:ID" msgstr "MENO:ID" -#: ../src/option.c:125 +#: ../src/option.c:126 msgid "Don't show buttons" msgstr "Nezobrazovať tlačidlá" -#: ../src/option.c:131 +#: ../src/option.c:132 msgid "Don't use pango markup language in dialog's text" msgstr "Nepoužívať značkovací jazyk pango v texte dialógu" -#: ../src/option.c:138 +#: ../src/option.c:139 msgid "Add separator between dialog and buttons" msgstr "Pridať oddeľovač medzi dialóg a tlačidlá" -#: ../src/option.c:145 +#: ../src/option.c:146 msgid "Always print result" msgstr "Vždy vypísať výsledok" -#: ../src/option.c:152 +#: ../src/option.c:153 msgid "Set window sticky" msgstr "Prilepiť okno na všetky plochy" -#: ../src/option.c:158 +#: ../src/option.c:159 msgid "Set window unresizable" msgstr "Nastaviť pevnú veľkosť okna" -#: ../src/option.c:164 +#: ../src/option.c:165 msgid "Place window on top" msgstr "Umiestniť okno na vrchole" -#: ../src/option.c:170 +#: ../src/option.c:171 msgid "Place window on center of screen" msgstr "Umiestniť okno doprostred plochy" -#: ../src/option.c:176 +#: ../src/option.c:177 msgid "Place window at the mouse position" msgstr "Umiestniť okno na pozícii myši" -#: ../src/option.c:182 +#: ../src/option.c:183 msgid "Set window undecorated" msgstr "Odobrať dekorácie okna" -#: ../src/option.c:192 +#: ../src/option.c:189 +msgid "Send TERM to parent" +msgstr "Poslať TERM rodičovi" + +#: ../src/option.c:199 msgid "Display calendar dialog" msgstr "Zobraziť dialóg Kalendár" -#: ../src/option.c:198 +#: ../src/option.c:205 msgid "Set the calendar day" msgstr "Nastaviť deň kalendára" -#: ../src/option.c:199 +#: ../src/option.c:206 msgid "DAY" msgstr "DEŇ" -#: ../src/option.c:204 +#: ../src/option.c:211 msgid "Set the calendar month" msgstr "nastaviť mesiac kalendára" -#: ../src/option.c:205 +#: ../src/option.c:212 msgid "MONTH" msgstr "MESIAC" -#: ../src/option.c:210 +#: ../src/option.c:217 msgid "Set the calendar year" msgstr "Nastaviť rok kalendára" -#: ../src/option.c:211 +#: ../src/option.c:218 msgid "YEAR" msgstr "ROK" -#: ../src/option.c:216 +#: ../src/option.c:223 msgid "Set the format for the returned date" msgstr "Nastaviť formát vráteného dátumu" -#: ../src/option.c:217 ../src/option.c:440 +#: ../src/option.c:224 ../src/option.c:487 msgid "PATTERN" msgstr "VZOR" -#: ../src/option.c:226 +#: ../src/option.c:233 msgid "Display color selection dialog" msgstr "Zobraziť dialóg Výber farby" -#: ../src/option.c:232 +#: ../src/option.c:239 msgid "Alias for --color" msgstr "Alias pre --color" -#: ../src/option.c:238 +#: ../src/option.c:245 msgid "Set initial color value" msgstr "Nastaviť počiatočnú hodnotu farby" -#: ../src/option.c:239 ../src/option.c:672 ../src/option.c:678 +#: ../src/option.c:246 ../src/option.c:737 ../src/option.c:743 msgid "COLOR" msgstr "FARBA" -#: ../src/option.c:244 +#: ../src/option.c:251 msgid "Set path to palette file. Default - " msgstr "Nastaviť cestu k súboru palety. Predvolene - " -#: ../src/option.c:245 ../src/option.c:323 ../src/option.c:714 +#: ../src/option.c:252 ../src/option.c:342 ../src/option.c:779 msgid "FILENAME" msgstr "MENO_SÚBORU" -#: ../src/option.c:250 +#: ../src/option.c:257 msgid "Use #rrrrggggbbbb format instead of #rrggbb" msgstr "Použiť formát #rrrrggggbbbb namiesto #rrggbb" -#: ../src/option.c:260 +#: ../src/option.c:267 msgid "Display drag-n-drop box" msgstr "Zobraziť dialóg Ťahaj a Pusť" -#: ../src/option.c:266 +#: ../src/option.c:273 msgid "Set command for process d-n-d data" msgstr "Nastaviť príkaz pre spracovanie dát Ťahaj a Pusť" -#: ../src/option.c:267 ../src/option.c:545 +#: ../src/option.c:274 ../src/option.c:598 msgid "CMD" msgstr "PRÍKAZ" -#: ../src/option.c:276 +#: ../src/option.c:283 msgid "Display text entry or combo-box dialog" msgstr "Zobraziť dialóg Textová položka alebo Rozbaľovací zoznam" -#: ../src/option.c:282 +#: ../src/option.c:289 msgid "Set the entry label" msgstr "Nastaviť návestie položky" -#: ../src/option.c:288 +#: ../src/option.c:295 msgid "Set the entry text" msgstr "Nastaviť položku textu" -#: ../src/option.c:294 +#: ../src/option.c:301 msgid "Hide the entry text" msgstr "Skryť položku textu" -#: ../src/option.c:300 +#: ../src/option.c:307 msgid "Use completion instead of combo-box" msgstr "Použiť dopĺňanie namiesto rozbaľovacieho zoznamu" -#: ../src/option.c:306 +#: ../src/option.c:313 +msgid "Use spin button for text entry" +msgstr "Použiť číselník (spin button) pre textovú položku" + +#: ../src/option.c:319 msgid "Allow changes to text in combo-box" msgstr "Povoliť zmeny textu v rozbaľovacom zozname" -#: ../src/option.c:316 +#: ../src/option.c:329 msgid "Display file selection dialog" msgstr "Zobraziť dialóg Výber súboru" -#: ../src/option.c:322 +#: ../src/option.c:335 +msgid "Alias for --file" +msgstr "Alias pre --file" + +#: ../src/option.c:341 msgid "Set the filename" msgstr "Nastaviť meno súboru" -#: ../src/option.c:328 +#: ../src/option.c:347 msgid "Allow multiple files to be selected" msgstr "Povoliť viacnásobný výber súborov" -#: ../src/option.c:334 +#: ../src/option.c:353 msgid "Activate directory-only selection" msgstr "Aktivovať výber adresárov" -#: ../src/option.c:340 +#: ../src/option.c:359 msgid "Activate save mode" msgstr "Aktivovať režim save" -#: ../src/option.c:346 ../src/option.c:386 ../src/option.c:492 +#: ../src/option.c:365 ../src/option.c:433 ../src/option.c:539 msgid "Set output separator character" msgstr "nastaviť znak výstupného oddeľovača" -#: ../src/option.c:347 ../src/option.c:387 ../src/option.c:393 -#: ../src/option.c:493 ../src/option.c:557 ../src/option.c:563 +#: ../src/option.c:366 ../src/option.c:434 ../src/option.c:440 +#: ../src/option.c:540 ../src/option.c:610 ../src/option.c:616 msgid "SEPARATOR" msgstr "ODDEĽOVAČ" -#: ../src/option.c:352 +#: ../src/option.c:371 msgid "Confirm file selection if filename already exists" msgstr "Potvrdiť výber, ak už súbor existuje" -#: ../src/option.c:353 +#: ../src/option.c:372 msgid "TEXT" msgstr "TEXT" -#: ../src/option.c:358 +#: ../src/option.c:377 msgid "Sets a filename filter" msgstr "Nastaviť filter mien súborov" -#: ../src/option.c:359 +#: ../src/option.c:378 msgid "NAME | PATTERN1 PATTERN2 ..." msgstr "MENO | VZOR1 VZOR2 ..." -#: ../src/option.c:368 +#: ../src/option.c:387 +msgid "Display font selection dialog" +msgstr "Zobraziť dialóg na Výber písma" + +#: ../src/option.c:393 +msgid "Alias for --font" +msgstr "Alias pre --font" + +#: ../src/option.c:399 +msgid "Set initial font" +msgstr "Nastaviť počiatočné písmo" + +#: ../src/option.c:400 ../src/option.c:749 +msgid "FONTNAME" +msgstr "MENO_FONTU" + +#: ../src/option.c:405 +msgid "Set preview text" +msgstr "Nastaviť vzorový text" + +#: ../src/option.c:415 msgid "Display form dialog" msgstr "Zobraziť dialóg Formulár" -#: ../src/option.c:374 +#: ../src/option.c:421 msgid "Add field to form (TYPE - H, RO, NUM, CHK, CB, FL, DIR, FN or CLR)" msgstr "" "Pridať do formulára pole (TYP – H RO, NUM, CHK, CB, FL, DIR, FN alebo CLR)" -#: ../src/option.c:375 +#: ../src/option.c:422 msgid "LABEL:TYPE" msgstr "NÁVESTIE:TYP" -#: ../src/option.c:380 +#: ../src/option.c:427 msgid "Set alignment of fileds labels (left, center or right)" msgstr "Nastaviť zarovnanie menoviek poli (left, center alebo right)" -#: ../src/option.c:381 ../src/option.c:696 +#: ../src/option.c:428 ../src/option.c:761 msgid "TYPE" msgstr "TYP" -#: ../src/option.c:392 +#: ../src/option.c:439 msgid "Set separator character for combobox or scale data" msgstr "Nastaviť znak oddeľovača dát rozbaľovacieho zoznamu alebo zväčšenia" -#: ../src/option.c:402 +#: ../src/option.c:449 msgid "Display icons box dialog" msgstr "Zobraziť dialóg ikon" -#: ../src/option.c:408 +#: ../src/option.c:455 msgid "Read data from .desktop files in specified directory" msgstr "Čítať dáta zo súborov .desktop v zadanom adresári" -#: ../src/option.c:409 +#: ../src/option.c:456 msgid "DIRECTORY" msgstr "ADRESÁR" -#: ../src/option.c:414 +#: ../src/option.c:461 msgid "Use compact (list) view" msgstr "Použiť kompaktný (list) pohľad" -#: ../src/option.c:420 +#: ../src/option.c:467 msgid "Use GenericName field instead of Name for icon label" msgstr "Pre menovku ikony použiť pole GenericName namiesto Name" -#: ../src/option.c:426 +#: ../src/option.c:473 msgid "Read data from stdin" msgstr "Čítať dáta zo štandardného vstupu" -#: ../src/option.c:432 +#: ../src/option.c:479 msgid "Set the width of dialog items" msgstr "Nastaviť šírku položiek dialógu" -#: ../src/option.c:439 +#: ../src/option.c:486 #, no-c-format msgid "" "Use specified pattern for launch command in terminal (default: xterm -e %s)" msgstr "Vzor pre spustenie príkazu v termináli (predvolené: xterm -e %s)" -#: ../src/option.c:445 +#: ../src/option.c:492 msgid "Sort items by name instead of filename" msgstr "Radiť položky podľa mena namiesto mena súboru" -#: ../src/option.c:451 +#: ../src/option.c:498 msgid "Sort items in descending order" msgstr "Zoradiť položky zostupne" -#: ../src/option.c:461 +#: ../src/option.c:508 msgid "Display list dialog" msgstr "Zobraziť dialóg Zoznam" -#: ../src/option.c:467 +#: ../src/option.c:514 msgid "Don't show column headers" msgstr "Nezobrazovať hlavičky stĺpcov" -#: ../src/option.c:473 -msgid "Set the column header (TYPE - TEXT, NUM, CHK, IMG or TIP)" -msgstr "Nastaviť hlavičku stĺpca (TYP – TEXT, NUM, CHK, IMG alebo TIP)" +#: ../src/option.c:520 +msgid "Set the column header (TYPE - TEXT, NUM, FLT, CHK, IMG or TIP)" +msgstr "Nastaviť hlavičku stĺpca (TYP – TEXT, NUM, FLT, CHK, IMG alebo TIP)" -#: ../src/option.c:474 +#: ../src/option.c:521 msgid "COLUMN:TYPE" msgstr "STĹPEC:TYP" -#: ../src/option.c:479 +#: ../src/option.c:526 msgid "Use check boxes for first column" msgstr "Použiť zaškrtávacie voľby v prvom stĺpci" -#: ../src/option.c:485 +#: ../src/option.c:532 msgid "Alias to checklist (deprecated)" msgstr "Alias pre Zaškrtávací zoznam (zastarané)" -#: ../src/option.c:498 +#: ../src/option.c:545 msgid "Allow multiple rows to be selected" msgstr "Dovoliť viacnásobný výber riadkov" -#: ../src/option.c:504 ../src/option.c:719 +#: ../src/option.c:551 ../src/option.c:784 msgid "Allow changes to text" msgstr "Dovoliť zmeny textu" -#: ../src/option.c:510 +#: ../src/option.c:557 msgid "Print all data from list" msgstr "Zobraziť všetky dáta zoznamu" -#: ../src/option.c:516 +#: ../src/option.c:563 msgid "" "Print a specific column. By default or if 0 is specified will be printed all " "columns" @@ -525,299 +565,321 @@ "Zobraziť zadaný stĺpec Predvolene alebo ak je zadaná 0 budú zobrazené všetky " "stĺpce" -#: ../src/option.c:517 ../src/option.c:523 ../src/option.c:529 +#: ../src/option.c:564 ../src/option.c:570 ../src/option.c:576 +#: ../src/option.c:582 msgid "NUMBER" msgstr "ČÍSLO" -#: ../src/option.c:522 +#: ../src/option.c:569 msgid "Hide a specific column" msgstr "Skryť zadaný stĺpec" -#: ../src/option.c:528 +#: ../src/option.c:575 msgid "Set the column expandable by default. 0 sets all columns expandable" msgstr "" "Nastaviť stĺpec predvolene ako rozšíriteľný. 0 nastavuje všetky stĺpce ako " "rozšíriteľné" -#: ../src/option.c:538 +#: ../src/option.c:581 +msgid "Set the limit of rows in list" +msgstr "Nastaviť limit na počet riadkov zoznamu" + +#: ../src/option.c:591 msgid "Display notification" msgstr "Zobraziť upozornenie" -#: ../src/option.c:544 +#: ../src/option.c:597 msgid "Set left-click action" msgstr "Nastaviť akciu ľavého tlačidla myši" -#: ../src/option.c:550 +#: ../src/option.c:603 msgid "Listen for commands on stdin" msgstr "Prijímať príkazy zo štandardného vstupu" -#: ../src/option.c:556 +#: ../src/option.c:609 msgid "Set separator character for menu values" msgstr "Nastaviť znak oddeľovača hodnôt menu" -#: ../src/option.c:562 +#: ../src/option.c:615 msgid "Set separator character for menu items" msgstr "Nastaviť znak oddeľovača položiek menu" -#: ../src/option.c:572 +#: ../src/option.c:625 msgid "Display progress indication dialog" msgstr "Zobraziť dialóg Indikátor priebehu" -#: ../src/option.c:578 +#: ../src/option.c:631 msgid "Set progress text" msgstr "Nastaviť text postupu" -#: ../src/option.c:584 +#: ../src/option.c:637 msgid "Set initial percentage" msgstr "Nastaviť počiatočné precentá" -#: ../src/option.c:585 +#: ../src/option.c:638 msgid "PERCENTAGE" msgstr "PERCENTÁ" -#: ../src/option.c:590 +#: ../src/option.c:643 msgid "Pulsate progress bar" msgstr "Pulzujúci ukazovateľ priebehu" -#: ../src/option.c:597 +#: ../src/option.c:650 #, no-c-format msgid "Dismiss the dialog when 100% has been reached" msgstr "Zatvoriť dialóg pri dosiahnutí 100%" -#: ../src/option.c:603 +#: ../src/option.c:656 msgid "Kill parent process if cancel button is pressed" msgstr "Ukončiť rodičovský proces, ak je stlačený kláves Zrušiť" -#: ../src/option.c:609 +#: ../src/option.c:662 msgid "Right-To-Left progress bar direction" msgstr "Indikátor priebehu zprava doľava" -#: ../src/option.c:619 +#: ../src/option.c:672 msgid "Display scale dialog" -msgstr "Zobraziť dialóg Zväčšenia" +msgstr "Zobraziť dialóg zväčšenia" -#: ../src/option.c:625 +#: ../src/option.c:678 msgid "Set initial value" msgstr "Nastaviť východziu hodnotu" -#: ../src/option.c:626 ../src/option.c:632 ../src/option.c:638 -#: ../src/option.c:644 +#: ../src/option.c:679 ../src/option.c:685 ../src/option.c:691 +#: ../src/option.c:697 msgid "VALUE" msgstr "HODNOTA" -#: ../src/option.c:631 +#: ../src/option.c:684 msgid "Set minimum value" msgstr "Nastaviť minimálnu hodnotu" -#: ../src/option.c:637 +#: ../src/option.c:690 msgid "Set maximum value" msgstr "Nastaviť maximálnu hodnotu" -#: ../src/option.c:643 +#: ../src/option.c:696 msgid "Set step size" msgstr "Nastaviť krok" -#: ../src/option.c:649 +#: ../src/option.c:702 msgid "Print partial values" msgstr "Vypísať čiastočné hodnoty" -#: ../src/option.c:655 +#: ../src/option.c:708 msgid "Hide value" msgstr "Skryť hodnotu" -#: ../src/option.c:665 +#: ../src/option.c:714 +msgid "Show vertical scale" +msgstr "Zobraziť zvislé zväčšenie" + +#: ../src/option.c:720 +msgid "Invert direction" +msgstr "Obrátiť smer" + +#: ../src/option.c:730 msgid "Display text information dialog" msgstr "Zobraziť dialóg Informačný text" -#: ../src/option.c:671 +#: ../src/option.c:736 msgid "Use specified color for text" msgstr "Použiť zadanú farbu textu" -#: ../src/option.c:677 +#: ../src/option.c:742 msgid "Use specified color for background" msgstr "Použiť zadanú farbu pozadia" -#: ../src/option.c:683 +#: ../src/option.c:748 msgid "Use specified font" msgstr "Použiť zadaný font" -#: ../src/option.c:684 -msgid "FONTNAME" -msgstr "MENO_FONTU" - -#: ../src/option.c:689 +#: ../src/option.c:754 msgid "Enable text wrapping" msgstr "Zapnúť zalamovanie textu" -#: ../src/option.c:695 +#: ../src/option.c:760 msgid "Set justification (TYPE - left, right, center or fill)" msgstr "Nastaviť zarovnanie (TYP - left, right, center alebo fill)" -#: ../src/option.c:701 +#: ../src/option.c:766 msgid "Set text margins" msgstr "Nastaviť okraje textu" -#: ../src/option.c:702 +#: ../src/option.c:767 msgid "SIZE" msgstr "VEĽKOSŤ" -#: ../src/option.c:707 +#: ../src/option.c:772 msgid "Autoscroll to end of text" msgstr "Atoposun na koniec textu" -#: ../src/option.c:713 +#: ../src/option.c:778 msgid "Open file" msgstr "Otvoriť súbor" -#: ../src/option.c:729 +#: ../src/option.c:790 +msgid "Make URI clickable" +msgstr "Urobiť URI klikateľné" + +#: ../src/option.c:800 msgid "Show about dialog" msgstr "Zobrazí dialóg O programe" -#: ../src/option.c:735 +#: ../src/option.c:806 msgid "Print version" msgstr "Verzia pre tlač" -#: ../src/option.c:879 +#: ../src/option.c:961 #, c-format msgid "Unknown align type: %s\n" msgstr "Neznámy typ zarovnania: %s\n" -#: ../src/option.c:898 +#: ../src/option.c:980 #, c-format msgid "Unknown justification type: %s\n" msgstr "Neznámy typ zarovnania: %s\n" -#: ../src/option.c:1012 +#: ../src/option.c:1099 msgid "File exist. Overwrite?" msgstr "Súbor existuje. Prepísať ho?" -#: ../src/option.c:1072 +#: ../src/option.c:1165 msgid "Yet another dialoging program" msgstr "Prosto ďalší dialógový program" #. Adds general option entries -#: ../src/option.c:1076 +#: ../src/option.c:1169 msgid "General options" msgstr "Všeobecné voľby" -#: ../src/option.c:1077 +#: ../src/option.c:1170 msgid "Show general options" msgstr "Zobraziť všeobecné voľby" #. Adds calendar option entries -#: ../src/option.c:1083 +#: ../src/option.c:1176 msgid "Calendar options" msgstr "Voľby kalendára" -#: ../src/option.c:1084 +#: ../src/option.c:1177 msgid "Show calendar options" msgstr "Zobraziť voľby kalendára" #. Adds color option entries -#: ../src/option.c:1090 -msgid "Color options" -msgstr "Voľby farby" +#: ../src/option.c:1183 +msgid "Color selection options" +msgstr "Voľby výberu farby" -#: ../src/option.c:1091 -msgid "Show color options" -msgstr "Zobraziť voľby farby" +#: ../src/option.c:1184 +msgid "Show color selection options" +msgstr "Zobraziť voľby výberu farby" #. Adds dnd option entries -#: ../src/option.c:1097 +#: ../src/option.c:1190 msgid "DND options" msgstr "Voľby Ťahaj a Pusť" -#: ../src/option.c:1098 +#: ../src/option.c:1191 msgid "Show drag-n-drop options" msgstr "Zobraziť voľby pre Ťahaj a Pusť" #. Adds entry option entries -#: ../src/option.c:1104 +#: ../src/option.c:1197 msgid "Text entry options" msgstr "Voľby textovej položky" -#: ../src/option.c:1105 +#: ../src/option.c:1198 msgid "Show text entry options" msgstr "Zobraziť voľby textovej položky" #. Adds file selection option entries -#: ../src/option.c:1111 +#: ../src/option.c:1204 msgid "File selection options" msgstr "Voľby výberu súboru" -#: ../src/option.c:1112 +#: ../src/option.c:1205 msgid "Show file selection options" msgstr "Zobraziť voľby výberu súboru" +#. Add font selection option entries +#: ../src/option.c:1211 +msgid "Font selection options" +msgstr "Voľby výberu písma" + +#: ../src/option.c:1212 +msgid "Show font selection options" +msgstr "Zobraziť voľby výberu písma" + #. Add form option entries -#: ../src/option.c:1118 +#: ../src/option.c:1218 msgid "Form options" msgstr "Voľby formulára" -#: ../src/option.c:1119 +#: ../src/option.c:1219 msgid "Show form options" msgstr "Zobraziť voľby formulára" #. Add icons option entries -#: ../src/option.c:1125 +#: ../src/option.c:1225 msgid "Icons box options" msgstr "Voľby dialógu ikon" -#: ../src/option.c:1126 +#: ../src/option.c:1226 msgid "Show icons box options" msgstr "Zobraziť voľby dialógu ikon" #. Adds list option entries -#: ../src/option.c:1132 +#: ../src/option.c:1232 msgid "List options" msgstr "Voľby zoznamu" -#: ../src/option.c:1133 +#: ../src/option.c:1233 msgid "Show list options" msgstr "Zobraziť voľby zoznamu" #. Adds notification option entries -#: ../src/option.c:1139 +#: ../src/option.c:1239 msgid "Notification icon options" msgstr "Voľby informačnej ikony" -#: ../src/option.c:1140 +#: ../src/option.c:1240 msgid "Show notification icon options" msgstr "Zobraziť voľby informačnej ikony" #. Adds progress option entries -#: ../src/option.c:1146 +#: ../src/option.c:1246 msgid "Progress options" msgstr "Voľby ukazovateľa priebehu" -#: ../src/option.c:1147 +#: ../src/option.c:1247 msgid "Show progress options" msgstr "Zobraziť voľby ukazovateľa priebehu" #. Adds scale option entries -#: ../src/option.c:1153 +#: ../src/option.c:1253 msgid "Scale options" msgstr "Voľby zväčšenia" -#: ../src/option.c:1154 +#: ../src/option.c:1254 msgid "Show scale options" msgstr "Zobraziť voľby zväčšenia" #. Adds text option entries -#: ../src/option.c:1160 +#: ../src/option.c:1260 msgid "Text information options" msgstr "Voľby textovej informácie" -#: ../src/option.c:1161 +#: ../src/option.c:1261 msgid "Show text information options" msgstr "Zobraziť voľby textovej informácie" #. Adds miscellaneous option entries -#: ../src/option.c:1167 +#: ../src/option.c:1267 msgid "Miscellaneous options" msgstr "Doplnkové voľby" -#: ../src/option.c:1168 +#: ../src/option.c:1268 msgid "Show miscellaneous options" msgstr "Zobraziť doplnkové voľby" @@ -839,24 +901,16 @@ msgid "Name" msgstr "Meno" -#: ../src/text.c:128 +#: ../src/text.c:243 #, c-format msgid "Cannot open file '%s': %s\n" msgstr "Nemožno otvoriť súbor '%s': %s\n" -#: ../src/text.c:158 +#: ../src/text.c:273 #, c-format msgid "Invalid UTF-8 data encountered reading file %s\n" msgstr "Pri čítaní súboru %s zistené neplatné UTF-8 dáta\n" -#: ../src/form.c:99 -msgid "Select file" -msgstr "Vyberte súbor" - -#: ../src/form.c:109 -msgid "Select folder" -msgstr "Vyberte pole" - #: ../src/browser.c:127 msgid "scalable " msgstr "scalable " @@ -901,6 +955,12 @@ msgid "Inspect GTK Icon Theme" msgstr "Preskúmať GTK tému ikon" +#~ msgid "Color options" +#~ msgstr "Voľby farby" + +#~ msgid "Show color options" +#~ msgstr "Zobraziť voľby farby" + #~ msgid "Value out of range.\n" #~ msgstr "Hodnota mimo rozsah.\n"
View file
yad-0.9.1.tar.bz2/po/uk.po -> yad-0.10.0.tar.bz2/po/uk.po
Changed
@@ -1,13 +1,13 @@ # Ukrainian translation for YAD # This file is distributed under the same license as the YAD package. # -# Victor Ananjevsky <ananasik@gmail.com>, 2009-2011. +# Victor Ananjevsky <ananasik@gmail.com>, 2011. # msgid "" msgstr "" "Project-Id-Version: YAD\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-02-28 12:49+0200\n" +"POT-Creation-Date: 2011-03-28 13:36+0300\n" "PO-Revision-Date: 2009-04-30 16:47+0300\n" "Last-Translator: Victor Ananjevsky <ananasik@gmail.com>\n" "Language-Team: Ukrainian\n" @@ -39,8 +39,8 @@ "this program; if not, write to the Free Software Foundation, Inc., 59 Temple " "Place, Suite 330, Boston, MA 02111-1307 USA." msgstr "" -"YAD - це вільна програма; ви можете розповсюджувати її та/чи змінювати на умовах " -"ліцензії GNU General Public License, що опублікована Free Software " +"YAD - це вільна програма; ви можете розповсюджувати її та/чи змінювати на " +"умовах ліцензії GNU General Public License, що опублікована Free Software " "Foundation; версії 2 цієї ліцензії, чи (на вашу думку) будь-якою більш " "пізнішої версії.\n" "Ця програма розповсюджується в сподіванні на те, що вона буде корисною, але " @@ -48,8 +48,8 @@ "ЦІННОСТІ чи ПРИДАТНОСТІ ДЛЯ БУДЬ-ЯКИХ ЦІЛЕЙ. Докладніше про це дивіться GNU " "General Public License.\n" "Ви мали отримати копію GNU General Public License разом з цією програмою; " -"якщо це не так, напишіть у Free Software Foundation, Inc., 59 Temple " -"Place, Suite 330, Boston, MA 02111-1307 USA." +"якщо це не так, напишіть у Free Software Foundation, Inc., 59 Temple Place, " +"Suite 330, Boston, MA 02111-1307 USA." #: ../src/about.c:53 msgid "" @@ -63,17 +63,40 @@ "\n" "Базується на коді Zenity\n" -#: ../src/icons.c:238 +#: ../src/entry.c:93 ../src/scale.c:39 +#, c-format +msgid "Maximum value must be greater than minimum value.\n" +msgstr "Максимальне значення повинно бути більше, ніж мінімальне.\n" + +#: ../src/entry.c:99 ../src/scale.c:48 +#, c-format +msgid "Initial value less than minimal.\n" +msgstr "Початкове значення менше за мінімальне.\n" + +#: ../src/entry.c:104 ../src/scale.c:53 +#, c-format +msgid "Initial value greater than maximum.\n" +msgstr "Початкове значенння більше за маскимальне.\n" + +#: ../src/form.c:103 +msgid "Select file" +msgstr "Обрати файл" + +#: ../src/form.c:113 +msgid "Select folder" +msgstr "Обрати каталог" + +#: ../src/icons.c:249 #, c-format -msgid "Unable to parse file %s: %s" -msgstr "Не можу розібрати файл %s: %s" +msgid "Unable to parse file %s: %s\n" +msgstr "Не можу розібрати файл %s: %s\n" -#: ../src/icons.c:255 +#: ../src/icons.c:266 #, c-format -msgid "Unable to open directory %s: %s" -msgstr "Не можу відкрити каталог %s: %s" +msgid "Unable to open directory %s: %s\n" +msgstr "Не можу відкрити каталог %s: %s\n" -#: ../src/main.c:69 ../src/main.c:167 +#: ../src/main.c:69 ../src/main.c:163 #, c-format msgid "%d sec" msgstr "%d сек" @@ -90,383 +113,400 @@ #: ../src/notification.c:72 #, c-format -msgid "Could not load notification icon '%s': %s" -msgstr "Не вдається завантажити іконку '%s': %s" +msgid "Could not load notification icon '%s': %s\n" +msgstr "Не вдається завантажити іконку '%s': %s\n" -#: ../src/notification.c:244 +#: ../src/notification.c:239 #, c-format msgid "Invalid UTF-8 in tooltip!\n" msgstr "Неправильна послідовність UTF-8 у підказці!\n" -#: ../src/notification.c:297 +#: ../src/notification.c:292 #, c-format msgid "Unknown command '%s'\n" msgstr "Невідома команда '%s'\n" -#: ../src/notification.c:338 ../src/notification.c:340 +#: ../src/notification.c:328 msgid "Yad notification" msgstr "Діалог повідомлень" -#: ../src/scale.c:39 -#, c-format -msgid "Maximum value must be greater than minimum value.\n" -msgstr "Максимальне значення повинно бути більше, ніж мінімальне.\n" - -#: ../src/scale.c:48 -#, c-format -msgid "Initial value less than minimal.\n" -msgstr "Початкове значення менше за мінімальне.\n" - -#: ../src/scale.c:53 -#, c-format -msgid "Initial value greater than maximum.\n" -msgstr "Початкове значенння більше за маскимальне.\n" - -#: ../src/list.c:406 +#: ../src/list.c:483 msgid "Add row" msgstr "Добавити строку" -#: ../src/list.c:415 +#: ../src/list.c:492 msgid "Delete row" msgstr "Видалити строку" -#: ../src/list.c:442 +#: ../src/list.c:521 #, c-format msgid "No column titles specified for List dialog.\n" msgstr "Не задані заголовоки колонок для діалога зі списком\n" -#: ../src/option.c:53 +#: ../src/option.c:54 msgid "Set the dialog title" msgstr "Задати заголовок діалога" -#: ../src/option.c:54 +#: ../src/option.c:55 msgid "TITLE" msgstr "ЗАГОЛОВОК" -#: ../src/option.c:59 +#: ../src/option.c:60 msgid "Set the window icon" msgstr "Задати іконку діалога" -#: ../src/option.c:60 +#: ../src/option.c:61 msgid "ICONPATH" msgstr "ІКОНКА" -#: ../src/option.c:65 +#: ../src/option.c:66 msgid "Set the width" msgstr "Задати ширину вікна" -#: ../src/option.c:66 +#: ../src/option.c:67 msgid "WIDTH" msgstr "ШИРИНА" -#: ../src/option.c:71 +#: ../src/option.c:72 msgid "Set the height" msgstr "Задати висоту вікна" -#: ../src/option.c:72 +#: ../src/option.c:73 msgid "HEIGHT" msgstr "ВИСОТА" -#: ../src/option.c:77 +#: ../src/option.c:78 msgid "Set the window geometry" msgstr "Задати геометрію вікна" -#: ../src/option.c:78 +#: ../src/option.c:79 msgid "WxH+X+Y" msgstr "ВxШ+X+Y" -#: ../src/option.c:83 +#: ../src/option.c:84 msgid "Set dialog timeout in seconds" msgstr "Задати врем'я роботи діалога в секундах" -#: ../src/option.c:84 +#: ../src/option.c:85 msgid "TIMEOUT" msgstr "ЗАТРИМКА" -#: ../src/option.c:89 +#: ../src/option.c:90 msgid "Show remaining time indicator (top, bottom, left, right)" msgstr "Показувати індикатор затримки (top, bottom, left, right)" -#: ../src/option.c:90 +#: ../src/option.c:91 msgid "POS" msgstr "ПОЗИЦІЯ" -#: ../src/option.c:95 +#: ../src/option.c:96 msgid "Set the dialog text" msgstr "Задати текст діалога" -#: ../src/option.c:96 ../src/option.c:283 ../src/option.c:289 -#: ../src/option.c:295 ../src/option.c:579 +#: ../src/option.c:97 ../src/option.c:290 ../src/option.c:296 +#: ../src/option.c:302 ../src/option.c:406 ../src/option.c:632 msgid "TEXT" msgstr "ТЕКСТ" -#: ../src/option.c:101 +#: ../src/option.c:102 msgid "Set the dialog image" msgstr "Задати картинку діалога" -#: ../src/option.c:102 +#: ../src/option.c:103 msgid "IMAGE" msgstr "КАРТИНКА" -#: ../src/option.c:107 +#: ../src/option.c:108 msgid "Show image above main widget" msgstr "Показувати картинку над основним віджетом" -#: ../src/option.c:113 +#: ../src/option.c:114 msgid "Use specified icon theme instead of default" msgstr "Використовувати вказану тему іконок" -#: ../src/option.c:114 +#: ../src/option.c:115 msgid "THEME" msgstr "ТЕМА" -#: ../src/option.c:119 +#: ../src/option.c:120 msgid "Add dialog button (may be used multiple times)" msgstr "Додати кнопку (може використовуватись декілька разів)" -#: ../src/option.c:120 +#: ../src/option.c:121 msgid "NAME:ID" msgstr "ИМ'Я:ID" -#: ../src/option.c:125 +#: ../src/option.c:126 msgid "Don't show buttons" msgstr "Не показувати кнопки" -#: ../src/option.c:131 +#: ../src/option.c:132 msgid "Don't use pango markup language in dialog's text" msgstr "Не використовувати розмітку pango у тексті" -#: ../src/option.c:138 +#: ../src/option.c:139 msgid "Add separator between dialog and buttons" msgstr "Додати розділювач між діалогом та кнопками" -#: ../src/option.c:145 +#: ../src/option.c:146 msgid "Always print result" msgstr "Завжди виводити результат" -#: ../src/option.c:152 +#: ../src/option.c:153 msgid "Set window sticky" msgstr "Вікно є на всіх робочих місцях" -#: ../src/option.c:158 +#: ../src/option.c:159 msgid "Set window unresizable" msgstr "Незмінний розмір" -#: ../src/option.c:164 +#: ../src/option.c:165 msgid "Place window on top" msgstr "Поместити вікно над іншими" -#: ../src/option.c:170 +#: ../src/option.c:171 msgid "Place window on center of screen" msgstr "Поместити вікно у центрі экрану" -#: ../src/option.c:176 +#: ../src/option.c:177 msgid "Place window at the mouse position" msgstr "Поместити вікно у позиції мишки" -#: ../src/option.c:182 +#: ../src/option.c:183 msgid "Set window undecorated" msgstr "Відалити границі вікна" -#: ../src/option.c:192 +#: ../src/option.c:189 +msgid "Send TERM to parent" +msgstr "Послати TERM родителю" + +#: ../src/option.c:199 msgid "Display calendar dialog" msgstr "ВІдобразити діалог для вибору дати" -#: ../src/option.c:198 +#: ../src/option.c:205 msgid "Set the calendar day" msgstr "Задати день календаря" -#: ../src/option.c:199 +#: ../src/option.c:206 msgid "DAY" msgstr "ДЕНЬ" -#: ../src/option.c:204 +#: ../src/option.c:211 msgid "Set the calendar month" msgstr "Задати місяць календаря" -#: ../src/option.c:205 +#: ../src/option.c:212 msgid "MONTH" msgstr "МІСЯЦЬ" -#: ../src/option.c:210 +#: ../src/option.c:217 msgid "Set the calendar year" msgstr "Задати год календаря" -#: ../src/option.c:211 +#: ../src/option.c:218 msgid "YEAR" msgstr "ГОД" -#: ../src/option.c:216 +#: ../src/option.c:223 msgid "Set the format for the returned date" msgstr "Задати формат відображення дати" -#: ../src/option.c:217 ../src/option.c:440 +#: ../src/option.c:224 ../src/option.c:487 msgid "PATTERN" msgstr "ШАБЛОН" -#: ../src/option.c:226 +#: ../src/option.c:233 msgid "Display color selection dialog" msgstr "Відобразити діалог для вибору коліра" -#: ../src/option.c:232 +#: ../src/option.c:239 msgid "Alias for --color" msgstr "Синоним для --color" -#: ../src/option.c:238 +#: ../src/option.c:245 msgid "Set initial color value" msgstr "Задати початковий колір" -#: ../src/option.c:239 ../src/option.c:672 ../src/option.c:678 +#: ../src/option.c:246 ../src/option.c:737 ../src/option.c:743 msgid "COLOR" msgstr "КОЛІР" -#: ../src/option.c:244 +#: ../src/option.c:251 msgid "Set path to palette file. Default - " msgstr "Задати путь до файлу кольорів. Без им'я - " -#: ../src/option.c:245 ../src/option.c:323 ../src/option.c:714 +#: ../src/option.c:252 ../src/option.c:342 ../src/option.c:779 msgid "FILENAME" msgstr "ИМ'Я_ФАЙЛА" -#: ../src/option.c:250 +#: ../src/option.c:257 msgid "Use #rrrrggggbbbb format instead of #rrggbb" msgstr "Викорістовувати формат #rrrrggggbbbb замість #rrggbb" -#: ../src/option.c:260 +#: ../src/option.c:267 msgid "Display drag-n-drop box" msgstr "Відобразити діалог для перехоплення dnd" -#: ../src/option.c:266 +#: ../src/option.c:273 msgid "Set command for process d-n-d data" msgstr "Команда для обробки отриманих даних" -#: ../src/option.c:267 ../src/option.c:545 +#: ../src/option.c:274 ../src/option.c:598 msgid "CMD" msgstr "КОМАНДА" -#: ../src/option.c:276 +#: ../src/option.c:283 msgid "Display text entry or combo-box dialog" msgstr "Відобразити діалог для вводу тексту або вибору варіанта" -#: ../src/option.c:282 +#: ../src/option.c:289 msgid "Set the entry label" msgstr "Задати метку поля ввода" -#: ../src/option.c:288 +#: ../src/option.c:295 msgid "Set the entry text" msgstr "Задати текст для поля вводу" -#: ../src/option.c:294 +#: ../src/option.c:301 msgid "Hide the entry text" msgstr "Сховати введений текст (Пароль)" -#: ../src/option.c:300 +#: ../src/option.c:307 msgid "Use completion instead of combo-box" msgstr "Використовувати автозаповнення замість списку значень" -#: ../src/option.c:306 +#: ../src/option.c:313 +msgid "Use spin button for text entry" +msgstr "Використовувати числове поле замість тексту" + +#: ../src/option.c:319 msgid "Allow changes to text in combo-box" msgstr "Дозволити змінювати текст у режимі выбору варіанта" -#: ../src/option.c:316 +#: ../src/option.c:329 msgid "Display file selection dialog" msgstr "Відобразити діалог для выбору файла" -#: ../src/option.c:322 +#: ../src/option.c:335 +msgid "Alias for --file" +msgstr "Синоним для --file" + +#: ../src/option.c:341 msgid "Set the filename" msgstr "Задати им'я файла" -#: ../src/option.c:328 +#: ../src/option.c:347 msgid "Allow multiple files to be selected" msgstr "Дозволити вибір декільких файлів" -#: ../src/option.c:334 +#: ../src/option.c:353 msgid "Activate directory-only selection" msgstr "Активувати виделення тільки по каталогам" -#: ../src/option.c:340 +#: ../src/option.c:359 msgid "Activate save mode" msgstr "Активувавти режим зберігання" -#: ../src/option.c:346 ../src/option.c:386 ../src/option.c:492 +#: ../src/option.c:365 ../src/option.c:433 ../src/option.c:539 msgid "Set output separator character" msgstr "Установити вихідний розділювач" -#: ../src/option.c:347 ../src/option.c:387 ../src/option.c:393 -#: ../src/option.c:493 ../src/option.c:557 ../src/option.c:563 +#: ../src/option.c:366 ../src/option.c:434 ../src/option.c:440 +#: ../src/option.c:540 ../src/option.c:610 ../src/option.c:616 msgid "SEPARATOR" msgstr "РОЗДІЛЮВАЧ" -#: ../src/option.c:352 +#: ../src/option.c:371 msgid "Confirm file selection if filename already exists" msgstr "Підтвердити вибір файлу, якщо файл вже існує" -#: ../src/option.c:353 +#: ../src/option.c:372 msgid "TEXT" msgstr "ТЕКСТ" -#: ../src/option.c:358 +#: ../src/option.c:377 msgid "Sets a filename filter" msgstr "Задати фільтр файлів" -#: ../src/option.c:359 +#: ../src/option.c:378 msgid "NAME | PATTERN1 PATTERN2 ..." msgstr "ИМ'Я | ШАБЛОН1 ШАБЛОН2 ..." -#: ../src/option.c:368 +#: ../src/option.c:387 +msgid "Display font selection dialog" +msgstr "Відобразити діалог для выбору шрифта" + +#: ../src/option.c:393 +msgid "Alias for --font" +msgstr "Синоним для --font" + +#: ../src/option.c:399 +msgid "Set initial font" +msgstr "Задати початковий шрифт" + +#: ../src/option.c:400 ../src/option.c:749 +msgid "FONTNAME" +msgstr "ИМ'Я_ШРИФТА" + +#: ../src/option.c:405 +msgid "Set preview text" +msgstr "Задати текст зразка" + +#: ../src/option.c:415 msgid "Display form dialog" msgstr "Відобразити діалог форми вводу" -#: ../src/option.c:374 +#: ../src/option.c:421 msgid "Add field to form (TYPE - H, RO, NUM, CHK, CB, FL, DIR, FN or CLR)" msgstr "" "Додати поле до форми (Тип поля: Н, RO, NUM, CHK, CB, FL, DIR, FN або CLR)" -#: ../src/option.c:375 +#: ../src/option.c:422 msgid "LABEL:TYPE" msgstr "МІТКА:ТИП" -#: ../src/option.c:380 +#: ../src/option.c:427 msgid "Set alignment of fileds labels (left, center or right)" msgstr "Задати вирівнювання міток полей (left, center або right)" -#: ../src/option.c:381 ../src/option.c:696 +#: ../src/option.c:428 ../src/option.c:761 msgid "TYPE" msgstr "ТИП" -#: ../src/option.c:392 +#: ../src/option.c:439 msgid "Set separator character for combobox or scale data" msgstr "Задати рохділювач для даних списку або числового поля" -#: ../src/option.c:402 +#: ../src/option.c:449 msgid "Display icons box dialog" msgstr "Відобразити діалог з іконками швидкого доступу" -#: ../src/option.c:408 +#: ../src/option.c:455 msgid "Read data from .desktop files in specified directory" msgstr "Читати дані з .desktop файлів в заданому каталозі" -#: ../src/option.c:409 +#: ../src/option.c:456 msgid "DIRECTORY" msgstr "КАТАЛОГ" -#: ../src/option.c:414 +#: ../src/option.c:461 msgid "Use compact (list) view" msgstr "Використовувати компактний вид (список)" -#: ../src/option.c:420 +#: ../src/option.c:467 msgid "Use GenericName field instead of Name for icon label" msgstr "Використовувати поле GenericName замість Name для метки" -#: ../src/option.c:426 +#: ../src/option.c:473 msgid "Read data from stdin" msgstr "Читати дані зі стандартного вводу" -#: ../src/option.c:432 +#: ../src/option.c:479 msgid "Set the width of dialog items" msgstr "Задати ширину елементу діалога" -#: ../src/option.c:439 +#: ../src/option.c:486 #, no-c-format msgid "" "Use specified pattern for launch command in terminal (default: xterm -e %s)" @@ -474,51 +514,51 @@ "Використовувати вказаний шаблон для запуску у терміналі (без шаблону: xterm -" "e %s)" -#: ../src/option.c:445 +#: ../src/option.c:492 msgid "Sort items by name instead of filename" msgstr "Сортувати по полю Им'я замість файла" -#: ../src/option.c:451 +#: ../src/option.c:498 msgid "Sort items in descending order" msgstr "Сортувати у порядку пониження" -#: ../src/option.c:461 +#: ../src/option.c:508 msgid "Display list dialog" msgstr "Відобразити діалог зі списком" -#: ../src/option.c:467 +#: ../src/option.c:514 msgid "Don't show column headers" msgstr "Не показувати заголовки колонок" -#: ../src/option.c:473 -msgid "Set the column header (TYPE - TEXT, NUM, CHK, IMG or TIP)" -msgstr "Задати заголовок стовбця (ТИП - TEXT, NUM, CHK, IMG або TIP)" +#: ../src/option.c:520 +msgid "Set the column header (TYPE - TEXT, NUM, FLT, CHK, IMG or TIP)" +msgstr "Задати заголовок стовбця (ТИП - TEXT, NUM, FLT, CHK, IMG або TIP)" -#: ../src/option.c:474 +#: ../src/option.c:521 msgid "COLUMN:TYPE" msgstr "СТОЛБЕЦЬ:ТИП" -#: ../src/option.c:479 +#: ../src/option.c:526 msgid "Use check boxes for first column" msgstr "Вікористовувати флажки для першої колонки" -#: ../src/option.c:485 +#: ../src/option.c:532 msgid "Alias to checklist (deprecated)" msgstr "Синоним для checklist" -#: ../src/option.c:498 +#: ../src/option.c:545 msgid "Allow multiple rows to be selected" msgstr "Дозволити вибір декількох строк" -#: ../src/option.c:504 ../src/option.c:719 +#: ../src/option.c:551 ../src/option.c:784 msgid "Allow changes to text" msgstr "Дозволити зминювати текст" -#: ../src/option.c:510 +#: ../src/option.c:557 msgid "Print all data from list" msgstr "Виводити таблицю повністю" -#: ../src/option.c:516 +#: ../src/option.c:563 msgid "" "Print a specific column. By default or if 0 is specified will be printed all " "columns" @@ -526,297 +566,319 @@ "Виводити тільки вказаний стовбець. Без вказівки або якщо стовбець дорівнює " "0, будуть виведені усі стовбці" -#: ../src/option.c:517 ../src/option.c:523 ../src/option.c:529 +#: ../src/option.c:564 ../src/option.c:570 ../src/option.c:576 +#: ../src/option.c:582 msgid "NUMBER" msgstr "ЧИСЛО" -#: ../src/option.c:522 +#: ../src/option.c:569 msgid "Hide a specific column" -msgstr "Скрити вказаний стовбець" +msgstr "Сховати вказаний стовбець" -#: ../src/option.c:528 +#: ../src/option.c:575 msgid "Set the column expandable by default. 0 sets all columns expandable" msgstr "Задати колонку, яка расширюється. 0 розширює усі колонки" -#: ../src/option.c:538 +#: ../src/option.c:581 +msgid "Set the limit of rows in list" +msgstr "Задати кількість рядків у списку" + +#: ../src/option.c:591 msgid "Display notification" msgstr "Відобразити діалог повідомлень" -#: ../src/option.c:544 +#: ../src/option.c:597 msgid "Set left-click action" msgstr "Дія для лівого кліку мишки" -#: ../src/option.c:550 +#: ../src/option.c:603 msgid "Listen for commands on stdin" msgstr "Читати команди зі стандартного вводу" -#: ../src/option.c:556 +#: ../src/option.c:609 msgid "Set separator character for menu values" msgstr "Встановити роздилювач для значень меню" -#: ../src/option.c:562 +#: ../src/option.c:615 msgid "Set separator character for menu items" msgstr "Встановити розділювач для елементів меню" -#: ../src/option.c:572 +#: ../src/option.c:625 msgid "Display progress indication dialog" msgstr "Відобразити діалог прогресу" -#: ../src/option.c:578 +#: ../src/option.c:631 msgid "Set progress text" msgstr "Показувати текст на індикаторі" -#: ../src/option.c:584 +#: ../src/option.c:637 msgid "Set initial percentage" msgstr "Задати початковий процент" -#: ../src/option.c:585 +#: ../src/option.c:638 msgid "PERCENTAGE" msgstr "ПРОЦЕНТИ" -#: ../src/option.c:590 +#: ../src/option.c:643 msgid "Pulsate progress bar" msgstr "Пульсуючий індикатор прогресу" -#: ../src/option.c:597 +#: ../src/option.c:650 #, no-c-format msgid "Dismiss the dialog when 100% has been reached" msgstr "Закрити діалог по досягнені 100%" -#: ../src/option.c:603 +#: ../src/option.c:656 msgid "Kill parent process if cancel button is pressed" -msgstr "Завершити батьківський процес, якщо нажата кнопка відміни" +msgstr "Завершити батьківський процес, якщо натиснута кнопка відміни" -#: ../src/option.c:609 +#: ../src/option.c:662 msgid "Right-To-Left progress bar direction" msgstr "Напрямок індикатору Зправа-Наліво" -#: ../src/option.c:619 +#: ../src/option.c:672 msgid "Display scale dialog" msgstr "Відобразити діалог масштабу" -#: ../src/option.c:625 +#: ../src/option.c:678 msgid "Set initial value" msgstr "Задати початкове значення" -#: ../src/option.c:626 ../src/option.c:632 ../src/option.c:638 -#: ../src/option.c:644 +#: ../src/option.c:679 ../src/option.c:685 ../src/option.c:691 +#: ../src/option.c:697 msgid "VALUE" msgstr "ЗНАЧЕННЯ" -#: ../src/option.c:631 +#: ../src/option.c:684 msgid "Set minimum value" msgstr "Задати мінімальне значення" -#: ../src/option.c:637 +#: ../src/option.c:690 msgid "Set maximum value" msgstr "Задати максимальне значення" -#: ../src/option.c:643 +#: ../src/option.c:696 msgid "Set step size" msgstr "Задати крок" -#: ../src/option.c:649 +#: ../src/option.c:702 msgid "Print partial values" msgstr "Виводити часткові значення" -#: ../src/option.c:655 +#: ../src/option.c:708 msgid "Hide value" msgstr "Сховати значення" -#: ../src/option.c:665 +#: ../src/option.c:714 +msgid "Show vertical scale" +msgstr "Відобразити вертикальну шкалу" + +#: ../src/option.c:720 +msgid "Invert direction" +msgstr "Інвертувати напрямок" + +#: ../src/option.c:730 msgid "Display text information dialog" msgstr "Відобразити діалог з текстовою інформацією" -#: ../src/option.c:671 +#: ../src/option.c:736 msgid "Use specified color for text" msgstr "Використовувати вказаний колір тексту" -#: ../src/option.c:677 +#: ../src/option.c:742 msgid "Use specified color for background" msgstr "Виктористовувати вказаний колір фону" -#: ../src/option.c:683 +#: ../src/option.c:748 msgid "Use specified font" msgstr "Використовувати вказаний шрифт" -#: ../src/option.c:684 -msgid "FONTNAME" -msgstr "ИМ'Я_ШРИФТА" - -#: ../src/option.c:689 +#: ../src/option.c:754 msgid "Enable text wrapping" msgstr "Дозволити перенос тексту" -#: ../src/option.c:695 +#: ../src/option.c:760 msgid "Set justification (TYPE - left, right, center or fill)" msgstr "Встановити вирівнювання (ТИП - left, right, center або fill)" -#: ../src/option.c:701 +#: ../src/option.c:766 msgid "Set text margins" msgstr "Встановити відступи" -#: ../src/option.c:702 +#: ../src/option.c:767 msgid "SIZE" msgstr "РОЗМІР" -#: ../src/option.c:707 +#: ../src/option.c:772 msgid "Autoscroll to end of text" msgstr "Автопрокрутка у кінець тексту" -#: ../src/option.c:713 +#: ../src/option.c:778 msgid "Open file" msgstr "ВІдкрити файл" -#: ../src/option.c:729 +#: ../src/option.c:790 +msgid "Make URI clickable" +msgstr "Зробити зсилки активними" + +#: ../src/option.c:800 msgid "Show about dialog" msgstr "Показати діалог 'Про програму'" -#: ../src/option.c:735 +#: ../src/option.c:806 msgid "Print version" msgstr "Вивести версію" -#: ../src/option.c:879 +#: ../src/option.c:961 #, c-format msgid "Unknown align type: %s\n" msgstr "Невідомий тип вирівнювання: %s\n" -#: ../src/option.c:898 +#: ../src/option.c:980 #, c-format msgid "Unknown justification type: %s\n" msgstr "Невідомий тип вирівнювання: %s\n" -#: ../src/option.c:1012 +#: ../src/option.c:1099 msgid "File exist. Overwrite?" msgstr "Файл існує. Перезаписати?" -#: ../src/option.c:1072 +#: ../src/option.c:1165 msgid "Yet another dialoging program" msgstr "Програма для відображення діалогів" #. Adds general option entries -#: ../src/option.c:1076 +#: ../src/option.c:1169 msgid "General options" msgstr "Основні параметри" -#: ../src/option.c:1077 +#: ../src/option.c:1170 msgid "Show general options" msgstr "Показувати основні параметри" #. Adds calendar option entries -#: ../src/option.c:1083 +#: ../src/option.c:1176 msgid "Calendar options" msgstr "Параметри календаря" -#: ../src/option.c:1084 +#: ../src/option.c:1177 msgid "Show calendar options" msgstr "Показувати параметри календаря" #. Adds color option entries -#: ../src/option.c:1090 -msgid "Color options" +#: ../src/option.c:1183 +msgid "Color selection options" msgstr "Параметри діалога вибору коліра" -#: ../src/option.c:1091 -msgid "Show color options" +#: ../src/option.c:1184 +msgid "Show color selection options" msgstr "Показувати параметри діалога вибору коліра" #. Adds dnd option entries -#: ../src/option.c:1097 +#: ../src/option.c:1190 msgid "DND options" msgstr "Параметри DND" -#: ../src/option.c:1098 +#: ../src/option.c:1191 msgid "Show drag-n-drop options" msgstr "Показувати параметри dnd" #. Adds entry option entries -#: ../src/option.c:1104 +#: ../src/option.c:1197 msgid "Text entry options" msgstr "Параметри вводу текста" -#: ../src/option.c:1105 +#: ../src/option.c:1198 msgid "Show text entry options" msgstr "Показувати параметри вводу текста" #. Adds file selection option entries -#: ../src/option.c:1111 +#: ../src/option.c:1204 msgid "File selection options" msgstr "Параметри діалога вибору файла" -#: ../src/option.c:1112 +#: ../src/option.c:1205 msgid "Show file selection options" msgstr "Показувати параметри діалога вибору файлів" +#. Add font selection option entries +#: ../src/option.c:1211 +msgid "Font selection options" +msgstr "Параметри діалога вибору шрифта" + +#: ../src/option.c:1212 +msgid "Show font selection options" +msgstr "Показувати параметри діалога вибору шрифта" + #. Add form option entries -#: ../src/option.c:1118 +#: ../src/option.c:1218 msgid "Form options" msgstr "Параметри діалога форми" -#: ../src/option.c:1119 +#: ../src/option.c:1219 msgid "Show form options" msgstr "Показувати параметри діалога форми" #. Add icons option entries -#: ../src/option.c:1125 +#: ../src/option.c:1225 msgid "Icons box options" msgstr "Параметри діалога іконок" -#: ../src/option.c:1126 +#: ../src/option.c:1226 msgid "Show icons box options" msgstr "Показувати параметри діалога іконок швидкого доступа" #. Adds list option entries -#: ../src/option.c:1132 +#: ../src/option.c:1232 msgid "List options" msgstr "Параметри списка" -#: ../src/option.c:1133 +#: ../src/option.c:1233 msgid "Show list options" msgstr "Показувати параметри списка" #. Adds notification option entries -#: ../src/option.c:1139 +#: ../src/option.c:1239 msgid "Notification icon options" msgstr "Параметри іконки повідомлення" -#: ../src/option.c:1140 +#: ../src/option.c:1240 msgid "Show notification icon options" msgstr "Показувати параметри іконки повідомленнь" #. Adds progress option entries -#: ../src/option.c:1146 +#: ../src/option.c:1246 msgid "Progress options" msgstr "Параметри ходу прогреса" -#: ../src/option.c:1147 +#: ../src/option.c:1247 msgid "Show progress options" msgstr "Показувати параметри ходу прогреса" #. Adds scale option entries -#: ../src/option.c:1153 +#: ../src/option.c:1253 msgid "Scale options" msgstr "Параметри масштаба" -#: ../src/option.c:1154 +#: ../src/option.c:1254 msgid "Show scale options" msgstr "Показувати параметри масштаба" #. Adds text option entries -#: ../src/option.c:1160 +#: ../src/option.c:1260 msgid "Text information options" msgstr "Параметри текстової інформації" -#: ../src/option.c:1161 +#: ../src/option.c:1261 msgid "Show text information options" msgstr "Показувати параметри текстової інформації" #. Adds miscellaneous option entries -#: ../src/option.c:1167 +#: ../src/option.c:1267 msgid "Miscellaneous options" msgstr "Додаткові параметри" -#: ../src/option.c:1168 +#: ../src/option.c:1268 msgid "Show miscellaneous options" msgstr "Показувати додаткові параметри" @@ -838,24 +900,16 @@ msgid "Name" msgstr "Назва" -#: ../src/text.c:128 +#: ../src/text.c:243 #, c-format msgid "Cannot open file '%s': %s\n" msgstr "Не можу відкрити файл %s: %s\n" -#: ../src/text.c:158 +#: ../src/text.c:273 #, c-format msgid "Invalid UTF-8 data encountered reading file %s\n" msgstr "Невірна послідовність UTF-8 при читанні файлу %s\n" -#: ../src/form.c:99 -msgid "Select file" -msgstr "Обрати файл" - -#: ../src/form.c:109 -msgid "Select folder" -msgstr "Обрати каталог" - #: ../src/browser.c:127 msgid "scalable " msgstr "масштабуємий " @@ -899,4 +953,3 @@ #: ../data/yad-icon-browser.desktop.in.h:2 msgid "Inspect GTK Icon Theme" msgstr "Дослідження теми іконок GTK" -
View file
yad-0.9.1.tar.bz2/src/Makefile.am -> yad-0.10.0.tar.bz2/src/Makefile.am
Changed
@@ -10,7 +10,8 @@ color.c \ dnd.c \ entry.c \ - fileselection.c \ + file.c \ + font.c \ form.c \ icons.c \ list.c \
View file
yad-0.9.1.tar.bz2/src/Makefile.in -> yad-0.10.0.tar.bz2/src/Makefile.in
Changed
@@ -50,7 +50,7 @@ PROGRAMS = $(bin_PROGRAMS) am_yad_OBJECTS = yad-about.$(OBJEXT) yad-calendar.$(OBJEXT) \ yad-color.$(OBJEXT) yad-dnd.$(OBJEXT) yad-entry.$(OBJEXT) \ - yad-fileselection.$(OBJEXT) yad-form.$(OBJEXT) \ + yad-file.$(OBJEXT) yad-font.$(OBJEXT) yad-form.$(OBJEXT) \ yad-icons.$(OBJEXT) yad-list.$(OBJEXT) \ yad-notification.$(OBJEXT) yad-option.$(OBJEXT) \ yad-progress.$(OBJEXT) yad-scale.$(OBJEXT) yad-text.$(OBJEXT) \ @@ -225,7 +225,8 @@ color.c \ dnd.c \ entry.c \ - fileselection.c \ + file.c \ + font.c \ form.c \ icons.c \ list.c \ @@ -334,7 +335,8 @@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/yad-color.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/yad-dnd.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/yad-entry.Po@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/yad-fileselection.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/yad-file.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/yad-font.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/yad-form.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/yad-icons.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/yad-list.Po@am__quote@ @@ -443,21 +445,37 @@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(yad_CFLAGS) $(CFLAGS) -c -o yad-entry.obj `if test -f 'entry.c'; then $(CYGPATH_W) 'entry.c'; else $(CYGPATH_W) '$(srcdir)/entry.c'; fi` -yad-fileselection.o: fileselection.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(yad_CFLAGS) $(CFLAGS) -MT yad-fileselection.o -MD -MP -MF $(DEPDIR)/yad-fileselection.Tpo -c -o yad-fileselection.o `test -f 'fileselection.c' || echo '$(srcdir)/'`fileselection.c -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/yad-fileselection.Tpo $(DEPDIR)/yad-fileselection.Po +yad-file.o: file.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(yad_CFLAGS) $(CFLAGS) -MT yad-file.o -MD -MP -MF $(DEPDIR)/yad-file.Tpo -c -o yad-file.o `test -f 'file.c' || echo '$(srcdir)/'`file.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/yad-file.Tpo $(DEPDIR)/yad-file.Po @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='fileselection.c' object='yad-fileselection.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='file.c' object='yad-file.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(yad_CFLAGS) $(CFLAGS) -c -o yad-fileselection.o `test -f 'fileselection.c' || echo '$(srcdir)/'`fileselection.c +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(yad_CFLAGS) $(CFLAGS) -c -o yad-file.o `test -f 'file.c' || echo '$(srcdir)/'`file.c -yad-fileselection.obj: fileselection.c -@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(yad_CFLAGS) $(CFLAGS) -MT yad-fileselection.obj -MD -MP -MF $(DEPDIR)/yad-fileselection.Tpo -c -o yad-fileselection.obj `if test -f 'fileselection.c'; then $(CYGPATH_W) 'fileselection.c'; else $(CYGPATH_W) '$(srcdir)/fileselection.c'; fi` -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/yad-fileselection.Tpo $(DEPDIR)/yad-fileselection.Po +yad-file.obj: file.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(yad_CFLAGS) $(CFLAGS) -MT yad-file.obj -MD -MP -MF $(DEPDIR)/yad-file.Tpo -c -o yad-file.obj `if test -f 'file.c'; then $(CYGPATH_W) 'file.c'; else $(CYGPATH_W) '$(srcdir)/file.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/yad-file.Tpo $(DEPDIR)/yad-file.Po @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='fileselection.c' object='yad-fileselection.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='file.c' object='yad-file.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(yad_CFLAGS) $(CFLAGS) -c -o yad-fileselection.obj `if test -f 'fileselection.c'; then $(CYGPATH_W) 'fileselection.c'; else $(CYGPATH_W) '$(srcdir)/fileselection.c'; fi` +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(yad_CFLAGS) $(CFLAGS) -c -o yad-file.obj `if test -f 'file.c'; then $(CYGPATH_W) 'file.c'; else $(CYGPATH_W) '$(srcdir)/file.c'; fi` + +yad-font.o: font.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(yad_CFLAGS) $(CFLAGS) -MT yad-font.o -MD -MP -MF $(DEPDIR)/yad-font.Tpo -c -o yad-font.o `test -f 'font.c' || echo '$(srcdir)/'`font.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/yad-font.Tpo $(DEPDIR)/yad-font.Po +@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='font.c' object='yad-font.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(yad_CFLAGS) $(CFLAGS) -c -o yad-font.o `test -f 'font.c' || echo '$(srcdir)/'`font.c + +yad-font.obj: font.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(yad_CFLAGS) $(CFLAGS) -MT yad-font.obj -MD -MP -MF $(DEPDIR)/yad-font.Tpo -c -o yad-font.obj `if test -f 'font.c'; then $(CYGPATH_W) 'font.c'; else $(CYGPATH_W) '$(srcdir)/font.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/yad-font.Tpo $(DEPDIR)/yad-font.Po +@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='font.c' object='yad-font.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(yad_CFLAGS) $(CFLAGS) -c -o yad-font.obj `if test -f 'font.c'; then $(CYGPATH_W) 'font.c'; else $(CYGPATH_W) '$(srcdir)/font.c'; fi` yad-form.o: form.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(yad_CFLAGS) $(CFLAGS) -MT yad-form.o -MD -MP -MF $(DEPDIR)/yad-form.Tpo -c -o yad-form.o `test -f 'form.c' || echo '$(srcdir)/'`form.c
View file
yad-0.9.1.tar.bz2/src/about.c -> yad-0.10.0.tar.bz2/src/about.c
Changed
@@ -15,7 +15,7 @@ * along with YAD; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * Copyright (C) 2008-2010, Victor Ananjevsky <ananasik@gmail.com> + * Copyright (C) 2008-2011, Victor Ananjevsky <ananasik@gmail.com> * */ @@ -49,7 +49,7 @@ g_object_set (G_OBJECT (dialog), "name", PACKAGE_NAME, "version", PACKAGE_VERSION, - "copyright", "Copyright \xc2\xa9 2008-2010 Victor Ananjevsky <ananasik@gmail.com>", + "copyright", "Copyright \xc2\xa9 2008-2011 Victor Ananjevsky <ananasik@gmail.com>", "comments", _("Yet Another Dialog\n(show dialog boxes from shell scripts)\n\nBased on Zenity code\n"), "authors", authors, "website", PACKAGE_URL,
View file
yad-0.9.1.tar.bz2/src/browser.c -> yad-0.10.0.tar.bz2/src/browser.c
Changed
@@ -15,7 +15,7 @@ * along with YAD; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * Copyright (C) 2010, Victor Ananjevsky <ananasik@gmail.com> + * Copyright (C) 2010-2011, Victor Ananjevsky <ananasik@gmail.com> * */
View file
yad-0.9.1.tar.bz2/src/calendar.c -> yad-0.10.0.tar.bz2/src/calendar.c
Changed
@@ -15,7 +15,7 @@ * along with YAD; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * Copyright (C) 2008-2010, Victor Ananjevsky <ananasik@gmail.com> + * Copyright (C) 2008-2011, Victor Ananjevsky <ananasik@gmail.com> * */
View file
yad-0.9.1.tar.bz2/src/color.c -> yad-0.10.0.tar.bz2/src/color.c
Changed
@@ -15,7 +15,7 @@ * along with YAD; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * Copyright (C) 2008-2010, Victor Ananjevsky <ananasik@gmail.com> + * Copyright (C) 2008-2011, Victor Ananjevsky <ananasik@gmail.com> * */
View file
yad-0.9.1.tar.bz2/src/dnd.c -> yad-0.10.0.tar.bz2/src/dnd.c
Changed
@@ -15,28 +15,22 @@ * along with YAD; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * Copyright (C) 2008-2010, Victor Ananjevsky <ananasik@gmail.com> + * Copyright (C) 2008-2011, Victor Ananjevsky <ananasik@gmail.com> * */ +/* code for working with dnd targets gets from gnome-terminal */ + #include "yad.h" enum { - TARGET_UTF8_STRING, - TARGET_STRING, - TARGET_TEXT, - TARGET_COMPOUND_TEXT, - TARGET_TEXT_PLAIN, - TARGET_MOZ_URL + TARGET_MOZ_URL, + TARGET_NS_URL }; static GtkTargetEntry tgt = { - {"text/x-moz-url", 0, TARGET_MOZ_URL}, - {"UTF8_STRING", 0, TARGET_UTF8_STRING}, - {"COMPOUND_TEXT", 0, TARGET_COMPOUND_TEXT}, - {"TEXT", 0, TARGET_TEXT}, - {"STRING", 0, TARGET_STRING}, - {"text/plain", 0, TARGET_TEXT_PLAIN} + { "text/x-moz-url", 0, TARGET_MOZ_URL }, + { "_NETSCAPE_URL", 0, TARGET_NS_URL } }; static void @@ -44,64 +38,151 @@ GtkSelectionData *sel, guint info, guint t, gpointer data) { gchar *str = NULL; + const guchar *sdata; + GdkAtom stgt; + gint slen, sfmt; + + sdata = gtk_selection_data_get_data (sel); + stgt = gtk_selection_data_get_target (sel); + slen = gtk_selection_data_get_length (sel); + sfmt = gtk_selection_data_get_format (sel); - switch (info) + if (gtk_targets_include_uri (&stgt, 1)) { - case TARGET_STRING: - case TARGET_UTF8_STRING: - case TARGET_COMPOUND_TEXT: - case TARGET_TEXT: - str = gtk_selection_data_get_text (sel); - break; - case TARGET_TEXT_PLAIN: - str = g_strdup (gtk_selection_data_get_data (sel)); - break; - case TARGET_MOZ_URL: - { - GString *str1; - const guint16 *char_data; - guint length; - int i = 0; - - str1 = g_string_new (NULL); - char_data = (const guint16 *) gtk_selection_data_get_data (sel); - length = gtk_selection_data_get_length (sel); - while (i < (length / 2)) - { - if (char_datai == '\n') - break; - g_string_append_unichar (str1, (gunichar) char_datai++); - } - str = g_strdup (str1->str); - g_string_free (str1, TRUE); - break; - } - } + gchar **uris; + gint i = 0; + + uris = gtk_selection_data_get_uris (sel); + if (!uris) + return; - if (str) + while (urisi) + { + gchar *dstr = g_uri_unescape_string (urisi, NULL); + if (options.common_data.command) + { + gchar *action = g_strdup_printf ("%s '%s'", options.common_data.command, dstr); + g_spawn_command_line_async (action, NULL); + g_free (action); + } + else + { + g_printf ("%s\n", dstr); + fflush (stdout); + } + g_free (dstr); + i++; + } + g_strfreev (uris); + } + else if (gtk_targets_include_text (&stgt, 1)) { - if (options.common_data.command) + gchar *str, *dstr; + + str = gtk_selection_data_get_text (sel); + if (str) { - gchar *action = g_strdup_printf ("%s '%s'", options.common_data.command, str); - g_spawn_command_line_async (action, NULL); - g_free (action); + dstr = g_uri_unescape_string (str, NULL); + if (options.common_data.command) + { + gchar *action = g_strdup_printf ("%s '%s'", options.common_data.command, dstr); + g_spawn_command_line_async (action, NULL); + g_free (action); + } + else + { + g_printf ("%s\n", dstr); + fflush (stdout); + } + g_free (dstr); + g_free(str); } - else + } + else + { + gchar *str = NULL; + + switch (info) { - g_printf ("%s\n", str); - fflush (stdout); + case TARGET_MOZ_URL: + { + gchar *nl; + gsize len; + + /* MOZ_URL is in UCS-2 but in format 8. BROKEN! + * + * The data contains the URL, a \n, then the title of the web page. + */ + if (sfmt != 8 || slen == 0 || (slen % 2) != 0) + return; + + if ((str = g_utf16_to_utf8 ((const gunichar2*) sdata, slen / 2, + NULL, NULL, NULL)) == NULL) + return; + + nl = strchr (str, '\n'); + if (nl) *nl = '\0'; + + break; + } + case TARGET_NS_URL: + { + gchar *nl; + gsize len; + + /* The data contains the URL, a \n, then the + * title of the web page. + */ + if (slen < 0 || sfmt != 8) + return; + + str = g_strndup ((char *) sdata, slen); + nl = strchr (str, '\n'); + if (nl) *nl = '\0'; + + break; + } } - g_free (str); + if (str) + { + gchar *dstr = g_uri_unescape_string (str, NULL); + if (options.common_data.command) + { + gchar *action = g_strdup_printf ("%s '%s'", options.common_data.command, dstr); + g_spawn_command_line_async (action, NULL); + g_free (action); + } + else + { + g_printf ("%s\n", dstr); + fflush (stdout); + } + g_free (dstr); + g_free (str); + } } - } void dnd_init (GtkWidget *w) { - gtk_drag_dest_set (w, GTK_DEST_DEFAULT_ALL, - tgt, G_N_ELEMENTS (tgt), GDK_ACTION_COPY); + GtkTargetList *tlist; + GtkTargetEntry *tgts; + gint ntgts; + + tlist = gtk_target_list_new (NULL, 0); + gtk_target_list_add_uri_targets (tlist, 0); + gtk_target_list_add_text_targets (tlist, 0); + gtk_target_list_add_table (tlist, tgt, G_N_ELEMENTS (tgt)); + + tgts = gtk_target_table_new_from_list (tlist, &ntgts); + + gtk_drag_dest_set (w, GTK_DEST_DEFAULT_ALL, tgts, ntgts, + GDK_ACTION_COPY | GDK_ACTION_MOVE); g_signal_connect (G_OBJECT (w), "drag_data_received", G_CALLBACK (drop_data_cb), NULL); + + gtk_target_table_free (tgts, ntgts); + gtk_target_list_unref (tlist); }
View file
yad-0.9.1.tar.bz2/src/entry.c -> yad-0.10.0.tar.bz2/src/entry.c
Changed
@@ -15,7 +15,7 @@ * along with YAD; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * Copyright (C) 2008-2010, Victor Ananjevsky <ananasik@gmail.com> + * Copyright (C) 2008-2011, Victor Ananjevsky <ananasik@gmail.com> * */ @@ -65,7 +65,50 @@ gtk_box_pack_start (GTK_BOX (w), l, FALSE, FALSE, 1); } - if (!options.entry_data.completion && + if (options.entry_data.numeric) + { + gdouble min, max, step, val; + + min = 0.0; max = 65535.0; step = 1.0; + + if (options.extra_data && *options.extra_data) + { + min = g_ascii_strtod (options.extra_data0, NULL); + if (options.extra_data1) + { + max = g_ascii_strtod (options.extra_data1, NULL); + if (options.extra_data2) + step = g_ascii_strtod (options.extra_data2, NULL); + } + } + + c = entry = gtk_spin_button_new_with_range (min, max, step); + + if (options.entry_data.entry_text) + { + val = g_ascii_strtod (options.entry_data.entry_text, NULL); + + if (min >= max) + { + g_printerr (_("Maximum value must be greater than minimum value.\n")); + min = 0.0; max = 65535.0; + } + + if (val < min) + { + g_printerr (_("Initial value less than minimal.\n")); + val = min; + } + else if (val > max) + { + g_printerr (_("Initial value greater than maximum.\n")); + val = max; + } + + gtk_spin_button_set_value (GTK_SPIN_BUTTON (c), val); + } + } + else if (!options.entry_data.completion && options.extra_data && *options.extra_data) { gint i = 0; @@ -151,7 +194,9 @@ void entry_print_result (void) { - if (is_combo) + if (options.entry_data.numeric) + g_print ("%lf\n", gtk_spin_button_get_value (GTK_SPIN_BUTTON (entry))); + else if (is_combo) #if GTK_CHECK_VERSION(2,24,0) g_print ("%s\n", gtk_combo_box_text_get_active_text (GTK_COMBO_BOX_TEXT (entry))); #else
View file
yad-0.10.0.tar.bz2/src/file.c
Added
@@ -0,0 +1,181 @@ +/* + * This file is part of YAD. + * + * YAD is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * YAD is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with YAD; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Copyright (C) 2008-2011, Victor Ananjevsky <ananasik@gmail.com> + * + */ + +#include "yad.h" + +static GtkWidget *filechooser; + +static void +file_activated_cb (GtkFileChooser *chooser, gpointer *data) +{ + gtk_dialog_response (GTK_DIALOG (data), YAD_RESPONSE_OK); +} + +void +confirm_overwrite_cb (GtkDialog *dlg, gint id, gpointer data) +{ + if (id != YAD_RESPONSE_OK) + return; + + if (options.file_data.save && + options.file_data.confirm_overwrite && + !options.common_data.multi) + { + gchar *filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (filechooser)); + + if (g_file_test (filename, G_FILE_TEST_EXISTS)) + { + GtkWidget *d; + gint r; + gchar *buf; + + buf = g_strcompress (options.file_data.confirm_text); + d = gtk_message_dialog_new (GTK_WINDOW (dlg), GTK_DIALOG_DESTROY_WITH_PARENT, + GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, + "%s", buf); + g_free (buf); + r = gtk_dialog_run (GTK_DIALOG (d)); + gtk_widget_destroy (d); + if (r != GTK_RESPONSE_YES) + g_signal_stop_emission_by_name (dlg, "response"); + } + } +} + +GtkWidget * +file_create_widget (GtkWidget *dlg) +{ + GtkWidget *w; + gchar *dir, *basename; + GtkFileChooserAction action = GTK_FILE_CHOOSER_ACTION_OPEN; + + if (options.file_data.directory) + { + if (options.file_data.save) + action = GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER; + else + action = GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER; + } + else + { + if (options.file_data.save) + action = GTK_FILE_CHOOSER_ACTION_SAVE; + } + + w = filechooser = gtk_file_chooser_widget_new (action); + + if (options.common_data.uri) + { + dir = g_path_get_dirname (options.common_data.uri); + + if (g_path_is_absolute (options.common_data.uri) == TRUE) + gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (w), dir); + + if (options.common_data.uristrlen (options.common_data.uri) - 1 != '/') + { + basename = g_path_get_basename (options.common_data.uri); + if (options.file_data.save) + gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (w), + basename); + else + gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (w), + options.common_data.uri); + g_free (basename); + } + g_free (dir); + } + + if (options.common_data.multi) + gtk_file_chooser_set_select_multiple (GTK_FILE_CHOOSER (w), TRUE); + + if (options.file_data.filter) + { + /* Filter format: Executables | *.exe *.bat *.com */ + gint filter_i; + + for (filter_i = 0; options.file_data.filterfilter_i; filter_i++) + { + GtkFileFilter *filter = gtk_file_filter_new (); + gchar *filter_str = options.file_data.filterfilter_i; + gchar **pattern, **patterns; + gchar *name = NULL; + gint i; + + /* Set name */ + for (i = 0; filter_stri != '\0'; i++) + { + if (filter_stri == '|') + break; + } + + if (filter_stri == '|') + 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_stri == ' '; 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); + } + } + + g_signal_connect (w, "file-activated", + G_CALLBACK (file_activated_cb), dlg); + + return w; +} + +void +file_print_result (void) +{ + GSList *selections, *iter; + + selections = gtk_file_chooser_get_filenames (GTK_FILE_CHOOSER (filechooser)); + for (iter = selections; iter != NULL; iter = iter->next) + { + g_print ("%s", + g_filename_to_utf8 ((gchar *) iter->data, -1, NULL, NULL, + NULL)); + g_free (iter->data); + if (iter->next != NULL) + g_print ("%s", options.common_data.separator); + } + g_print ("\n"); + g_slist_free (selections); +}
View file
yad-0.10.0.tar.bz2/src/font.c
Added
@@ -0,0 +1,55 @@ +/* + * This file is part of YAD. + * + * YAD is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * YAD is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with YAD; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Copyright (C) 2008-2011, Victor Ananjevsky <ananasik@gmail.com> + * + */ + +#include <errno.h> + +#include "yad.h" + +static GtkWidget *font; + +static void +realize_cb (GtkWidget *w, gpointer d) +{ + gtk_font_selection_set_font_name (GTK_FONT_SELECTION (w), options.common_data.font); +} + +GtkWidget * +font_create_widget (GtkWidget *dlg) +{ + GtkWidget *w; + + w = font = gtk_font_selection_new (); + + if (options.font_data.preview) + gtk_font_selection_set_preview_text (GTK_FONT_SELECTION (w), options.font_data.preview); + + /* font must be set after widget inserted in toplevel */ + if (options.common_data.font) + g_signal_connect_after (G_OBJECT (w), "realize", G_CALLBACK (realize_cb), NULL); + + return w; +} + +void +font_print_result (void) +{ + g_printf ("%s\n", gtk_font_selection_get_font_name (GTK_FONT_SELECTION (font))); +}
View file
yad-0.9.1.tar.bz2/src/icons.c -> yad-0.10.0.tar.bz2/src/icons.c
Changed
@@ -15,7 +15,7 @@ * along with YAD; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * Copyright (C) 2008-2010, Victor Ananjevsky <ananasik@gmail.com> + * Copyright (C) 2008-2011, Victor Ananjevsky <ananasik@gmail.com> * */ @@ -116,9 +116,9 @@ { if (err) { - g_printerr ("yad_icons_handle_stdin(): %s", err->message); + g_printerr ("yad_icons_handle_stdin(): %s\n", err->message); g_error_free (err); - err = NULL; + err = NULL; } continue; } @@ -246,7 +246,7 @@ } } else - g_printerr (_("Unable to parse file %s: %s"), filename, err->message); + g_printerr (_("Unable to parse file %s: %s\n"), filename, err->message); g_key_file_free (kf); @@ -263,7 +263,7 @@ dir = g_dir_open (options.icons_data.directory, 0, &err); if (!dir) { - g_printerr (_("Unable to open directory %s: %s"), + g_printerr (_("Unable to open directory %s: %s\n"), options.icons_data.directory, err->message); return; } @@ -313,9 +313,9 @@ GtkListStore *store; w = gtk_scrolled_window_new (NULL, NULL); + gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (w), GTK_SHADOW_ETCHED_IN); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (w), - GTK_POLICY_AUTOMATIC, - GTK_POLICY_AUTOMATIC); + GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); store = gtk_list_store_new (NUM_COLS, G_TYPE_STRING, @@ -378,15 +378,9 @@ g_object_unref (store); if (!options.icons_data.compact) - { - g_signal_connect (G_OBJECT (icon_view), "item-activated", - G_CALLBACK (activate_cb), NULL); - } + g_signal_connect (G_OBJECT (icon_view), "item-activated", G_CALLBACK (activate_cb), NULL); else - { - g_signal_connect (G_OBJECT (icon_view), "row-activated", - G_CALLBACK (activate_cb), NULL); - } + g_signal_connect (G_OBJECT (icon_view), "row-activated", G_CALLBACK (activate_cb), NULL); gtk_container_add (GTK_CONTAINER (w), icon_view);
View file
yad-0.9.1.tar.bz2/src/list.c -> yad-0.10.0.tar.bz2/src/list.c
Changed
@@ -15,7 +15,7 @@ * along with YAD; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * Copyright (C) 2008-2010, Victor Ananjevsky <ananasik@gmail.com> + * Copyright (C) 2008-2011, Victor Ananjevsky <ananasik@gmail.com> * */ @@ -28,6 +28,8 @@ static GtkWidget *list_view; +static gint fore_col, back_col, font_col; + static gboolean list_activate_cb (GtkWidget *widget, GdkEventKey *event, gpointer data) { @@ -81,6 +83,8 @@ if (col->type == YAD_COLUMN_NUM) gtk_list_store_set (GTK_LIST_STORE (model), &iter, column, g_ascii_strtoll (new_text, NULL, 10), -1); + else if (col->type == YAD_COLUMN_FLOAT) + gtk_list_store_set (GTK_LIST_STORE (model), &iter, column, g_ascii_strtod (new_text, NULL), -1); else gtk_list_store_set (GTK_LIST_STORE (model), &iter, column, new_text, -1); @@ -114,9 +118,24 @@ case YAD_COLUMN_NUM: ctypesi = G_TYPE_INT64; break; + case YAD_COLUMN_FLOAT: + ctypesi = G_TYPE_DOUBLE; + break; case YAD_COLUMN_IMAGE: ctypesi = GDK_TYPE_PIXBUF; break; + case YAD_COLUMN_ATTR_FORE: + ctypesi = G_TYPE_STRING; + fore_col = i; + break; + case YAD_COLUMN_ATTR_BACK: + ctypesi = G_TYPE_STRING; + back_col = i; + break; + case YAD_COLUMN_ATTR_FONT: + ctypesi = G_TYPE_STRING; + font_col = i; + break; case YAD_COLUMN_TOOLTIP: case YAD_COLUMN_TEXT: default: @@ -141,7 +160,8 @@ { YadColumn *col = (YadColumn *) g_slist_nth_data (options.list_data.columns, i); - if (i == options.list_data.hide_column - 1) + if (i == options.list_data.hide_column - 1 || + i == fore_col || i == back_col || i == font_col) continue; switch (col->type) @@ -150,15 +170,18 @@ renderer = gtk_cell_renderer_toggle_new (); g_object_set_data (G_OBJECT (renderer), "column", GINT_TO_POINTER (i)); g_signal_connect (renderer, "toggled", G_CALLBACK (toggled_cb), NULL); - column = gtk_tree_view_column_new_with_attributes - (col->name, renderer, "active", i, NULL); + column = gtk_tree_view_column_new_with_attributes (col->name, renderer, "active", i, NULL); + if (back_col != -1) + gtk_tree_view_column_add_attribute (column, renderer, "cell-background", back_col); break; case YAD_COLUMN_IMAGE: renderer = gtk_cell_renderer_pixbuf_new (); - column = gtk_tree_view_column_new_with_attributes - (col->name, renderer, "pixbuf", i, NULL); + column = gtk_tree_view_column_new_with_attributes (col->name, renderer, "pixbuf", i, NULL); + if (back_col != -1) + gtk_tree_view_column_add_attribute (column, renderer, "cell-background", back_col); break; case YAD_COLUMN_NUM: + case YAD_COLUMN_FLOAT: renderer = gtk_cell_renderer_text_new (); if (options.common_data.editable) { @@ -166,8 +189,13 @@ g_object_set_data (G_OBJECT (renderer), "column", GINT_TO_POINTER (i)); g_signal_connect (renderer, "edited", G_CALLBACK (cell_edited_cb), NULL); } - column = gtk_tree_view_column_new_with_attributes - (col->name, renderer, "text", i, NULL); + column = gtk_tree_view_column_new_with_attributes (col->name, renderer, "text", i, NULL); + if (fore_col != -1) + gtk_tree_view_column_add_attribute (column, renderer, "foreground", fore_col); + if (back_col != -1) + gtk_tree_view_column_add_attribute (column, renderer, "cell-background", back_col); + if (font_col != -1) + gtk_tree_view_column_add_attribute (column, renderer, "font", font_col); gtk_tree_view_column_set_sort_column_id (column, i); gtk_tree_view_column_set_resizable (column, TRUE); break; @@ -181,17 +209,25 @@ g_object_set_data (G_OBJECT (renderer), "column", GINT_TO_POINTER (i)); g_signal_connect (renderer, "edited", G_CALLBACK (cell_edited_cb), NULL); } - column = gtk_tree_view_column_new_with_attributes - (col->name, renderer, "markup", i, NULL); + column = gtk_tree_view_column_new_with_attributes (col->name, renderer, "markup", i, NULL); + if (fore_col != -1) + gtk_tree_view_column_add_attribute (column, renderer, "foreground", fore_col); + if (back_col != -1) + gtk_tree_view_column_add_attribute (column, renderer, "cell-background", back_col); + if (font_col != -1) + gtk_tree_view_column_add_attribute (column, renderer, "font", font_col); gtk_tree_view_column_set_sort_column_id (column, i); gtk_tree_view_column_set_resizable (column, TRUE); break; } gtk_tree_view_append_column (GTK_TREE_VIEW (list_view), column); - if (i == options.list_data.expand_column - 1 || - options.list_data.expand_column == 0) - gtk_tree_view_column_set_expand (column, TRUE); + if (col->type != YAD_COLUMN_CHECK || col->type != YAD_COLUMN_IMAGE) + { + if (i == options.list_data.expand_column - 1 || + options.list_data.expand_column == 0) + gtk_tree_view_column_set_expand (column, TRUE); + } } } @@ -241,7 +277,7 @@ { if (err) { - g_printerr ("yad_list_handle_stdin(): %s", err->message); + g_printerr ("yad_list_handle_stdin(): %s\n", err->message); g_error_free (err); err = NULL; } @@ -253,6 +289,11 @@ /* We're starting a new row */ column_count = 0; row_count++; + if (options.list_data.limit && row_count >= options.list_data.limit) + { + gtk_tree_model_get_iter_first (model, &iter); + gtk_list_store_remove (GTK_LIST_STORE (model), &iter); + } gtk_list_store_append (GTK_LIST_STORE (model), &iter); } @@ -267,15 +308,23 @@ gtk_list_store_set (GTK_LIST_STORE (model), &iter, column_count, FALSE, -1); break; case YAD_COLUMN_NUM: - gtk_list_store_set (GTK_LIST_STORE (model), &iter, column_count, - g_ascii_strtoll (string->str, NULL, 10), -1); + gtk_list_store_set (GTK_LIST_STORE (model), &iter, column_count, + g_ascii_strtoll (string->str, NULL, 10), -1); + break; + case YAD_COLUMN_FLOAT: + gtk_list_store_set (GTK_LIST_STORE (model), &iter, column_count, + g_ascii_strtod (string->str, NULL), -1); break; case YAD_COLUMN_IMAGE: pb = get_pixbuf (string->str, YAD_SMALL_ICON); - gtk_list_store_set (GTK_LIST_STORE (model), &iter, - column_count, pb, -1); + gtk_list_store_set (GTK_LIST_STORE (model), &iter, column_count, pb, -1); g_object_unref (pb); break; + case YAD_COLUMN_ATTR_FORE: + case YAD_COLUMN_ATTR_BACK: + case YAD_COLUMN_ATTR_FONT: + gtk_list_store_set (GTK_LIST_STORE (model), &iter, column_count, string->str, -1); + break; case YAD_COLUMN_TEXT: case YAD_COLUMN_TOOLTIP: default: @@ -338,11 +387,20 @@ gtk_list_store_set (GTK_LIST_STORE (model), &iter, j, g_ascii_strtoll (argsi, NULL, 10), -1); break; + case YAD_COLUMN_FLOAT: + gtk_list_store_set (GTK_LIST_STORE (model), &iter, j, + g_ascii_strtod (argsi, NULL), -1); + break; case YAD_COLUMN_IMAGE: pb = get_pixbuf (argsi, YAD_SMALL_ICON); gtk_list_store_set (GTK_LIST_STORE (model), &iter, j, pb, -1); g_object_unref (pb); break; + case YAD_COLUMN_ATTR_FORE: + case YAD_COLUMN_ATTR_BACK: + case YAD_COLUMN_ATTR_FONT: + gtk_list_store_set (GTK_LIST_STORE (model), &iter, j, argsi, -1); + break; case YAD_COLUMN_TEXT: case YAD_COLUMN_TOOLTIP: default: @@ -454,6 +512,8 @@ GtkTreeModel *model; gint i, n_columns; + fore_col = back_col = font_col = -1; + n_columns = g_slist_length (options.list_data.columns); if (n_columns == 0) @@ -463,9 +523,9 @@ } w = gtk_scrolled_window_new (NULL, NULL); + gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (w), GTK_SHADOW_ETCHED_IN); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (w), - GTK_POLICY_AUTOMATIC, - GTK_POLICY_AUTOMATIC); + GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); model = create_model (n_columns); @@ -520,7 +580,7 @@ { YadColumn *col = (YadColumn *) g_slist_nth_data (options.list_data.columns, i); - if (col->type = YAD_COLUMN_TOOLTIP) + if (col->type == YAD_COLUMN_TOOLTIP) { gtk_tree_view_set_tooltip_column (GTK_TREE_VIEW (list_view), i); break; @@ -535,8 +595,11 @@ { YadColumn *col = (YadColumn *) g_slist_nth_data (options.list_data.columns, num); - if (options.list_data.checkbox && num == 0) - col->type = YAD_COLUMN_CHECK; + /* don't print image or attributes */ + if (col->type == YAD_COLUMN_ATTR_FORE || + col->type == YAD_COLUMN_ATTR_BACK || + col->type == YAD_COLUMN_ATTR_FONT) + return; switch (col->type) { @@ -554,6 +617,13 @@ g_printf ("%d", nval); break; } + case YAD_COLUMN_FLOAT: + { + gdouble nval; + gtk_tree_model_get (model, iter, num, &nval, -1); + g_printf ("%lf", nval); + break; + } case YAD_COLUMN_TOOLTIP: case YAD_COLUMN_TEXT: default: @@ -573,13 +643,12 @@ print_selected (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) { - gint col = options.list_data.print_column; + gint i, col = options.list_data.print_column; if (col) print_col (model, iter, col - 1); else { - gint i; for (i = 0; i < gtk_tree_model_get_n_columns (model); i++) print_col (model, iter, i); } @@ -590,13 +659,12 @@ print_all (GtkTreeModel *model) { GtkTreeIter iter; - gint cols = gtk_tree_model_get_n_columns (model); + gint i, cols = gtk_tree_model_get_n_columns (model); if (gtk_tree_model_get_iter_first (model, &iter)) { do { - gint i; for (i = 0; i < cols; i++) print_col (model, &iter, i); g_printf ("\n");
View file
yad-0.9.1.tar.bz2/src/main.c -> yad-0.10.0.tar.bz2/src/main.c
Changed
@@ -15,7 +15,7 @@ * along with YAD; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * Copyright (C) 2008-2010, Victor Ananjevsky <ananasik@gmail.com> + * Copyright (C) 2008-2011, Victor Ananjevsky <ananasik@gmail.com> * */ @@ -143,12 +143,8 @@ /* add top label widgets */ hbox = hbox2 = gtk_hbox_new (FALSE, 0); -#if GTK_CHECK_VERSION (2, 14, 0) gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dlg))), hbox); -#else - gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dlg)->vbox), hbox); -#endif vbox = gtk_vbox_new (FALSE, 0); /* add timeout indicator */ @@ -225,6 +221,9 @@ case YAD_MODE_FILE: main_widget = file_create_widget (dlg); break; + case YAD_MODE_FONT: + main_widget = font_create_widget (dlg); + break; case YAD_MODE_FORM: main_widget = form_create_widget (dlg); break; @@ -264,14 +263,12 @@ } else { -#if GTK_CHECK_VERSION (2, 14, 0) if (gtk_alternative_dialog_button_order (NULL)) gtk_dialog_add_buttons (GTK_DIALOG (dlg), GTK_STOCK_OK, YAD_RESPONSE_OK, GTK_STOCK_CANCEL, YAD_RESPONSE_CANCEL, NULL); else -#endif gtk_dialog_add_buttons (GTK_DIALOG (dlg), GTK_STOCK_CANCEL, YAD_RESPONSE_CANCEL, GTK_STOCK_OK, YAD_RESPONSE_OK, NULL); @@ -316,6 +313,9 @@ case YAD_MODE_FILE: file_print_result (); break; + case YAD_MODE_FONT: + font_print_result (); + break; case YAD_MODE_FORM: form_print_result (); break; @@ -427,11 +427,17 @@ print_result (); } /* autokill option for progress dialog */ - if (options.mode == YAD_MODE_PROGRESS && - options.progress_data.autokill && - ret != YAD_RESPONSE_OK) - kill (getppid (), 1); + if (!options.kill_parent) + { + if (options.mode == YAD_MODE_PROGRESS && + options.progress_data.autokill && + ret != YAD_RESPONSE_OK) + kill (getppid (), 1); + } } + if (options.kill_parent) + kill (getppid (), SIGTERM); + return ret; }
View file
yad-0.9.1.tar.bz2/src/notification.c -> yad-0.10.0.tar.bz2/src/notification.c
Changed
@@ -15,7 +15,7 @@ * along with YAD; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * Copyright (C) 2008-2010, Victor Ananjevsky <ananasik@gmail.com> + * Copyright (C) 2008-2011, Victor Ananjevsky <ananasik@gmail.com> * */ @@ -69,7 +69,7 @@ TRUE, &err); if (err) { - g_printerr (_("Could not load notification icon '%s': %s"), + g_printerr (_("Could not load notification icon '%s': %s\n"), icon, err->message); g_clear_error (&err); } @@ -229,19 +229,14 @@ if (g_utf8_validate (value, -1, NULL)) { gchar *message = g_strcompress (value); -#if GTK_CHECK_VERSION(2,16,0) - if (options.data.no_markup) - gtk_status_icon_set_tooltip_markup (status_icon, message); - else - gtk_status_icon_set_tooltip_text (status_icon, message); -#else - gtk_status_icon_set_tooltip (status_icon, message); -#endif - + if (!options.data.no_markup) + gtk_status_icon_set_tooltip_markup (status_icon, message); + else + gtk_status_icon_set_tooltip_text (status_icon, message); g_free (message); } else - g_printerr (_("Invalid UTF-8 in tooltip!\n")); + g_printerr (_("Invalid UTF-8 in tooltip!\n")); } else if (!g_ascii_strcasecmp (command, "visible")) { @@ -324,21 +319,13 @@ if (options.data.dialog_text) { -#if GTK_CHECK_VERSION(2,16,0) - if (options.data.no_markup) - gtk_status_icon_set_tooltip_markup (status_icon, options.data.dialog_text); + if (!options.data.no_markup) + gtk_status_icon_set_tooltip_markup (status_icon, options.data.dialog_text); else - gtk_status_icon_set_tooltip_text (status_icon, options.data.dialog_text); -#else - gtk_status_icon_set_tooltip (status_icon, options.data.dialog_text); -#endif + gtk_status_icon_set_tooltip_text (status_icon, options.data.dialog_text); } else -#if GTK_CHECK_VERSION(2,16,0) gtk_status_icon_set_tooltip_text (status_icon, _("Yad notification")); -#else - gtk_status_icon_set_tooltip (status_icon, _("Yad notification")); -#endif if (options.data.dialog_image) icon = g_strdup (options.data.dialog_image);
View file
yad-0.9.1.tar.bz2/src/option.c -> yad-0.10.0.tar.bz2/src/option.c
Changed
@@ -15,7 +15,7 @@ * along with YAD; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * Copyright (C) 2008-2010, Victor Ananjevsky <ananasik@gmail.com> + * Copyright (C) 2008-2011, Victor Ananjevsky <ananasik@gmail.com> * */ @@ -37,6 +37,7 @@ static gboolean dnd_mode = FALSE; static gboolean entry_mode = FALSE; static gboolean file_mode = FALSE; +static gboolean font_mode = FALSE; static gboolean form_mode = FALSE; static gboolean icons_mode = FALSE; static gboolean list_mode = FALSE; @@ -181,6 +182,12 @@ &options.data.undecorated, N_("Set window undecorated"), NULL }, + { "kill-parent", 0, + 0, + G_OPTION_ARG_NONE, + &options.kill_parent, + N_("Send TERM to parent"), + NULL }, { NULL } }; @@ -299,6 +306,12 @@ &options.entry_data.completion, N_("Use completion instead of combo-box"), NULL }, + { "numeric", 0, + 0, + G_OPTION_ARG_NONE, + &options.entry_data.numeric, + N_("Use spin button for text entry"), + NULL }, { "editable", 0, G_OPTION_FLAG_NOALIAS, G_OPTION_ARG_NONE, @@ -308,13 +321,19 @@ { NULL } }; -static GOptionEntry file_selection_options = { - { "file-selection", 0, +static GOptionEntry file_options = { + { "file", 0, G_OPTION_FLAG_IN_MAIN, G_OPTION_ARG_NONE, &file_mode, N_("Display file selection dialog"), NULL }, + { "file-selection", 0, + G_OPTION_FLAG_IN_MAIN, + G_OPTION_ARG_NONE, + &file_mode, + N_("Alias for --file"), + NULL }, { "filename", 0, G_OPTION_FLAG_NOALIAS, G_OPTION_ARG_FILENAME, @@ -360,6 +379,34 @@ { NULL } }; +static GOptionEntry font_options = { + { "font", 0, + G_OPTION_FLAG_IN_MAIN, + G_OPTION_ARG_NONE, + &font_mode, + N_("Display font selection dialog"), + NULL }, + { "font-selection", 0, + G_OPTION_FLAG_IN_MAIN, + G_OPTION_ARG_NONE, + &font_mode, + N_("Alias for --font"), + NULL }, + { "fontname", 0, + G_OPTION_FLAG_NOALIAS, + G_OPTION_ARG_STRING, + &options.common_data.font, + N_("Set initial font"), + N_("FONTNAME") }, + { "preview", 0, + 0, + G_OPTION_ARG_STRING, + &options.font_data.preview, + N_("Set preview text"), + N_("TEXT") }, + { NULL } +}; + static GOptionEntry form_options = { { "form", 0, G_OPTION_FLAG_IN_MAIN, @@ -470,7 +517,7 @@ 0, G_OPTION_ARG_CALLBACK, add_column, - N_("Set the column header (TYPE - TEXT, NUM, CHK, IMG or TIP)"), + N_("Set the column header (TYPE - TEXT, NUM, FLT, CHK, IMG or TIP)"), N_("COLUMN:TYPE") }, { "checklist", 0, 0, @@ -527,6 +574,12 @@ &options.list_data.expand_column, N_("Set the column expandable by default. 0 sets all columns expandable"), N_("NUMBER") }, + { "limit", 0, + 0, + G_OPTION_ARG_INT, + &options.list_data.limit, + N_("Set the limit of rows in list"), + N_("NUMBER") }, { NULL } }; @@ -654,6 +707,18 @@ &options.scale_data.hide_value, N_("Hide value"), NULL }, + { "vertical", 0, + 0, + G_OPTION_ARG_NONE, + &options.scale_data.vertical, + N_("Show vertical scale"), + NULL }, + { "invert", 0, + 0, + G_OPTION_ARG_NONE, + &options.scale_data.invert, + N_("Invert direction"), + NULL }, { NULL } }; @@ -676,10 +741,10 @@ &options.text_data.back, N_("Use specified color for background"), N_("COLOR") }, - { "font", 0, - 0, + { "fontname", 0, + G_OPTION_FLAG_NOALIAS, G_OPTION_ARG_STRING, - &options.text_data.font, + &options.common_data.font, N_("Use specified font"), N_("FONTNAME") }, { "wrap", 0, @@ -718,6 +783,12 @@ &options.common_data.editable, N_("Allow changes to text"), NULL }, + { "show-uri", 0, + 0, + G_OPTION_ARG_NONE, + &options.text_data.uri, + N_("Make URI clickable"), + NULL }, { NULL } }; @@ -775,21 +846,32 @@ col = g_new0 (YadColumn, 1); col->name = g_strdup (cstr0); - if (cstr1) + if (g_ascii_strcasecmp (cstr0, "@fore@") == 0) + col->type = YAD_COLUMN_ATTR_FORE; + else if (g_ascii_strcasecmp (cstr0, "@back@") == 0) + col->type = YAD_COLUMN_ATTR_BACK; + else if (g_ascii_strcasecmp (cstr0, "@font@") == 0) + col->type = YAD_COLUMN_ATTR_FONT; + else { - if (g_ascii_strcasecmp (cstr1, "NUM") == 0) - col->type = YAD_COLUMN_NUM ; - else if (g_ascii_strcasecmp (cstr1, "CHK") == 0) - col->type = YAD_COLUMN_CHECK; - else if (g_ascii_strcasecmp (cstr1, "IMG") == 0) - col->type = YAD_COLUMN_IMAGE; - else if (g_ascii_strcasecmp (cstr1, "TIP") == 0) - col->type = YAD_COLUMN_TOOLTIP; + if (cstr1) + { + if (g_ascii_strcasecmp (cstr1, "NUM") == 0) + col->type = YAD_COLUMN_NUM ; + else if (g_ascii_strcasecmp (cstr1, "CHK") == 0) + col->type = YAD_COLUMN_CHECK; + else if (g_ascii_strcasecmp (cstr1, "FLT") == 0) + col->type = YAD_COLUMN_FLOAT; + else if (g_ascii_strcasecmp (cstr1, "IMG") == 0) + col->type = YAD_COLUMN_IMAGE; + else if (g_ascii_strcasecmp (cstr1, "TIP") == 0) + col->type = YAD_COLUMN_TOOLTIP; + else + col->type = YAD_COLUMN_TEXT; + } else col->type = YAD_COLUMN_TEXT; } - else - col->type = YAD_COLUMN_TEXT; options.list_data.columns = g_slist_append (options.list_data.columns, col); @@ -924,6 +1006,8 @@ options.mode = YAD_MODE_ENTRY; else if (file_mode) options.mode = YAD_MODE_FILE; + else if (font_mode) + options.mode = YAD_MODE_FONT; else if (form_mode) options.mode = YAD_MODE_FORM; else if (icons_mode) @@ -950,6 +1034,7 @@ /* Set default mode */ options.mode = YAD_MODE_MESSAGE; options.extra_data = NULL; + options.kill_parent = FALSE; /* Initialize general data */ options.data.dialog_title = NULL; @@ -981,6 +1066,7 @@ /* Initialize common data */ options.common_data.uri = NULL; + options.common_data.font = NULL; options.common_data.separator = "|"; options.common_data.item_separator = "!"; options.common_data.multi = FALSE; @@ -1004,6 +1090,7 @@ options.entry_data.entry_label = NULL; options.entry_data.hide_text = FALSE; options.entry_data.completion = FALSE; + options.entry_data.numeric = FALSE; /* Initialize file data */ options.file_data.directory = FALSE; @@ -1012,6 +1099,9 @@ options.file_data.confirm_text = N_("File exist. Overwrite?"); options.file_data.filter = NULL; + /* Initialize font data */ + options.font_data.preview = NULL; + /* Initialize form data */ options.form_data.fields = NULL; options.form_data.align = 0.0; @@ -1033,6 +1123,8 @@ options.list_data.print_all = FALSE; options.list_data.print_column = 0; options.list_data.hide_column = 0; + options.list_data.expand_column = -1; + options.list_data.limit = 0; /* Initialize notification data */ options.notification_data.listen = FALSE; @@ -1053,11 +1145,12 @@ options.scale_data.print_partial = FALSE; options.scale_data.hide_value = FALSE; options.scale_data.have_value = FALSE; + options.scale_data.vertical = FALSE; + options.scale_data.invert = FALSE; /* Initialize text data */ options.text_data.fore = NULL; options.text_data.back = NULL; - options.text_data.font = NULL; options.text_data.wrap = FALSE; options.text_data.justify = GTK_JUSTIFY_LEFT; options.text_data.tail = FALSE; @@ -1087,8 +1180,8 @@ g_option_context_add_group (tmp_ctx, a_group); /* Adds color option entries */ - a_group = g_option_group_new ("color", _("Color options"), - _("Show color options"), NULL, NULL); + a_group = g_option_group_new ("color", _("Color selection options"), + _("Show color selection options"), NULL, NULL); g_option_group_add_entries (a_group, color_options); g_option_group_set_translation_domain (a_group, GETTEXT_PACKAGE); g_option_context_add_group (tmp_ctx, a_group); @@ -1110,7 +1203,14 @@ /* Adds file selection option entries */ a_group = g_option_group_new ("file", _("File selection options"), _("Show file selection options"), NULL, NULL); - g_option_group_add_entries (a_group, file_selection_options); + g_option_group_add_entries (a_group, file_options); + g_option_group_set_translation_domain (a_group, GETTEXT_PACKAGE); + g_option_context_add_group (tmp_ctx, a_group); + + /* Add font selection option entries */ + a_group = g_option_group_new ("font", _("Font selection options"), + _("Show font selection options"), NULL, NULL); + g_option_group_add_entries (a_group, font_options); g_option_group_set_translation_domain (a_group, GETTEXT_PACKAGE); g_option_context_add_group (tmp_ctx, a_group);
View file
yad-0.9.1.tar.bz2/src/progress.c -> yad-0.10.0.tar.bz2/src/progress.c
Changed
@@ -15,7 +15,7 @@ * along with YAD; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * Copyright (C) 2008-2010, Victor Ananjevsky <ananasik@gmail.com> + * Copyright (C) 2008-2011, Victor Ananjevsky <ananasik@gmail.com> * */
View file
yad-0.9.1.tar.bz2/src/scale.c -> yad-0.10.0.tar.bz2/src/scale.c
Changed
@@ -15,7 +15,7 @@ * along with YAD; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * Copyright (C) 2008-2010, Victor Ananjevsky <ananasik@gmail.com> + * Copyright (C) 2008-2011, Victor Ananjevsky <ananasik@gmail.com> * */ @@ -57,9 +57,20 @@ else options.scale_data.value = options.scale_data.min_value; - w = scale = gtk_hscale_new_with_range (options.scale_data.min_value, - options.scale_data.max_value, - options.scale_data.step); + if (options.scale_data.vertical) + { + w = scale = gtk_vscale_new_with_range (options.scale_data.min_value, + options.scale_data.max_value, + options.scale_data.step); + gtk_range_set_inverted (GTK_RANGE (w), !options.scale_data.invert); + } + else + { + w = scale = gtk_hscale_new_with_range (options.scale_data.min_value, + options.scale_data.max_value, + options.scale_data.step); + gtk_range_set_inverted (GTK_RANGE (w), options.scale_data.invert); + } gtk_range_set_value (GTK_RANGE (w), options.scale_data.value); if (options.scale_data.print_partial)
View file
yad-0.9.1.tar.bz2/src/text.c -> yad-0.10.0.tar.bz2/src/text.c
Changed
@@ -15,7 +15,7 @@ * along with YAD; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * Copyright (C) 2008-2010, Victor Ananjevsky <ananasik@gmail.com> + * Copyright (C) 2008-2011, Victor Ananjevsky <ananasik@gmail.com> * */ @@ -28,6 +28,8 @@ static GtkWidget *text_view; static GtkTextBuffer *text_buffer; +static GtkTextTag *tag; +static GdkCursor *hand, *normal; static gboolean key_press_cb (GtkWidget *w, GdkEventKey *key, gpointer data) @@ -39,12 +41,125 @@ if ((key->keyval == GDK_Return || key->keyval == GDK_KP_Enter) && (key->state & GDK_CONTROL_MASK)) #endif - gtk_dialog_response (GTK_DIALOG (data), YAD_RESPONSE_OK); + gtk_dialog_response (GTK_DIALOG (data), YAD_RESPONSE_OK); return FALSE; } static gboolean +tag_event_cb (GtkTextTag *tag, GObject *obj, GdkEvent *ev, + GtkTextIter *iter, gpointer d) +{ + GtkTextIter start = *iter; + GtkTextIter end = *iter; + gchar *url, *cmdline; + + if (ev->type == GDK_BUTTON_PRESS) + { + GdkEventButton *bev = (GdkEventButton *) ev; + + if (bev->button == 1) + { + gtk_text_iter_backward_to_tag_toggle (&start, tag); + 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); + g_free (url); + + g_spawn_command_line_async (cmdline, NULL); + + g_free (cmdline); + return TRUE; + } + } + + return FALSE; +} + +static gboolean hovering_over_link = FALSE; + +static gboolean +motion_cb (GtkWidget *w, GdkEventMotion *ev, gpointer d) +{ + gint x, y; + GSList *tags = NULL, *tagp = NULL; + GtkTextIter iter; + gboolean hovering = FALSE; + + gtk_text_view_window_to_buffer_coords (GTK_TEXT_VIEW (w), GTK_TEXT_WINDOW_WIDGET, + ev->x, ev->y, &x, &y); + + gtk_text_view_get_iter_at_location (GTK_TEXT_VIEW (w), &iter, x, y); + + tags = gtk_text_iter_get_tags (&iter); + for (tagp = tags; tagp != NULL; tagp = tagp->next) + { + GtkTextTag *tag = tagp->data; + gint link = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (tag), "is_link")); + + if (link) + { + hovering = TRUE; + break; + } + } + + if (hovering != hovering_over_link) + { + hovering_over_link = hovering; + + if (hovering_over_link) + gdk_window_set_cursor (gtk_text_view_get_window (GTK_TEXT_VIEW (w), GTK_TEXT_WINDOW_TEXT), hand); + else + gdk_window_set_cursor (gtk_text_view_get_window (GTK_TEXT_VIEW (w), GTK_TEXT_WINDOW_TEXT), normal); + } + + if (tags) + g_slist_free (tags); + + gdk_window_get_pointer (gtk_widget_get_window (w), NULL, NULL, NULL); + + return FALSE; +} + +static void +linkify_cb (GtkTextBuffer *buf, GRegex *regex) +{ + gchar *text; + GtkTextIter start, end; + GMatchInfo *match; + + gtk_text_buffer_get_bounds (buf, &start, &end); + text = gtk_text_buffer_get_text (buf, &start, &end, FALSE); + + gtk_text_buffer_remove_all_tags (buf, &start, &end); + + if (g_regex_match (regex, text, G_REGEX_MATCH_NOTEMPTY, &match)) + { + do + { + gint sp, ep, spos, epos; + + g_match_info_fetch_pos (match, 0, &sp, &ep); + + /* positions are in bytes, not character, so here we must normalize it*/ + spos = g_utf8_pointer_to_offset (text, text + sp); + epos = g_utf8_pointer_to_offset (text, text + ep); + + gtk_text_buffer_get_iter_at_offset (buf, &start, spos); + gtk_text_buffer_get_iter_at_offset (buf, &end, epos); + + gtk_text_buffer_apply_tag (buf, tag, &start, &end); + } + while (g_match_info_next (match, NULL)); + } + g_match_info_free (match); + + g_free(text); +} + +static gboolean handle_stdin (GIOChannel * channel, GIOCondition condition, gpointer data) { @@ -70,9 +185,9 @@ { if (err) { - g_printerr ("yad_text_handle_stdin(): %s", err->message); + g_printerr ("yad_text_handle_stdin(): %s\n", err->message); g_error_free (err); - err = NULL; + err = NULL; } return FALSE; } @@ -156,7 +271,7 @@ if (remaining) { g_printerr (_("Invalid UTF-8 data encountered reading file %s\n"), - options.common_data.uri); + options.common_data.uri); return; } @@ -194,9 +309,9 @@ GtkWidget *w; w = gtk_scrolled_window_new (NULL, NULL); + gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (w), GTK_SHADOW_ETCHED_IN); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (w), - GTK_POLICY_AUTOMATIC, - GTK_POLICY_AUTOMATIC); + GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); text_view = gtk_text_view_new (); text_buffer = gtk_text_buffer_new (NULL); @@ -227,10 +342,10 @@ gtk_widget_modify_base (text_view, GTK_STATE_NORMAL, &clr); } - if (options.text_data.font) + if (options.common_data.font) { PangoFontDescription *fd = - pango_font_description_from_string (options.text_data.font); + pango_font_description_from_string (options.common_data.font); gtk_widget_modify_font (text_view, fd); pango_font_description_free (fd); } @@ -239,6 +354,33 @@ g_signal_connect (text_view, "key-press-event", G_CALLBACK (key_press_cb), dlg); + /* Initialize linkifying */ + if (options.text_data.uri) + { + GRegex *regex; + + regex = g_regex_new (YAD_URL_REGEX, + G_REGEX_CASELESS | G_REGEX_OPTIMIZE | G_REGEX_EXTENDED, + G_REGEX_MATCH_NOTEMPTY, + NULL); + + /* Create text tag for URI */ + tag = gtk_text_buffer_create_tag (text_buffer, NULL, + "foreground", "blue", + "underline", PANGO_UNDERLINE_SINGLE, + NULL); + g_object_set_data (G_OBJECT (tag), "is_link", GINT_TO_POINTER (1)); + g_signal_connect (G_OBJECT (tag), "event", G_CALLBACK (tag_event_cb), NULL); + + /* Create cursors */ + hand = gdk_cursor_new (GDK_HAND2); + normal= gdk_cursor_new (GDK_XTERM); + g_signal_connect (G_OBJECT (text_view), "motion-notify-event", + G_CALLBACK (motion_cb), NULL); + + g_signal_connect_after (G_OBJECT (text_buffer), "changed", G_CALLBACK (linkify_cb), regex); + } + gtk_container_add (GTK_CONTAINER (w), text_view); if (options.common_data.uri)
View file
yad-0.9.1.tar.bz2/src/util.c -> yad-0.10.0.tar.bz2/src/util.c
Changed
@@ -15,7 +15,7 @@ * along with YAD; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * Copyright (C) 2008-2010, Victor Ananjevsky <ananasik@gmail.com> + * Copyright (C) 2008-2011, Victor Ananjevsky <ananasik@gmail.com> * */ @@ -149,7 +149,7 @@ pb = gdk_pixbuf_new_from_file (name, &err); if (!pb) { - g_printerr ("yad_get_pixbuf(): %s", err->message); + g_printerr ("yad_get_pixbuf(): %s\n", err->message); g_error_free (err); } } @@ -204,14 +204,17 @@ return res; } -gchar * -escape_markup (gchar *str) +char * +escape_markup (char *str) { - gchar *res, *buf = str; - guint i = 0, len; + char *res, *buf = str; + unsigned i = 0, len; + if (!str) + return NULL; + len = strlen (str); - res = malloc (len); + res = (char *) calloc (len + 1, sizeof (char)); while (*buf) { @@ -219,31 +222,31 @@ { case '&': len += 4; - res = realloc (res, len); + res = (char *) realloc (res, len + 1); strcpy (res + i, "&"); i += 5; break; case '<': len += 3; - res = realloc (res, len); + res = (char *) realloc (res, len + 1); strcpy (res + i, "<"); i += 4; break; case '>': len += 3; - res = realloc (res, len); + res = (char *) realloc (res, len + 1); strcpy (res + i, ">"); i += 4; break; case '"': len += 5; - res = realloc (res, len); + res = (char *) realloc (res, len + 1); strcpy (res + i, """); i += 6; break; case '\'': len += 5; - res = realloc (res, len); + res = (char *) realloc (res, len + 1); strcpy (res + i, "'"); i += 6; break; @@ -265,6 +268,9 @@ gchar *res, *buf = str; guint i = 0; + if (!str) + return NULL; + res = g_new0 (gchar, strlen (str)); while (*buf)
View file
yad-0.9.1.tar.bz2/src/yad.h -> yad-0.10.0.tar.bz2/src/yad.h
Changed
@@ -34,6 +34,8 @@ #define YAD_RESPONSE_TIMEOUT 70 #define YAD_RESPONSE_ESC -4 /* 252 */ +#define YAD_URL_REGEX "(http|https|ftp)://a-zA-Z0-9./_%#&-+" + typedef enum { YAD_MODE_MESSAGE, YAD_MODE_CALENDAR, @@ -41,6 +43,7 @@ YAD_MODE_DND, YAD_MODE_ENTRY, YAD_MODE_FILE, + YAD_MODE_FONT, YAD_MODE_FORM, YAD_MODE_ICONS, YAD_MODE_LIST, @@ -68,9 +71,13 @@ typedef enum { YAD_COLUMN_TEXT = 0, YAD_COLUMN_NUM, + YAD_COLUMN_FLOAT, YAD_COLUMN_CHECK, YAD_COLUMN_IMAGE, YAD_COLUMN_TOOLTIP, + YAD_COLUMN_ATTR_FORE, + YAD_COLUMN_ATTR_BACK, + YAD_COLUMN_ATTR_FONT, } YadColumnType; typedef enum { @@ -140,6 +147,7 @@ gchar *entry_label; gboolean hide_text; gboolean completion; + gboolean numeric; } YadEntryData; typedef struct { @@ -151,6 +159,10 @@ } YadFileData; typedef struct { + gchar *preview; +} YadFontData; + +typedef struct { GSList *fields; gdouble align; } YadFormData; @@ -171,9 +183,10 @@ gboolean no_headers; gboolean checkbox; gboolean print_all; - gint print_column; - gint hide_column; - gint expand_column; + guint print_column; + guint hide_column; + guint expand_column; + guint limit; } YadListData; typedef struct { @@ -197,20 +210,23 @@ gboolean print_partial; gboolean hide_value; gboolean have_value; + gboolean vertical; + gboolean invert; } YadScaleData; typedef struct { gchar *fore; gchar *back; - gchar *font; gboolean wrap; GtkJustification justify; gint margins; gboolean tail; + gboolean uri; } YadTextData; typedef struct { gchar *uri; + gchar *font; gchar *separator; gchar *item_separator; gboolean editable; @@ -228,6 +244,7 @@ YadColorData color_data; YadEntryData entry_data; YadFileData file_data; + YadFontData font_data; YadFormData form_data; YadIconsData icons_data; YadListData list_data; @@ -237,6 +254,8 @@ YadTextData text_data; gchar **extra_data; + + gboolean kill_parent; } YadOptions; extern YadOptions options; @@ -271,6 +290,7 @@ GtkWidget * color_create_widget (GtkWidget *dlg); GtkWidget * entry_create_widget (GtkWidget *dlg); GtkWidget * file_create_widget (GtkWidget *dlg); +GtkWidget * font_create_widget (GtkWidget *dlg); GtkWidget * form_create_widget (GtkWidget *dlg); GtkWidget * icons_create_widget (GtkWidget *dlg); GtkWidget * list_create_widget (GtkWidget *dlg); @@ -284,6 +304,7 @@ void color_print_result (void); void entry_print_result (void); void file_print_result (void); +void font_print_result (void); void form_print_result (void); void list_print_result (void); void progress_print_result (void);
View file
yad-0.9.1.tar.bz2/src/fileselection.c
Deleted
@@ -1,181 +0,0 @@ -/* - * This file is part of YAD. - * - * YAD is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * YAD is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with YAD; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Copyright (C) 2008-2010, Victor Ananjevsky <ananasik@gmail.com> - * - */ - -#include "yad.h" - -static GtkWidget *filechooser; - -static void -file_activated_cb (GtkFileChooser *chooser, gpointer *data) -{ - gtk_dialog_response (GTK_DIALOG (data), YAD_RESPONSE_OK); -} - -void -confirm_overwrite_cb (GtkDialog *dlg, gint id, gpointer data) -{ - if (id != YAD_RESPONSE_OK) - return; - - if (options.file_data.save && - options.file_data.confirm_overwrite && - !options.common_data.multi) - { - gchar *filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (filechooser)); - - if (g_file_test (filename, G_FILE_TEST_EXISTS)) - { - GtkWidget *d; - gint r; - gchar *buf; - - buf = g_strcompress (options.file_data.confirm_text); - d = gtk_message_dialog_new (GTK_WINDOW (dlg), GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, - "%s", buf); - g_free (buf); - r = gtk_dialog_run (GTK_DIALOG (d)); - gtk_widget_destroy (d); - if (r != GTK_RESPONSE_YES) - g_signal_stop_emission_by_name (dlg, "response"); - } - } -} - -GtkWidget * -file_create_widget (GtkWidget *dlg) -{ - GtkWidget *w; - gchar *dir, *basename; - GtkFileChooserAction action = GTK_FILE_CHOOSER_ACTION_OPEN; - - if (options.file_data.directory) - { - if (options.file_data.save) - action = GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER; - else - action = GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER; - } - else - { - if (options.file_data.save) - action = GTK_FILE_CHOOSER_ACTION_SAVE; - } - - w = filechooser = gtk_file_chooser_widget_new (action); - - if (options.common_data.uri) - { - dir = g_path_get_dirname (options.common_data.uri); - - if (g_path_is_absolute (options.common_data.uri) == TRUE) - gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (w), dir); - - if (options.common_data.uristrlen (options.common_data.uri) - 1 != '/') - { - basename = g_path_get_basename (options.common_data.uri); - if (options.file_data.save) - gtk_file_chooser_set_current_name (GTK_FILE_CHOOSER (w), - basename); - else - gtk_file_chooser_set_filename (GTK_FILE_CHOOSER (w), - options.common_data.uri); - g_free (basename); - } - g_free (dir); - } - - if (options.common_data.multi) - gtk_file_chooser_set_select_multiple (GTK_FILE_CHOOSER (w), TRUE); - - if (options.file_data.filter) - { - /* Filter format: Executables | *.exe *.bat *.com */ - gint filter_i; - - for (filter_i = 0; options.file_data.filterfilter_i; filter_i++) - { - GtkFileFilter *filter = gtk_file_filter_new (); - gchar *filter_str = options.file_data.filterfilter_i; - gchar **pattern, **patterns; - gchar *name = NULL; - gint i; - - /* Set name */ - for (i = 0; filter_stri != '\0'; i++) - { - if (filter_stri == '|') - break; - } - - if (filter_stri == '|') - 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_stri == ' '; 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); - } - } - - g_signal_connect (w, "file-activated", - G_CALLBACK (file_activated_cb), dlg); - - return w; -} - -void -file_print_result (void) -{ - GSList *selections, *iter; - - selections = gtk_file_chooser_get_filenames (GTK_FILE_CHOOSER (filechooser)); - for (iter = selections; iter != NULL; iter = iter->next) - { - g_print ("%s", - g_filename_to_utf8 ((gchar *) iter->data, -1, NULL, NULL, - NULL)); - g_free (iter->data); - if (iter->next != NULL) - g_print ("%s", options.common_data.separator); - } - g_print ("\n"); - g_slist_free (selections); -}
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.