Projects
Extra
yad
Sign Up
Log In
Username
Password
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 23
View file
yad.changes
Changed
@@ -1,4 +1,18 @@ ------------------------------------------------------------------- +Tue Nov 22 00:00:00 UTC 2011 - detlef@links2linux.de + +- new upstream version <0.16.0> + + * add printing dialog + * add callbacks for dialog buttons + * add icons for popup menu in notification icon + * add french translation + * make Return works for combo-boxes in entry dialog + * change notification behavior. if --listen is specified, left + click on icon doesn't close it + * add --text-align option for aligning dialog text + +------------------------------------------------------------------- Sun Nov 06 00:00:00 UTC 2011 - detlef@links2linux.de - new upstream version <0.15.1>
View file
yad.spec
Changed
@@ -1,7 +1,7 @@ # norootforbuild Name: yad -Version: 0.15.1 +Version: 0.16.0 Release: 1 Summary: A fork of Zenity with many improvements
View file
yad-0.15.1.tar.bz2/ChangeLog -> yad-0.16.0.tar.bz2/ChangeLog
Changed
@@ -1,3 +1,236 @@ +2011-11-21 15:48 ananasik + + * configure.ac, src/print.c: prepare to release + +2011-11-21 12:50 ananasik + + * po/de.po, po/fr.po, po/ru.po, po/sk.po, po/uk.po, src/print.c: + +2011-11-21 09:43 ananasik + + * src/print.c: fix raw printing + +2011-11-20 19:56 ananasik + + * configure.ac: bump version to 0.15.101 + +2011-11-20 19:54 ananasik + + * src/notification.c: + +2011-11-20 19:50 ananasik + + * src/notification.c: + +2011-11-20 19:48 ananasik + + * data/yad.1, src/notification.c: add icons to popup menu in + notification + +2011-11-19 10:33 ananasik + + * src/print.c: + +2011-11-19 09:40 ananasik + + * po/de.po, po/fr.po, po/ru.po, po/sk.po, po/uk.po, src/print.c: + add check file type for rwa printing + +2011-11-19 06:01 ananasik + + * src/entry.c: make enter works for combobox in entry dialog + +2011-11-19 05:37 ananasik + + * data/yad.1: update man page + +2011-11-18 14:51 ananasik + + * src/print.c: + +2011-11-17 13:05 ananasik + + * src/main.c: + +2011-11-16 11:24 ananasik + + * configure.ac, data/yad.1, po/de.po, po/fr.po, po/ru.po, po/sk.po, + po/uk.po, src/option.c: update translation and man page + +2011-11-16 09:51 ananasik + + * src/option.c, src/print.c, src/yad.h: add preview and fontname + options to print dialog + +2011-11-16 09:19 ananasik + + * src/print.c: add raw type to print + +2011-11-16 06:18 ananasik + + * src/print.c: + +2011-11-16 05:10 ananasik + + * src/print.c: + +2011-11-16 04:58 ananasik + + * src/print.c: + +2011-11-15 19:29 ananasik + + * po/de.po, po/fr.po, po/ru.po, po/sk.po, po/uk.po: update + translations + +2011-11-15 19:15 ananasik + + * src/print.c: fix printing text + +2011-11-15 15:30 ananasik + + * src/print.c: + +2011-11-15 14:47 ananasik + + * src/option.c, src/print.c, src/yad.h: + +2011-11-14 15:59 ananasik + + * src/print.c: + +2011-11-14 13:47 ananasik + + * src/main.c: add application name + +2011-11-14 13:36 ananasik + + * src/main.c, src/option.c, src/print.c, src/util.c, src/yad.h: + +2011-11-14 11:13 ananasik + + * src/print.c: fix print dialog + +2011-11-14 11:04 ananasik + + * src/main.c: fix --print-xid + +2011-11-14 10:56 ananasik + + * src/main.c: fix --print-xid + +2011-11-13 17:12 ananasik + + * data/yad.1, src/notification.c: don't close notification icon + when --listen specified. update man page + +2011-11-13 16:34 ananasik + + * data/yad.1: update man page + +2011-11-13 16:32 ananasik + + * data/yad.1: update man page + +2011-11-13 16:28 ananasik + + * po/LINGUAS, po/de.po, po/fr.po, po/ru.po, po/sk.po, po/uk.po: add + french translation + +2011-11-13 11:12 ananasik + + * src/print.c: + +2011-11-13 11:05 ananasik + + * src/form.c, src/notification.c, src/option.c: add --unit option + to print dialog + +2011-11-13 10:58 ananasik + + * src/color.c, src/dnd.c, src/entry.c, src/font.c, src/list.c, + src/print.c, src/yad.h: add initial print dialog + +2011-11-13 10:24 ananasik + + * src/print.c: + +2011-11-13 07:48 ananasik + + * src/print.c: + +2011-11-13 07:48 ananasik + + * src/print.c: + +2011-11-13 07:21 ananasik + + * configure.ac, src/main.c, src/option.c, src/print.c: + +2011-11-12 02:22 ananasik + + * data/yad.1: update man page + +2011-11-11 14:14 ananasik + + * src/util.c, src/yad.h: + +2011-11-10 18:05 ananasik + + * src/print.c: add print.c + +2011-11-10 12:42 ananasik + + * po/POTFILES.in, src/Makefile.am, src/main.c, src/option.c, + src/yad.h: prepare to add print dialog + +2011-11-10 12:06 ananasik + + * src/main.c, src/util.c, src/yad.h: prepare to add print dialog + +2011-11-10 05:41 ananasik + + * data/yad.1: update man page + +2011-11-10 05:38 ananasik + + * src/main.c: fix adding pid to dialog buttons callback + +2011-11-10 04:49 ananasik
View file
yad-0.15.1.tar.bz2/NEWS -> yad-0.16.0.tar.bz2/NEWS
Changed
@@ -1,3 +1,13 @@ +Version 0.16.0 + - add printing dialog + - add callbacks for dialog buttons + - add icons for popup menu in notification icon + - add french translation + - make Return works for combo-boxes in entry dialog + - change notification behavior. if --listen is specified, left click on icon + doesn't close it + - add --text-align option for aligning dialog text + Version 0.15.1 - fix grid placement in form dialog - fix popup menu in editable lists
View file
yad-0.15.1.tar.bz2/aclocal.m4 -> yad-0.16.0.tar.bz2/aclocal.m4
Changed
@@ -647,10 +647,6 @@ CATOBJEXT=.mo DATADIRNAME=lib) ;; - *-*-openbsd*) - CATOBJEXT=.mo - DATADIRNAME=share - ;; *) CATOBJEXT=.mo DATADIRNAME=lib
View file
yad-0.15.1.tar.bz2/configure -> yad-0.16.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.15.1. +# Generated by GNU Autoconf 2.68 for YAD 0.16.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.15.1' -PACKAGE_STRING='YAD 0.15.1' +PACKAGE_VERSION='0.16.0' +PACKAGE_STRING='YAD 0.16.0' PACKAGE_BUGREPORT='http://code.google.com/p/yad/issues/entry' PACKAGE_URL='http://code.google.com/p/yad' @@ -1312,7 +1312,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.15.1 to adapt to many kinds of systems. +\`configure' configures YAD 0.16.0 to adapt to many kinds of systems. Usage: $0 OPTION... VAR=VALUE... @@ -1378,7 +1378,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of YAD 0.15.1:";; + short | recursive ) echo "Configuration of YAD 0.16.0:";; esac cat <<\_ACEOF @@ -1488,7 +1488,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -YAD configure 0.15.1 +YAD configure 0.16.0 generated by GNU Autoconf 2.68 Copyright (C) 2010 Free Software Foundation, Inc. @@ -1857,7 +1857,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.15.1, which was +It was created by YAD $as_me 0.16.0, which was generated by GNU Autoconf 2.68. Invocation command line was $ $0 $@ @@ -2672,7 +2672,7 @@ # Define the identity of the package. PACKAGE='yad' - VERSION='0.15.1' + VERSION='0.16.0' cat >>confdefs.h <<_ACEOF @@ -4986,10 +4986,12 @@ gtk3) GTK_MODULE="gtk+-3.0" GTK_REQUIRED="3.0.0" + GTK_PRINT="gtk+-unix-print-3.0" ;; gtk2) GTK_MODULE="gtk+-2.0" GTK_REQUIRED="2.16.0" + GTK_PRINT="gtk+-unix-print-2.0" ;; esac @@ -5120,12 +5122,12 @@ pkg_cv_YAD_CFLAGS="$YAD_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GTK_MODULE >= \$GTK_REQUIRED\""; } >&5 - ($PKG_CONFIG --exists --print-errors "$GTK_MODULE >= $GTK_REQUIRED") 2>&5 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GTK_MODULE >= \$GTK_REQUIRED \$GTK_PRINT\""; } >&5 + ($PKG_CONFIG --exists --print-errors "$GTK_MODULE >= $GTK_REQUIRED $GTK_PRINT") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then - pkg_cv_YAD_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULE >= $GTK_REQUIRED" 2>/dev/null` + pkg_cv_YAD_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULE >= $GTK_REQUIRED $GTK_PRINT" 2>/dev/null` else pkg_failed=yes fi @@ -5136,12 +5138,12 @@ pkg_cv_YAD_LIBS="$YAD_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GTK_MODULE >= \$GTK_REQUIRED\""; } >&5 - ($PKG_CONFIG --exists --print-errors "$GTK_MODULE >= $GTK_REQUIRED") 2>&5 + { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$GTK_MODULE >= \$GTK_REQUIRED \$GTK_PRINT\""; } >&5 + ($PKG_CONFIG --exists --print-errors "$GTK_MODULE >= $GTK_REQUIRED $GTK_PRINT") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then - pkg_cv_YAD_LIBS=`$PKG_CONFIG --libs "$GTK_MODULE >= $GTK_REQUIRED" 2>/dev/null` + pkg_cv_YAD_LIBS=`$PKG_CONFIG --libs "$GTK_MODULE >= $GTK_REQUIRED $GTK_PRINT" 2>/dev/null` else pkg_failed=yes fi @@ -5161,14 +5163,14 @@ _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - YAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$GTK_MODULE >= $GTK_REQUIRED" 2>&1` + YAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$GTK_MODULE >= $GTK_REQUIRED $GTK_PRINT" 2>&1` else - YAD_PKG_ERRORS=`$PKG_CONFIG --print-errors "$GTK_MODULE >= $GTK_REQUIRED" 2>&1` + YAD_PKG_ERRORS=`$PKG_CONFIG --print-errors "$GTK_MODULE >= $GTK_REQUIRED $GTK_PRINT" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$YAD_PKG_ERRORS" >&5 - as_fn_error $? "Package requirements ($GTK_MODULE >= $GTK_REQUIRED) were not met: + as_fn_error $? "Package requirements ($GTK_MODULE >= $GTK_REQUIRED $GTK_PRINT) were not met: $YAD_PKG_ERRORS @@ -6248,10 +6250,6 @@ fi ;; - *-*-openbsd*) - CATOBJEXT=.mo - DATADIRNAME=share - ;; *) CATOBJEXT=.mo DATADIRNAME=lib @@ -6933,7 +6931,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.15.1, which was +This file was extended by YAD $as_me 0.16.0, which was generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -7000,7 +6998,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.15.1 +YAD config.status 0.16.0 configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\"
View file
yad-0.15.1.tar.bz2/configure.ac -> yad-0.16.0.tar.bz2/configure.ac
Changed
@@ -1,4 +1,4 @@ -AC_INIT(YAD, 0.15.1, http://code.google.com/p/yad/issues/entry, yad, http://code.google.com/p/yad) +AC_INIT(YAD, 0.16.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) @@ -28,13 +28,15 @@ gtk3) GTK_MODULE="gtk+-3.0" GTK_REQUIRED="3.0.0" + GTK_PRINT="gtk+-unix-print-3.0" ;; gtk2) GTK_MODULE="gtk+-2.0" GTK_REQUIRED="2.16.0" + GTK_PRINT="gtk+-unix-print-2.0" ;; esac -PKG_CHECK_MODULES(YAD, $GTK_MODULE >= $GTK_REQUIRED) +PKG_CHECK_MODULES(YAD, $GTK_MODULE >= $GTK_REQUIRED $GTK_PRINT) AC_SUBST(YAD_CFLAGS) AC_SUBST(YAD_LIBS)
View file
yad-0.15.1.tar.bz2/data/yad.1 -> yad-0.16.0.tar.bz2/data/yad.1
Changed
@@ -54,6 +54,9 @@ .B \-\-notification Display notification icon. .TP +.B \-\-print +Display print dialog. +.TP .B \-\-progress Display progress indication dialog. .TP @@ -100,7 +103,7 @@ \fIIMAGE\fP might be file name or icon name from current icon theme. .TP .B \-\-image-on-top -Show image above main widget instead of left. +Show image above main widget instead of left. This option is always on for print dialog. .TP .B \-\-icon-theme=THEME Use specified GTK icon theme instead of default. @@ -109,10 +112,13 @@ Hide main widget with expander. \fITEXT\fP is an optional argument with expander's label. .TP .B \-\-button=BUTTON:ID -Add the dialog button. May be used several times. \fIID\fP is an exit code. +Add the dialog button. May be used multiply times. \fIID\fP is an exit code or a command. \fIBUTTON\fP may be gtk stock item name for predefined buttons (like gtk-close or gtk-ok) or simple text label. Full list of stock items may be found in gtk-demo program, in snippet called \fI"Stock Items and Icon Browser"\fP. If no buttons specified \fIOK\fP and \fICancel\fP buttons used. See \fBEXIT STATUS\fP section for more. +If \fIID\fP have a non-numeric value it treats like a command and click on such button doesn't close the dialog. +If command have a `%d' template, \fIYAD\fP replace it with value of his pid. + .TP .B \-\-no-buttons Don't show buttons. @@ -314,23 +320,38 @@ .TP .B \-\-field=LABEL:TYPE Add field to form. Type may be \fIH\fP, \fIRO\fP, \fINUM\fP, \fICHK\fP, \fICB\fP, \fICBE\fP, \fIFL\fP, \fISFL\fP, \fIDIR\fP, \fICDIR\fP, \fIFN\fP, \fIMFL\fP, \fIDT\fP, \fICLR\fP,\fIBTN\fP or \fILBL\fP. -\fIH\fP - hidden field type. All characters are displayed as the invisible char. -\fIRO\fP - field is in read-only mode. -\fINUM\fP - field is a numeric. Initial value format for this field is \fIVALUE!RANGE!STEP\fP, -where \fIRANGE\fP must be in form \fIMIN..MAX\fP. `!' is a default item separator. -\fICHK\fP - checkbox field. Initial value is a case insensitive boolean constant (\fITRUE\fP or \fIFALSE\fP). -\fICB\fP - combo-box field. Initial value is a list \fIVAL1!VAL2!...\fP. The separator is the same as in \fINUM\fP field. -\fICBE\fP - editable combo-box field. Initial value same as for combo-box. -\fIFL\fP - file selection button. -\fISFL\fp - field for create file. -\fIDIR\fP - directory selection button. -\fICDIR\fp - field for create folder. -\fIFN\fP - font selection button. Initial value same as in font dialog. -\fIMFL\fP - select multiple files. Value of this field is a list of files separated by \fIitem-separator\fP. -\fIDT\fP - date field. -\fICLR\fP - color selection button. -\fIBTN\fP - button field. Label may be in form \fITEXT!TOOLTIP\fP. \fITEXT\fP is a text of button label or gtk stock id. \fITOOLTIP\fP is an optional text for popup help string. Initial value is a command which is running when button is clicked. A special sympols \fI%N\fp in command are replaced by value of field \fIN\fP. If command starts with \fI@\fP, the output of command will be parsed and lines started with numeric will be treats as a new field values. -\fILBL\fP - text label. If field name is empty, horisontal separator line will be shown. +.br +\fBH\fP - hidden field type. All characters are displayed as the invisible char. +.br +\fBRO\fP - field is in read-only mode. +.br +\fBNUM\fP - field is a numeric. Initial value format for this field is \fIVALUE!RANGE!STEP\fP, where \fIRANGE\fP must be in form \fIMIN..MAX\fP. `!' is a default item separator. +.br +\fBCHK\fP - checkbox field. Initial value is a case insensitive boolean constant (\fITRUE\fP or \fIFALSE\fP). +.br +\fBCB\fP - combo-box field. Initial value is a list \fIVAL1!VAL2!...\fP. The separator is the same as in \fINUM\fP field. +.br +\fBCBE\fP - editable combo-box field. Initial value same as for combo-box. +.br +\fBFL\fP - file selection button. +.br +\fBSFL\fP - field for create file. +.br +\fBDIR\fP - directory selection button. +.br +\fBCDIR\fP - field for create folder. +.br +\fBFN\fP - font selection button. Initial value same as in font dialog. +.br +\fBMFL\fP - select multiple files. Value of this field is a list of files separated by \fIitem-separator\fP. +.br +\fBDT\fP - date field. +.br +\fBCLR\fP - color selection button. +.br +\fBBTN\fP - button field. Label may be in form \fITEXT!TOOLTIP\fP. \fITEXT\fP is a text of button label or gtk stock id. \fITOOLTIP\fP is an optional text for popup help string. Initial value is a command which is running when button is clicked. A special sympols \fI%N\fP in command are replaced by value of field \fIN\fP. If command starts with \fI@\fP, the output of command will be parsed and lines started with numeric will be treats as a new field values. +.br +\fBLBL\fP - text label. If field name is empty, horisontal separator line will be shown. .TP .B \-\-align=TYPE Set alignment of fields labels. Possible types are \fIleft\fP, \fIcenter\fP or \fIright\fP. Default is left. @@ -419,20 +440,38 @@ Notification options .TP .B \-\-command=CMD -Set the command running when clicked on the icon. +Set the command running when clicked on the icon. Default action is \fIquit\fP if \fI\-\-listen\fP not specified. .TP .B \-\-listen Listen for commands on stdin. See \fBNOTIFICATION\fP section. .TP .B \-\-separator=STRING -Set separator character for menu values. Default is `|'. +Set separator character for menu values. Default is \fI|\fP. .TP .B \-\-item-separator=STRING -Set separator character for menu items. Default is `!'. +Set separator character for menu items. Default is \fI!\fP. .PP See \fBNOTIFICATION\fP section for more about separators. .PP +Print options +.TP +.B \-\-type=TYPE +Set source file type. \fITYPE\fP may be a \fITEXT\fP for text files, \fIIMAGE\fP for image files or \fIRAW\fP for files in postscript or pdf formats. +.TP +.B \-\-filename=FILENAME +Set name or path to the source file. +.TP +.B \-\-headers +Add headers to the top of page with filename and page number. This option doesn't work for \fIRAW\fP type. +.TP +.B \-\-add-preview +Add \fIPreview\fP button to the print dialog. This option doesn't work for \fIRAW\fP type. +.TP +.B \-\-fontname=FONTNAME +Set the font for printing text. \fIFONTNAME\fP is a string with font representation in the form \fI"FAMILY-LIST STYLE-OPTIONS SIZE"\fP. This option works only for \fITEXT\fP type. + +.PP Progress options .PP When the \-\-progress option is used, yad reads lines of progress data from stdin. @@ -557,13 +596,13 @@ .TP .B action:COMMAND -Specify the command running when double-clicked on the icon. +Specify the command running when click on the icon. Special string \fI"quit"\fP exit the program. .TP .B menu:STRING Set popup menu for notification icon. -STRING must be in form \fIname1!action1|name2!action2...\fP. +STRING must be in form \fIname1!action1!icon1|name2!action2!icon2...\fP. Empty name add separator to menu. Separator character for values (e.g. `|') sets with \-\-separator argument. Separator character for menu items (e.g. `!') sets with \-\-item-separator argument.
View file
yad-0.15.1.tar.bz2/po/LINGUAS -> yad-0.16.0.tar.bz2/po/LINGUAS
Changed
@@ -3,6 +3,7 @@ # please keep this list sorted alphabetically # de +fr ru sk uk
View file
yad-0.15.1.tar.bz2/po/POTFILES.in -> yad-0.16.0.tar.bz2/po/POTFILES.in
Changed
@@ -11,6 +11,7 @@ src/list.c src/option.c src/multi-progress.c +src/print.c src/progress.c src/color.c src/text.c
View file
yad-0.15.1.tar.bz2/po/de.po -> yad-0.16.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-10-12 14:13+0300\n" +"POT-Creation-Date: 2011-11-21 11:42+0200\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" @@ -68,46 +68,46 @@ msgid "Cannot open file '%s': %s\n" msgstr "" -#: ../src/entry.c:145 ../src/scale.c:39 +#: ../src/entry.c:158 ../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/entry.c:151 ../src/scale.c:48 +#: ../src/entry.c:164 ../src/scale.c:48 #, c-format msgid "Initial value less than minimal.\n" msgstr "" -#: ../src/entry.c:156 ../src/scale.c:53 +#: ../src/entry.c:169 ../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:303 +#: ../src/form.c:305 #, fuzzy msgid "Select files" msgstr "Datei öffnen" -#: ../src/form.c:367 +#: ../src/form.c:369 #, fuzzy msgid "Select or create file" msgstr "Datei öffnen" -#: ../src/form.c:376 +#: ../src/form.c:378 msgid "Select or create folder" msgstr "" -#: ../src/form.c:409 +#: ../src/form.c:411 #, fuzzy msgid "Select date" msgstr "Datei öffnen" -#: ../src/form.c:542 +#: ../src/form.c:546 #, fuzzy msgid "Select file" msgstr "Datei öffnen" -#: ../src/form.c:549 +#: ../src/form.c:553 msgid "Select folder" msgstr "" @@ -121,955 +121,1033 @@ msgid "Unable to open directory %s: %s\n" msgstr "Kann Befehlszeile nicht einlesen: %s\n" -#: ../src/main.c:74 ../src/main.c:211 +#: ../src/main.c:89 ../src/main.c:229 #, c-format msgid "%d sec" msgstr "" -#: ../src/main.c:472 +#: ../src/main.c:501 #, c-format msgid "Unable parse command line: %s\n" msgstr "Kann Befehlszeile nicht einlesen: %s\n" -#: ../src/notification.c:70 +#: ../src/notification.c:82 #, fuzzy, c-format msgid "Could not load notification icon '%s': %s\n" msgstr "Kann Benachrichtigungs-Symbol '%s' nicht laden: %s" -#: ../src/notification.c:234 +#: ../src/notification.c:261 #, 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:323 #, c-format msgid "Unknown command '%s'\n" msgstr "Befehl '%s' unbekannt\n" -#: ../src/notification.c:333 +#: ../src/notification.c:359 msgid "Yad notification" msgstr "Yad Benachrichtigung" -#: ../src/list.c:700 +#: ../src/list.c:703 msgid "Add row" msgstr "Reihe hinzufügen" -#: ../src/list.c:709 +#: ../src/list.c:712 msgid "Delete row" msgstr "Reihe löschen" -#: ../src/list.c:738 +#: ../src/list.c:741 #, c-format msgid "No column titles specified for List dialog.\n" msgstr "Keine Spaltentitel für Listendialog angegeben\n" -#: ../src/option.c:57 +#: ../src/option.c:62 msgid "Set the dialog title" msgstr "Dialogtitel angeben" -#: ../src/option.c:58 +#: ../src/option.c:63 msgid "TITLE" msgstr "TITEL" -#: ../src/option.c:63 +#: ../src/option.c:68 msgid "Set the window icon" msgstr "Fenster-Symbol angeben" -#: ../src/option.c:64 +#: ../src/option.c:69 msgid "ICONPATH" msgstr "SYMBOLPFAD" -#: ../src/option.c:69 +#: ../src/option.c:74 msgid "Set the width" msgstr "Breite angeben" -#: ../src/option.c:70 +#: ../src/option.c:75 msgid "WIDTH" msgstr "BREITE" -#: ../src/option.c:75 +#: ../src/option.c:80 msgid "Set the height" msgstr "Höhe angeben" -#: ../src/option.c:76 +#: ../src/option.c:81 msgid "HEIGHT" msgstr "HÖHE" -#: ../src/option.c:81 +#: ../src/option.c:86 #, fuzzy msgid "Set the window geometry" msgstr "Fenster-Symbol angeben" -#: ../src/option.c:82 +#: ../src/option.c:87 msgid "WxH+X+Y" msgstr "" -#: ../src/option.c:87 +#: ../src/option.c:92 msgid "Set dialog timeout in seconds" msgstr "Ablaufzeit in Sekunden angeben" -#: ../src/option.c:88 +#: ../src/option.c:93 msgid "TIMEOUT" msgstr "ABLAUFZEIT" -#: ../src/option.c:93 +#: ../src/option.c:98 msgid "Show remaining time indicator (top, bottom, left, right)" msgstr "" -#: ../src/option.c:94 +#: ../src/option.c:99 msgid "POS" msgstr "" -#: ../src/option.c:99 +#: ../src/option.c:104 msgid "Set the dialog text" msgstr "Dialogtext angeben" -#: ../src/option.c:100 ../src/option.c:124 ../src/option.c:337 -#: ../src/option.c:343 ../src/option.c:349 ../src/option.c:477 -#: ../src/option.c:761 +#: ../src/option.c:105 ../src/option.c:135 ../src/option.c:348
View file
yad-0.16.0.tar.bz2/po/fr.po
Added
@@ -0,0 +1,1185 @@ +# French translation for YAD +# This file is distributed under the same license as the YAD package. +# +# Yannou90 <windaube.non.merci@gmail.com>, 2011. +# +msgid "" +msgstr "" +"Project-Id-Version: YAD\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2011-11-21 11:42+0200\n" +"PO-Revision-Date: \n" +"Last-Translator: Yannou90 <windaube.non.merci@gmail.com>\n" +"Language-Team: Français\n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: French\n" +"X-Poedit-Country: FRANCE\n" +"X-Poedit-SourceCharset: utf-8\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#: ../src/about.c:30 +msgid "translator-credits" +msgstr "" +"Stephen Kennedy <steve9000@users.sourceforge.net>, 2003\n" +"Jonathan Ernst <jonathan@ernstfamily.ch>, 2006\n" +"Claude Paroz <claude@2xlibre.net>, 2006-2010\n" +"Robert-André Mauchin <zebob.m@pengzone.org>, 2007\n" +"Bruno Brouard <annoa.b@gmail.com>, 2009-2010\n" +"Yannou90 <windaube.non.merci@gmail.com>, 2011" + +#: ../src/about.c:32 +msgid "" +"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.\n" +"\n" +"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.\n" +"\n" +"You should have received a copy of the GNU General Public License along with " +"YAD. If not, see <http://www.gnu.org/licenses/>." +msgstr "" +"Yad est un logiciel libre; vous pouvez le redistribuer et/ou le modifier " +"selon les termes de la Licence Publique Générale GNU publiée par la Free " +"Software Foundation soit la version 3 de la Licence, ou (à votre choix) " +"toute version ultérieure.\n" +"\n" +"Yad est distribué dans l'espoir qu'il sera utile, mais SANS AUCUNE GARANTIE: " +"sans même la garantie implicite de COMMERCIALISATION ou D'ADAPTATION A UN " +"OBJET PARTICULIER. Voir la Licence Publique Générale GNU pour plus de " +"détails.\n" +"\n" +"Vous devriez avoir reçu un exemplaire de la Licence Publique Générale GNU " +"avec Yad. Si non, voyez <http://www.gnu.org/licenses/>." + +#: ../src/about.c:50 +msgid "" +"Yet Another Dialog\n" +"(show dialog boxes from shell scripts)\n" +"\n" +"Based on Zenity code\n" +msgstr "" +"Yet Another dialogue\n" +"(Afficher des boîtes de dialogue à partir de scripts shell)\n" +"\n" +"Basé sur le code Zenity\n" + +#: ../src/calendar.c:39 ../src/text.c:241 +#, c-format +msgid "Cannot open file '%s': %s\n" +msgstr "Impossible d'ouvrir le fichier '%s': %s\n" + +#: ../src/entry.c:158 ../src/scale.c:39 +#, c-format +msgid "Maximum value must be greater than minimum value.\n" +msgstr "La valeur minimale doit être inférieure à la valeur maximale.\n" + +#: ../src/entry.c:164 ../src/scale.c:48 +#, c-format +msgid "Initial value less than minimal.\n" +msgstr "Valeur initial inférieur à la minimal.\n" + +#: ../src/entry.c:169 ../src/scale.c:53 +#, c-format +msgid "Initial value greater than maximum.\n" +msgstr "Valeur initial supérieur à la maximal.\n" + +#: ../src/form.c:305 +msgid "Select files" +msgstr "Sélectionner _tous les fichiers" + +#: ../src/form.c:369 +msgid "Select or create file" +msgstr "Sélectionner ou créer le fichier" + +#: ../src/form.c:378 +msgid "Select or create folder" +msgstr "Sélectionner ou créer le dossier" + +#: ../src/form.c:411 +msgid "Select date" +msgstr "Sélectionner une date" + +#: ../src/form.c:546 +msgid "Select file" +msgstr "Sélectionner le fichier" + +#: ../src/form.c:553 +msgid "Select folder" +msgstr "Choisir un répertoire" + +#: ../src/icons.c:247 +#, c-format +msgid "Unable to parse file %s: %s\n" +msgstr "Impossible d'analyser le fichier %s: %s\n" + +#: ../src/icons.c:264 +#, c-format +msgid "Unable to open directory %s: %s\n" +msgstr "impossible d'ouvrir le répertoire %s: %s\n" + +#: ../src/main.c:89 ../src/main.c:229 +#, c-format +msgid "%d sec" +msgstr "%d sec" + +#: ../src/main.c:501 +#, c-format +msgid "Unable parse command line: %s\n" +msgstr "Impossible d'analyser la ligne de commande: %s\n" + +#: ../src/notification.c:82 +#, c-format +msgid "Could not load notification icon '%s': %s\n" +msgstr "Impossible de charger l'icône de notification '%s': %s\n" + +#: ../src/notification.c:261 +#, c-format +msgid "Invalid UTF-8 in tooltip!\n" +msgstr "Charactère UTF-8 invalide du tooltip!\n" + +#: ../src/notification.c:323 +#, c-format +msgid "Unknown command '%s'\n" +msgstr "Commande inconnue: '%s'\n" + +#: ../src/notification.c:359 +msgid "Yad notification" +msgstr "Yad notification" + +#: ../src/list.c:703 +msgid "Add row" +msgstr "Ajouter une ligne" + +#: ../src/list.c:712 +msgid "Delete row" +msgstr "Supprimer la ligne" + +#: ../src/list.c:741 +#, c-format +msgid "No column titles specified for List dialog.\n" +msgstr "Pas de titre de colonne spécifié pour liste.\n" + +#: ../src/option.c:62 +msgid "Set the dialog title" +msgstr "Définit le titre" + +#: ../src/option.c:63 +msgid "TITLE" +msgstr "TITRE" + +#: ../src/option.c:68 +msgid "Set the window icon" +msgstr "Définir l'icône de la fenêtre" + +#: ../src/option.c:69 +msgid "ICONPATH" +msgstr "ICONPATH" + +#: ../src/option.c:74 +msgid "Set the width" +msgstr "Définir la largeur" + +#: ../src/option.c:75 +msgid "WIDTH" +msgstr "LARGEUR" + +#: ../src/option.c:80 +msgid "Set the height" +msgstr "Définir la hauteur" + +#: ../src/option.c:81 +msgid "HEIGHT"
View file
yad-0.15.1.tar.bz2/po/ru.po -> yad-0.16.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-10-12 14:13+0300\n" +"POT-Creation-Date: 2011-11-21 11:42+0200\n" "PO-Revision-Date: 2009-04-30 16:47+0300\n" "Last-Translator: Victor Ananjevsky <ananasik@gmail.com>\n" "Language-Team: Russian\n" @@ -68,42 +68,42 @@ msgid "Cannot open file '%s': %s\n" msgstr "Не могу открыть файл %s: %s\n" -#: ../src/entry.c:145 ../src/scale.c:39 +#: ../src/entry.c:158 ../src/scale.c:39 #, c-format msgid "Maximum value must be greater than minimum value.\n" msgstr "Максимальное значение должно быть больше, чем минимальное.\n" -#: ../src/entry.c:151 ../src/scale.c:48 +#: ../src/entry.c:164 ../src/scale.c:48 #, c-format msgid "Initial value less than minimal.\n" msgstr "Начальное значение меньше минимального.\n" -#: ../src/entry.c:156 ../src/scale.c:53 +#: ../src/entry.c:169 ../src/scale.c:53 #, c-format msgid "Initial value greater than maximum.\n" msgstr "Начальное значение больше маскимального.\n" -#: ../src/form.c:303 +#: ../src/form.c:305 msgid "Select files" msgstr "Выбрать файлы" -#: ../src/form.c:367 +#: ../src/form.c:369 msgid "Select or create file" msgstr "Выбрать или создать файл" -#: ../src/form.c:376 +#: ../src/form.c:378 msgid "Select or create folder" msgstr "Выбрать или создать каталог" -#: ../src/form.c:409 +#: ../src/form.c:411 msgid "Select date" msgstr "Выбрать дату" -#: ../src/form.c:542 +#: ../src/form.c:546 msgid "Select file" msgstr "Выбрать файл" -#: ../src/form.c:549 +#: ../src/form.c:553 msgid "Select folder" msgstr "Выбрать каталог" @@ -117,416 +117,425 @@ msgid "Unable to open directory %s: %s\n" msgstr "Не могу открыть каталог %s: %s\n" -#: ../src/main.c:74 ../src/main.c:211 +#: ../src/main.c:89 ../src/main.c:229 #, c-format msgid "%d sec" msgstr "%d сек" -#: ../src/main.c:472 +#: ../src/main.c:501 #, c-format msgid "Unable parse command line: %s\n" msgstr "Не удается разобрать командную строку: %s\n" -#: ../src/notification.c:70 +#: ../src/notification.c:82 #, c-format msgid "Could not load notification icon '%s': %s\n" msgstr "Не удается загрузить иконку '%s': %s\n" -#: ../src/notification.c:234 +#: ../src/notification.c:261 #, c-format msgid "Invalid UTF-8 in tooltip!\n" msgstr "Неверная последовательность UTF-8 в подсказке!\n" -#: ../src/notification.c:297 +#: ../src/notification.c:323 #, c-format msgid "Unknown command '%s'\n" msgstr "Неизвестная команда '%s'\n" -#: ../src/notification.c:333 +#: ../src/notification.c:359 msgid "Yad notification" msgstr "Диалог уведомлений" -#: ../src/list.c:700 +#: ../src/list.c:703 msgid "Add row" msgstr "Добавить строку" -#: ../src/list.c:709 +#: ../src/list.c:712 msgid "Delete row" msgstr "Удалить строку" -#: ../src/list.c:738 +#: ../src/list.c:741 #, c-format msgid "No column titles specified for List dialog.\n" msgstr "Не заданы заголовоки колонок для диалога со списком\n" -#: ../src/option.c:57 +#: ../src/option.c:62 msgid "Set the dialog title" msgstr "Задать заголовок диалога" -#: ../src/option.c:58 +#: ../src/option.c:63 msgid "TITLE" msgstr "ЗАГОЛОВОК" -#: ../src/option.c:63 +#: ../src/option.c:68 msgid "Set the window icon" msgstr "Задать значок диалога" -#: ../src/option.c:64 +#: ../src/option.c:69 msgid "ICONPATH" msgstr "ЗНАЧОК" -#: ../src/option.c:69 +#: ../src/option.c:74 msgid "Set the width" msgstr "Задать ширину окна" -#: ../src/option.c:70 +#: ../src/option.c:75 msgid "WIDTH" msgstr "ШИРИНА" -#: ../src/option.c:75 +#: ../src/option.c:80 msgid "Set the height" msgstr "Задать высоту окна" -#: ../src/option.c:76 +#: ../src/option.c:81 msgid "HEIGHT" msgstr "ВЫСОТА" -#: ../src/option.c:81 +#: ../src/option.c:86 msgid "Set the window geometry" msgstr "Задать геометрию окна" -#: ../src/option.c:82 +#: ../src/option.c:87 msgid "WxH+X+Y" msgstr "ВxШ+X+Y" -#: ../src/option.c:87 +#: ../src/option.c:92 msgid "Set dialog timeout in seconds" msgstr "Задать время работы диалога в секундах" -#: ../src/option.c:88 +#: ../src/option.c:93 msgid "TIMEOUT" msgstr "ЗАДЕРЖКА" -#: ../src/option.c:93 +#: ../src/option.c:98 msgid "Show remaining time indicator (top, bottom, left, right)" msgstr "Показать индикатор задержки (top, bottom, left, right)" -#: ../src/option.c:94 +#: ../src/option.c:99 msgid "POS" msgstr "ПОЗИЦИЯ" -#: ../src/option.c:99 +#: ../src/option.c:104 msgid "Set the dialog text" msgstr "Задать текст диалога" -#: ../src/option.c:100 ../src/option.c:124 ../src/option.c:337 -#: ../src/option.c:343 ../src/option.c:349 ../src/option.c:477 -#: ../src/option.c:761 +#: ../src/option.c:105 ../src/option.c:135 ../src/option.c:348 +#: ../src/option.c:354 ../src/option.c:360 ../src/option.c:488 +#: ../src/option.c:812 msgid "TEXT" msgstr "ТЕКСТ"
View file
yad-0.15.1.tar.bz2/po/sk.po -> yad-0.16.0.tar.bz2/po/sk.po
Changed
@@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: YAD\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-10-12 14:13+0300\n" +"POT-Creation-Date: 2011-11-21 11:42+0200\n" "PO-Revision-Date: 2011-09-05 07:57+0200\n" "Last-Translator: Slavko <linux@slavino.sk>\n" "Language-Team: Slovak <debian-l10n-slovak@lists.debian.org>\n" @@ -66,44 +66,44 @@ msgid "Cannot open file '%s': %s\n" msgstr "Nemožno otvoriť súbor '%s': %s\n" -#: ../src/entry.c:145 ../src/scale.c:39 +#: ../src/entry.c:158 ../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/entry.c:151 ../src/scale.c:48 +#: ../src/entry.c:164 ../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:156 ../src/scale.c:53 +#: ../src/entry.c:169 ../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:303 +#: ../src/form.c:305 msgid "Select files" msgstr "Vyberte súbory" -#: ../src/form.c:367 +#: ../src/form.c:369 #, fuzzy msgid "Select or create file" msgstr "Vyberte súbor" -#: ../src/form.c:376 +#: ../src/form.c:378 #, fuzzy msgid "Select or create folder" msgstr "Vyberte pole" -#: ../src/form.c:409 +#: ../src/form.c:411 msgid "Select date" msgstr "Vyberte dátum" -#: ../src/form.c:542 +#: ../src/form.c:546 msgid "Select file" msgstr "Vyberte súbor" -#: ../src/form.c:549 +#: ../src/form.c:553 msgid "Select folder" msgstr "Vyberte pole" @@ -117,416 +117,426 @@ msgid "Unable to open directory %s: %s\n" msgstr "Nemožno otvoriť adresár %s: %s\n" -#: ../src/main.c:74 ../src/main.c:211 +#: ../src/main.c:89 ../src/main.c:229 #, c-format msgid "%d sec" msgstr "%d s" -#: ../src/main.c:472 +#: ../src/main.c:501 #, c-format msgid "Unable parse command line: %s\n" msgstr "Nemožno spracovať príkazový riadok: %s\n" -#: ../src/notification.c:70 +#: ../src/notification.c:82 #, c-format msgid "Could not load notification icon '%s': %s\n" msgstr "Nemožno načítať ikonu upozornenia '%s': %s\n" -#: ../src/notification.c:234 +#: ../src/notification.c:261 #, 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:323 #, c-format msgid "Unknown command '%s'\n" msgstr "Neznámy príkaz '%s'\n" -#: ../src/notification.c:333 +#: ../src/notification.c:359 msgid "Yad notification" msgstr "Informačná ikona Yad" -#: ../src/list.c:700 +#: ../src/list.c:703 msgid "Add row" msgstr "Pridá riadok" -#: ../src/list.c:709 +#: ../src/list.c:712 msgid "Delete row" msgstr "Odstráni riadok" -#: ../src/list.c:738 +#: ../src/list.c:741 #, 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:57 +#: ../src/option.c:62 msgid "Set the dialog title" msgstr "Nastaví názov dialógu" -#: ../src/option.c:58 +#: ../src/option.c:63 msgid "TITLE" msgstr "NÁZOV" -#: ../src/option.c:63 +#: ../src/option.c:68 msgid "Set the window icon" msgstr "Nastaví ikonu okna" -#: ../src/option.c:64 +#: ../src/option.c:69 msgid "ICONPATH" msgstr "CESTA_IKON" -#: ../src/option.c:69 +#: ../src/option.c:74 msgid "Set the width" msgstr "Nastaví šírku" -#: ../src/option.c:70 +#: ../src/option.c:75 msgid "WIDTH" msgstr "ŠÍRKA" -#: ../src/option.c:75 +#: ../src/option.c:80 msgid "Set the height" msgstr "Nastaví výšku" -#: ../src/option.c:76 +#: ../src/option.c:81 msgid "HEIGHT" msgstr "VÝŠKA" -#: ../src/option.c:81 +#: ../src/option.c:86 msgid "Set the window geometry" msgstr "Nastaví geometriu okna" -#: ../src/option.c:82 +#: ../src/option.c:87 msgid "WxH+X+Y" msgstr "WxH+X+Y" -#: ../src/option.c:87 +#: ../src/option.c:92 msgid "Set dialog timeout in seconds" msgstr "Nastaví časový limit dialógu s" -#: ../src/option.c:88 +#: ../src/option.c:93 msgid "TIMEOUT" msgstr "ČASLIMIT" -#: ../src/option.c:93 +#: ../src/option.c:98 msgid "Show remaining time indicator (top, bottom, left, right)" msgstr "Zobrazí indikátor zostávajúceho času (top, bottom, left, right)" -#: ../src/option.c:94 +#: ../src/option.c:99 msgid "POS" msgstr "POZÍCIA" -#: ../src/option.c:99 +#: ../src/option.c:104 msgid "Set the dialog text" msgstr "Nastaví text dialógu" -#: ../src/option.c:100 ../src/option.c:124 ../src/option.c:337 -#: ../src/option.c:343 ../src/option.c:349 ../src/option.c:477 -#: ../src/option.c:761 +#: ../src/option.c:105 ../src/option.c:135 ../src/option.c:348 +#: ../src/option.c:354 ../src/option.c:360 ../src/option.c:488 +#: ../src/option.c:812 msgid "TEXT"
View file
yad-0.15.1.tar.bz2/po/uk.po -> yad-0.16.0.tar.bz2/po/uk.po
Changed
@@ -7,7 +7,7 @@ msgstr "" "Project-Id-Version: YAD\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-10-12 14:13+0300\n" +"POT-Creation-Date: 2011-11-21 11:42+0200\n" "PO-Revision-Date: 2009-04-30 16:47+0300\n" "Last-Translator: Victor Ananjevsky <ananasik@gmail.com>\n" "Language-Team: Ukrainian\n" @@ -66,42 +66,42 @@ msgid "Cannot open file '%s': %s\n" msgstr "Не можу відкрити файл %s: %s\n" -#: ../src/entry.c:145 ../src/scale.c:39 +#: ../src/entry.c:158 ../src/scale.c:39 #, c-format msgid "Maximum value must be greater than minimum value.\n" msgstr "Максимальне значення повинно бути більше, ніж мінімальне.\n" -#: ../src/entry.c:151 ../src/scale.c:48 +#: ../src/entry.c:164 ../src/scale.c:48 #, c-format msgid "Initial value less than minimal.\n" msgstr "Початкове значення менше за мінімальне.\n" -#: ../src/entry.c:156 ../src/scale.c:53 +#: ../src/entry.c:169 ../src/scale.c:53 #, c-format msgid "Initial value greater than maximum.\n" msgstr "Початкове значенння більше за маскимальне.\n" -#: ../src/form.c:303 +#: ../src/form.c:305 msgid "Select files" msgstr "Обрати файли" -#: ../src/form.c:367 +#: ../src/form.c:369 msgid "Select or create file" msgstr "Обрати або створити файл" -#: ../src/form.c:376 +#: ../src/form.c:378 msgid "Select or create folder" msgstr "Обрати або створити каталог" -#: ../src/form.c:409 +#: ../src/form.c:411 msgid "Select date" msgstr "Обрати дату" -#: ../src/form.c:542 +#: ../src/form.c:546 msgid "Select file" msgstr "Обрати файл" -#: ../src/form.c:549 +#: ../src/form.c:553 msgid "Select folder" msgstr "Обрати каталог" @@ -115,416 +115,425 @@ msgid "Unable to open directory %s: %s\n" msgstr "Не можу відкрити каталог %s: %s\n" -#: ../src/main.c:74 ../src/main.c:211 +#: ../src/main.c:89 ../src/main.c:229 #, c-format msgid "%d sec" msgstr "%d сек" -#: ../src/main.c:472 +#: ../src/main.c:501 #, c-format msgid "Unable parse command line: %s\n" msgstr "Не вдається розібрати командну строку: %s\n" -#: ../src/notification.c:70 +#: ../src/notification.c:82 #, c-format msgid "Could not load notification icon '%s': %s\n" msgstr "Не вдається завантажити іконку '%s': %s\n" -#: ../src/notification.c:234 +#: ../src/notification.c:261 #, c-format msgid "Invalid UTF-8 in tooltip!\n" msgstr "Неправильна послідовність UTF-8 у підказці!\n" -#: ../src/notification.c:297 +#: ../src/notification.c:323 #, c-format msgid "Unknown command '%s'\n" msgstr "Невідома команда '%s'\n" -#: ../src/notification.c:333 +#: ../src/notification.c:359 msgid "Yad notification" msgstr "Діалог повідомлень" -#: ../src/list.c:700 +#: ../src/list.c:703 msgid "Add row" msgstr "Добавити строку" -#: ../src/list.c:709 +#: ../src/list.c:712 msgid "Delete row" msgstr "Видалити строку" -#: ../src/list.c:738 +#: ../src/list.c:741 #, c-format msgid "No column titles specified for List dialog.\n" msgstr "Не задані заголовоки колонок для діалога зі списком\n" -#: ../src/option.c:57 +#: ../src/option.c:62 msgid "Set the dialog title" msgstr "Задати заголовок діалога" -#: ../src/option.c:58 +#: ../src/option.c:63 msgid "TITLE" msgstr "ЗАГОЛОВОК" -#: ../src/option.c:63 +#: ../src/option.c:68 msgid "Set the window icon" msgstr "Задати іконку діалога" -#: ../src/option.c:64 +#: ../src/option.c:69 msgid "ICONPATH" msgstr "ІКОНКА" -#: ../src/option.c:69 +#: ../src/option.c:74 msgid "Set the width" msgstr "Задати ширину вікна" -#: ../src/option.c:70 +#: ../src/option.c:75 msgid "WIDTH" msgstr "ШИРИНА" -#: ../src/option.c:75 +#: ../src/option.c:80 msgid "Set the height" msgstr "Задати висоту вікна" -#: ../src/option.c:76 +#: ../src/option.c:81 msgid "HEIGHT" msgstr "ВИСОТА" -#: ../src/option.c:81 +#: ../src/option.c:86 msgid "Set the window geometry" msgstr "Задати геометрію вікна" -#: ../src/option.c:82 +#: ../src/option.c:87 msgid "WxH+X+Y" msgstr "ВxШ+X+Y" -#: ../src/option.c:87 +#: ../src/option.c:92 msgid "Set dialog timeout in seconds" msgstr "Задати врем'я роботи діалога в секундах" -#: ../src/option.c:88 +#: ../src/option.c:93 msgid "TIMEOUT" msgstr "ЗАТРИМКА" -#: ../src/option.c:93 +#: ../src/option.c:98 msgid "Show remaining time indicator (top, bottom, left, right)" msgstr "Показувати індикатор затримки (top, bottom, left, right)" -#: ../src/option.c:94 +#: ../src/option.c:99 msgid "POS" msgstr "ПОЗИЦІЯ" -#: ../src/option.c:99 +#: ../src/option.c:104 msgid "Set the dialog text" msgstr "Задати текст діалога" -#: ../src/option.c:100 ../src/option.c:124 ../src/option.c:337 -#: ../src/option.c:343 ../src/option.c:349 ../src/option.c:477 -#: ../src/option.c:761 +#: ../src/option.c:105 ../src/option.c:135 ../src/option.c:348 +#: ../src/option.c:354 ../src/option.c:360 ../src/option.c:488 +#: ../src/option.c:812 msgid "TEXT" msgstr "ТЕКСТ"
View file
yad-0.15.1.tar.bz2/src/Makefile.am -> yad-0.16.0.tar.bz2/src/Makefile.am
Changed
@@ -18,6 +18,7 @@ multi-progress.c \ notification.c \ option.c \ + print.c \ progress.c \ scale.c \ text.c \
View file
yad-0.15.1.tar.bz2/src/Makefile.in -> yad-0.16.0.tar.bz2/src/Makefile.in
Changed
@@ -53,9 +53,9 @@ yad-file.$(OBJEXT) yad-font.$(OBJEXT) yad-form.$(OBJEXT) \ yad-icons.$(OBJEXT) yad-list.$(OBJEXT) \ yad-multi-progress.$(OBJEXT) yad-notification.$(OBJEXT) \ - yad-option.$(OBJEXT) yad-progress.$(OBJEXT) \ - yad-scale.$(OBJEXT) yad-text.$(OBJEXT) yad-util.$(OBJEXT) \ - yad-main.$(OBJEXT) + yad-option.$(OBJEXT) yad-print.$(OBJEXT) \ + yad-progress.$(OBJEXT) yad-scale.$(OBJEXT) yad-text.$(OBJEXT) \ + yad-util.$(OBJEXT) yad-main.$(OBJEXT) yad_OBJECTS = $(am_yad_OBJECTS) am__DEPENDENCIES_1 = yad_DEPENDENCIES = $(am__DEPENDENCIES_1) @@ -234,6 +234,7 @@ multi-progress.c \ notification.c \ option.c \ + print.c \ progress.c \ scale.c \ text.c \ @@ -345,6 +346,7 @@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/yad-multi-progress.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/yad-notification.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/yad-option.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/yad-print.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/yad-progress.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/yad-scale.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/yad-text.Po@am__quote@ @@ -575,6 +577,22 @@ @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-option.obj `if test -f 'option.c'; then $(CYGPATH_W) 'option.c'; else $(CYGPATH_W) '$(srcdir)/option.c'; fi` +yad-print.o: print.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(yad_CFLAGS) $(CFLAGS) -MT yad-print.o -MD -MP -MF $(DEPDIR)/yad-print.Tpo -c -o yad-print.o `test -f 'print.c' || echo '$(srcdir)/'`print.c +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/yad-print.Tpo $(DEPDIR)/yad-print.Po +@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='print.c' object='yad-print.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-print.o `test -f 'print.c' || echo '$(srcdir)/'`print.c + +yad-print.obj: print.c +@am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(yad_CFLAGS) $(CFLAGS) -MT yad-print.obj -MD -MP -MF $(DEPDIR)/yad-print.Tpo -c -o yad-print.obj `if test -f 'print.c'; then $(CYGPATH_W) 'print.c'; else $(CYGPATH_W) '$(srcdir)/print.c'; fi` +@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/yad-print.Tpo $(DEPDIR)/yad-print.Po +@am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='print.c' object='yad-print.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-print.obj `if test -f 'print.c'; then $(CYGPATH_W) 'print.c'; else $(CYGPATH_W) '$(srcdir)/print.c'; fi` + yad-progress.o: progress.c @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(yad_CFLAGS) $(CFLAGS) -MT yad-progress.o -MD -MP -MF $(DEPDIR)/yad-progress.Tpo -c -o yad-progress.o `test -f 'progress.c' || echo '$(srcdir)/'`progress.c @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/yad-progress.Tpo $(DEPDIR)/yad-progress.Po
View file
yad-0.15.1.tar.bz2/src/color.c -> yad-0.16.0.tar.bz2/src/color.c
Changed
@@ -19,6 +19,8 @@ #include <errno.h> +#include <glib/gprintf.h> + #include "yad.h" static GtkWidget *color; @@ -59,7 +61,7 @@ if ((fp = fopen (filename, "r")) == NULL) { - g_printerr (_("Can't open file %s: %s"), filename, strerror (errno)); + g_printerr (_("Can't open file %s: %s\n"), filename, strerror (errno)); return NULL; } @@ -151,6 +153,8 @@ /* create color list */ sw = gtk_scrolled_window_new (NULL, NULL); + gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (sw), + GTK_SHADOW_ETCHED_IN); gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
View file
yad-0.15.1.tar.bz2/src/dnd.c -> yad-0.16.0.tar.bz2/src/dnd.c
Changed
@@ -17,13 +17,14 @@ * Copyright (C) 2008-2011, Victor Ananjevsky <ananasik@gmail.com> */ +#include <glib/gprintf.h> + #include "yad.h" static void drop_data_cb (GtkWidget *w, GdkDragContext *dc, gint x, gint y, GtkSelectionData *sel, guint info, guint t, gpointer data) { - gchar *str = NULL; GdkAtom stgt; stgt = gtk_selection_data_get_target (sel); @@ -58,10 +59,10 @@ } else if (gtk_targets_include_text (&stgt, 1)) { - str = gtk_selection_data_get_text (sel); + guchar *str = gtk_selection_data_get_text (sel); if (str) { - gchar *dstr = g_uri_unescape_string (str, NULL); + gchar *dstr = g_uri_unescape_string ((const gchar *) str, NULL); if (options.common_data.command) { gchar *action = g_strdup_printf ("%s '%s'", options.common_data.command, dstr);
View file
yad-0.15.1.tar.bz2/src/entry.c -> yad-0.16.0.tar.bz2/src/entry.c
Changed
@@ -17,10 +17,12 @@ * Copyright (C) 2008-2011, Victor Ananjevsky <ananasik@gmail.com> */ +#include <gdk/gdkkeysyms.h> + #include "yad.h" static GtkWidget *entry; -static is_combo = FALSE; +static gboolean is_combo = FALSE; static void entry_activate_cb (GtkEntry *entry, gpointer data) @@ -28,6 +30,17 @@ gtk_dialog_response (GTK_DIALOG (data), YAD_RESPONSE_OK); } +static gboolean +combo_activate_cb (GtkWidget *w, GdkEventKey *ev, gpointer data) +{ + if (ev->keyval == GDK_Return || ev->keyval == GDK_KP_Enter) + { + gtk_dialog_response (GTK_DIALOG (data), YAD_RESPONSE_OK); + return TRUE; + } + return FALSE; +} + static void icon_cb (GtkEntry *entry, GtkEntryIconPosition pos, GdkEventButton *event, gpointer data) @@ -269,6 +282,9 @@ if (!is_combo) g_signal_connect (G_OBJECT (entry), "activate", G_CALLBACK (entry_activate_cb), dlg); + else + g_signal_connect (G_OBJECT (entry), "key-press-event", G_CALLBACK (combo_activate_cb), dlg); + if (options.entry_data.licon || options.entry_data.ricon) g_signal_connect (G_OBJECT (entry), "icon-press", G_CALLBACK (icon_cb), NULL);
View file
yad-0.15.1.tar.bz2/src/font.c -> yad-0.16.0.tar.bz2/src/font.c
Changed
@@ -19,6 +19,8 @@ #include <errno.h> +#include <glib/gprintf.h> + #include "yad.h" static GtkWidget *font;
View file
yad-0.15.1.tar.bz2/src/form.c -> yad-0.16.0.tar.bz2/src/form.c
Changed
@@ -17,6 +17,8 @@ * Copyright (C) 2008-2011, Victor Ananjevsky <ananasik@gmail.com> */ +#include <glib/gprintf.h> + #include "yad.h" #include "calendar.xpm"
View file
yad-0.15.1.tar.bz2/src/list.c -> yad-0.16.0.tar.bz2/src/list.c
Changed
@@ -20,6 +20,7 @@ #include <string.h> #include <stdlib.h> +#include <glib/gprintf.h> #include <gdk/gdkkeysyms.h> #include "yad.h" @@ -144,7 +145,7 @@ { gint64 nval; gtk_tree_model_get (model, &iter, cnum, &nval, -1); - text = g_strdup_printf ("%d", nval); + text = g_strdup_printf ("%ld", nval); break; } case YAD_COLUMN_FLOAT: @@ -600,7 +601,7 @@ { gint64 nval; gtk_tree_model_get (model, &iter, i, &nval, -1); - g_string_append_printf (args, " %d", nval); + g_string_append_printf (args, " %ld", nval); break; } case YAD_COLUMN_FLOAT: @@ -842,7 +843,7 @@ { gint64 nval; gtk_tree_model_get (model, iter, num, &nval, -1); - g_printf ("%d", nval); + g_printf ("%ld", nval); break; } case YAD_COLUMN_FLOAT:
View file
yad-0.15.1.tar.bz2/src/main.c -> yad-0.16.0.tar.bz2/src/main.c
Changed
@@ -22,7 +22,7 @@ #include <signal.h> #include <stdio.h> -#if !defined(_WIN32) +#ifndef G_OS_WIN32 # include <gdk/gdkx.h> #endif @@ -31,7 +31,7 @@ YadOptions options; GtkWidget *dialog = NULL; -#if !defined(_WIN32) +#ifndef G_OS_WIN32 static void sa_usr1 (gint sig) { @@ -55,6 +55,21 @@ return FALSE; } +static void +btn_cb (GtkButton *b, gchar *c) +{ + gchar *cmd; + gint pid; + +#if !defined(_WIN32) + pid = getpid (); +#endif + + cmd = g_strdup_printf (c, pid); + g_spawn_command_line_async (cmd, NULL); + g_free (cmd); +} + static gboolean timeout_indicator_cb (gpointer data) { @@ -90,7 +105,7 @@ create_dialog () { GtkWidget *dlg; - GtkWidget *hbox, *vbox, *hbox2; + GtkWidget *hbox, *vbox, *hbox2, *bbox; GtkWidget *image; GtkWidget *text; GtkWidget *main_widget = NULL; @@ -99,11 +114,14 @@ /* create dialog window */ dlg = gtk_dialog_new (); gtk_window_set_title (GTK_WINDOW (dlg), options.data.dialog_title); -#if !GTK_CHECK_VERSION(3,0,0) +#if !GTK_CHECK_VERSION(2,22,0) gtk_dialog_set_has_separator (GTK_DIALOG (dlg), options.data.dialog_sep); #endif gtk_widget_set_name (dlg, "yad-dialog-window"); + /* get buttons container */ + bbox = gtk_dialog_get_action_area (GTK_DIALOG (dlg)); + /* set window icon */ if (options.data.window_icon) { @@ -122,15 +140,6 @@ options.data.borders = (gint) gtk_container_get_border_width (GTK_CONTAINER (dlg)); gtk_container_set_border_width (GTK_CONTAINER (dlg), (guint) options.data.borders); - /* set window behavior */ - if (options.data.sticky) - gtk_window_stick (GTK_WINDOW (dlg)); - gtk_window_set_resizable (GTK_WINDOW (dlg), !options.data.fixed); - gtk_window_set_keep_above (GTK_WINDOW (dlg), options.data.ontop); - gtk_window_set_decorated (GTK_WINDOW (dlg), !options.data.undecorated); - gtk_window_set_skip_taskbar_hint (GTK_WINDOW (dlg), options.data.skip_taskbar); - gtk_window_set_skip_pager_hint (GTK_WINDOW (dlg), options.data.skip_taskbar); - /* set window size and position */ if (!options.data.geometry) { @@ -140,6 +149,7 @@ gtk_window_set_position (GTK_WINDOW (dlg), GTK_WIN_POS_CENTER); else if (options.data.mouse) gtk_window_set_position (GTK_WINDOW (dlg), GTK_WIN_POS_MOUSE); + gtk_widget_realize (dlg); } else { @@ -148,6 +158,14 @@ gtk_window_parse_geometry (GTK_WINDOW (dlg), options.data.geometry); } + /* set window behavior */ + if (options.data.sticky) + gtk_window_stick (GTK_WINDOW (dlg)); + gtk_window_set_resizable (GTK_WINDOW (dlg), !options.data.fixed); + gtk_window_set_keep_above (GTK_WINDOW (dlg), options.data.ontop); + gtk_window_set_decorated (GTK_WINDOW (dlg), !options.data.undecorated); + gtk_window_set_skip_taskbar_hint (GTK_WINDOW (dlg), options.data.skip_taskbar); + gtk_window_set_skip_pager_hint (GTK_WINDOW (dlg), options.data.skip_taskbar); /* create timeout indicator widget */ if (options.data.timeout) @@ -257,7 +275,7 @@ gtk_label_set_text (GTK_LABEL (text), buf); gtk_widget_set_name (text, "yad-dialog-label"); gtk_label_set_selectable (GTK_LABEL (text), options.data.selectable_labels); - gtk_misc_set_alignment (GTK_MISC (text), 0.0, 0.5); + gtk_misc_set_alignment (GTK_MISC (text), options.data.text_align, 0.5); if (options.data.geometry || options.data.width != -1) gtk_label_set_line_wrap (GTK_LABEL (text), TRUE); if (options.data.image_on_top) @@ -335,11 +353,17 @@ if (options.data.buttons) { GSList *tmp = options.data.buttons; - do { YadButton *b = (YadButton *) tmp->data; - gtk_dialog_add_button (GTK_DIALOG (dlg), b->name, b->response); + if (b->cmd) + { + GtkWidget *btn = gtk_button_new_from_stock (b->name); + g_signal_connect (G_OBJECT (btn), "clicked", G_CALLBACK (btn_cb), b->cmd); + gtk_box_pack_start (GTK_BOX (bbox), btn, FALSE, FALSE, 0); + } + else + gtk_dialog_add_button (GTK_DIALOG (dlg), b->name, b->response); tmp = tmp->next; } while (tmp != NULL); @@ -367,10 +391,11 @@ gtk_dialog_set_default_response (GTK_DIALOG (dlg), YAD_RESPONSE_OK); } } - else - gtk_widget_hide (gtk_dialog_get_action_area (GTK_DIALOG (dlg))); + /* show widgets */ gtk_widget_show_all (dlg); + if (options.data.no_buttons) + gtk_widget_hide (bbox); /* set timeout */ if (options.data.timeout) @@ -380,9 +405,12 @@ } /* print xid */ -#if !defined(_WIN32) +#ifndef G_OS_WIN32 if (options.print_xid) - g_printf (stderr, "0x%X", GDK_WINDOW_XID (gtk_widget_get_window (dlg))); + { + g_fprintf (stderr, "0x%X", GDK_WINDOW_XID (gtk_widget_get_window (dlg))); + fflush (stderr); + } #endif return dlg; @@ -441,10 +469,11 @@ textdomain (GETTEXT_PACKAGE); #endif + g_type_init (); read_settings (); gtk_init (&argc, &argv); - + g_set_application_name ("YAD"); yad_options_init (); /* set default icons and icon theme */ @@ -480,7 +509,7 @@ tmp_sep = g_strcompress (options.common_data.item_separator); options.common_data.item_separator = tmp_sep; -#if !defined(_WIN32) +#ifndef G_OS_WIN32 /* set signal handlers */ bzero (&sa, sizeof (struct sigaction)); sa.sa_handler = sa_usr1; @@ -500,6 +529,9 @@ case YAD_MODE_NOTIFICATION: ret = yad_notification_run (); break; + case YAD_MODE_PRINT: + ret = yad_print_run (); + break; default: dialog = create_dialog (); if (options.mode == YAD_MODE_FILE) @@ -520,7 +552,7 @@ else if (options.data.buttons && !(ret & 1)) print_result (); } -#if !defined(_WIN32) +#ifndef G_OS_WIN32
View file
yad-0.15.1.tar.bz2/src/multi-progress.c -> yad-0.16.0.tar.bz2/src/multi-progress.c
Changed
@@ -65,8 +65,7 @@ { if (err) { - g_printerr ("yad_multi_progress_handle_stdin(): %s", - err->message); + g_printerr ("yad_multi_progress_handle_stdin(): %s\n", err->message); g_error_free (err); err = NULL; }
View file
yad-0.15.1.tar.bz2/src/notification.c -> yad-0.16.0.tar.bz2/src/notification.c
Changed
@@ -29,6 +29,7 @@ typedef struct { gchar *name; gchar *action; + gchar *icon; } MenuData; static GtkStatusIcon *status_icon; @@ -42,6 +43,17 @@ static gint icon_size = 16; static void +free_menu_data (gpointer data, gpointer udata) +{ + MenuData *m = (MenuData *) data; + + g_free (m->name); + g_free (m->action); + g_free (m->icon); + g_free (m); +} + +static void timeout_cb (gpointer data) { exit_code = YAD_RESPONSE_TIMEOUT; @@ -94,12 +106,13 @@ static gboolean activate_cb (GtkWidget * widget, YadData * data) { - if (action == NULL || g_ascii_strcasecmp (action, "quit") == 0) + if ((action == NULL && !options.notification_data.listen) || + (action && g_ascii_strcasecmp (action, "quit") == 0)) { exit_code = YAD_RESPONSE_OK; gtk_main_quit (); } - else + else if (action) g_spawn_command_line_async (action, NULL); return TRUE; @@ -138,19 +151,31 @@ { GtkWidget *menu; GtkWidget *item; - int i; + GSList *m; if (!menu_data) return; menu = gtk_menu_new (); - for (i = 0; i < g_slist_length (menu_data); i++) + for (m = menu_data; m; m = m->next) { - MenuData *d = (MenuData *) g_slist_nth_data (menu_data, i); + MenuData *d = (MenuData *) m->data; if (d->name) { - item = gtk_menu_item_new_with_label (d->name); + if (d->icon) + { + GdkPixbuf *pb = get_pixbuf (d->icon, YAD_SMALL_ICON); + item = gtk_image_menu_item_new_with_mnemonic (d->name); + if (pb) + { + gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), + gtk_image_new_from_pixbuf (pb)); + g_object_unref (pb); + } + } + else + item = gtk_menu_item_new_with_mnemonic (d->name); g_signal_connect (GTK_MENU_ITEM (item), "activate", G_CALLBACK (popup_menu_item_activate_cb), (gpointer) d->action); @@ -198,8 +223,7 @@ { if (err) { - g_printerr ("yad_notification_handle_stdin(): %s\n", - err->message); + g_printerr ("yad_notification_handle_stdin(): %s\n", err->message); g_error_free (err); err = NULL; } @@ -210,10 +234,13 @@ command = g_strdup (args0); value = g_strdup (args1); g_strfreev (args); + if (value) + g_strstrip (value); if (!g_ascii_strcasecmp (command, "icon")) { - icon = g_strstrip (value); + g_free (icon); + icon = g_strdup (value); if (gtk_status_icon_get_visible (status_icon) && gtk_status_icon_is_embedded (status_icon)) @@ -235,7 +262,7 @@ } else if (!g_ascii_strcasecmp (command, "visible")) { -#if !GTK_CHECK_VERSION(3,0,0) +#if !GTK_CHECK_VERSION(2,22,0) if (!g_ascii_strcasecmp (value, "blink")) { gboolean state = gtk_status_icon_get_blinking (status_icon); @@ -246,14 +273,14 @@ if (!g_ascii_strcasecmp (value, "false")) { gtk_status_icon_set_visible (status_icon, FALSE); -#if !GTK_CHECK_VERSION(3,0,0) +#if !GTK_CHECK_VERSION(2,22,0) gtk_status_icon_set_blinking (status_icon, FALSE); #endif } else { gtk_status_icon_set_visible (status_icon, TRUE); -#if !GTK_CHECK_VERSION(3,0,0) +#if !GTK_CHECK_VERSION(2,22,0) gtk_status_icon_set_blinking (status_icon, FALSE); #endif } @@ -272,22 +299,21 @@ { MenuData *mdata; int i = 0; - gchar *s, **menu_vals = g_strsplit (value, options.common_data.separator, -1); + gchar **menu_vals = g_strsplit (value, options.common_data.separator, -1); + g_slist_foreach (menu_data, free_menu_data, NULL); g_slist_free (menu_data); menu_data = NULL; while (menu_valsi != NULL) { + gchar **s = g_strsplit (menu_valsi, options.common_data.item_separator, 3); mdata = g_new0 (MenuData, 1); - s = strchr (menu_valsi, options.common_data.item_separator0); - if (s != NULL) - { - mdata->name = - g_strndup (menu_valsi, s - menu_valsi); - mdata->action = g_strdup (s + 1); - } + mdata->name = g_strdup (s0); + mdata->action = g_strdup (s1); + mdata->icon = g_strdup (s2); menu_data = g_slist_append (menu_data, mdata); + g_strfreev (s); i++; }
View file
yad-0.15.1.tar.bz2/src/option.c -> yad-0.16.0.tar.bz2/src/option.c
Changed
@@ -17,9 +17,12 @@ * Copyright (C) 2008-2011, Victor Ananjevsky <ananasik@gmail.com> */ +#include <stdlib.h> + #include "yad.h" static gboolean add_button (const gchar *, const gchar *, gpointer, GError **); +static gboolean set_text_align (const gchar *, const gchar *, gpointer, GError **); static gboolean add_column (const gchar *, const gchar *, gpointer, GError **); static gboolean add_field (const gchar *, const gchar *, gpointer, GError **); static gboolean add_bar (const gchar *, const gchar *, gpointer, GError **); @@ -31,6 +34,7 @@ static gboolean set_scale_value (const gchar *, const gchar *, gpointer, GError **); static gboolean set_ellipsize (const gchar *, const gchar *, gpointer, GError **); static gboolean set_expander (const gchar *, const gchar *, gpointer, GError **); +static gboolean set_print_type (const gchar *, const gchar *, gpointer, GError **); static gboolean about_mode = FALSE; static gboolean version_mode = FALSE; @@ -45,6 +49,7 @@ static gboolean list_mode = FALSE; static gboolean multi_progress_mode = FALSE; static gboolean notification_mode = FALSE; +static gboolean print_mode = FALSE; static gboolean progress_mode = FALSE; static gboolean scale_mode = FALSE; static gboolean text_mode = FALSE; @@ -98,6 +103,12 @@ &options.data.dialog_text, N_("Set the dialog text"), N_("TEXT") }, + { "text-align", 0, + G_OPTION_FLAG_NOALIAS, + G_OPTION_ARG_CALLBACK, + set_text_align, + N_("Set the dialog text alignment (left, center, right)"), + N_("TYPE") }, { "image", 0, G_OPTION_FLAG_NOALIAS, G_OPTION_ARG_FILENAME, @@ -140,7 +151,7 @@ &options.data.no_markup, N_("Don't use pango markup language in dialog's text"), NULL }, -#if !GTK_CHECK_VERSION(3,0,0) +#if !GTK_CHECK_VERSION(2,22,0) { "dialog-sep", 0, 0, G_OPTION_ARG_NONE, @@ -209,7 +220,7 @@ &options.data.skip_taskbar, N_("Don't show window in taskbar"), NULL }, -#if !defined(_WIN32) +#ifndef G_OS_WIN32 { "kill-parent", 0, 0, G_OPTION_ARG_NONE, @@ -746,6 +757,46 @@ { NULL } }; +static GOptionEntry print_options = { + { "print", 0, + G_OPTION_FLAG_IN_MAIN, + G_OPTION_ARG_NONE, + &print_mode, + N_("Display printing dialog"), + NULL }, + { "filename", 0, + G_OPTION_FLAG_NOALIAS, + G_OPTION_ARG_FILENAME, + &options.common_data.uri, + N_("Source filename"), + N_("FILENAME") }, + { "type", 0, + 0, + G_OPTION_ARG_CALLBACK, + set_print_type, + N_("Set source type (TYPE - TEXT, IMAGE or RAW)"), + N_("TYPE") }, + { "headers", 0, + 0, + G_OPTION_ARG_NONE, + &options.print_data.headers, + N_("Add headers to page"), + NULL }, + { "add-preview", 0, + 0, + G_OPTION_ARG_NONE, + &options.print_data.preview, + N_("Enable preview in print dialog"), + NULL }, + { "fontname", 0, + G_OPTION_FLAG_NOALIAS, + G_OPTION_ARG_STRING, + &options.common_data.font, + N_("Use specified font"), + N_("FONTNAME") }, + { NULL } +}; + static GOptionEntry progress_options = { { "progress", 0, G_OPTION_FLAG_IN_MAIN, @@ -778,7 +829,7 @@ /* xgettext: no-c-format */ N_("Dismiss the dialog when 100% has been reached"), NULL }, -#if !defined(_WIN32) +#ifndef G_OS_WIN32 { "auto-kill", 0, 0, G_OPTION_ARG_NONE, @@ -970,12 +1021,32 @@ btn = g_new0 (YadButton, 1); btn->name = g_strdup (bstr0); if (bstr1) - btn->response = g_ascii_strtoll (bstr1, NULL, 10); + { + if (bstr10 >= '0' && bstr10 <= '9') + btn->response = g_ascii_strtoll (bstr1, NULL, 10); + else + btn->cmd = g_strdup (bstr1); + } else btn->response = g_slist_length (options.data.buttons); options.data.buttons = g_slist_append (options.data.buttons, btn); g_strfreev (bstr); + return TRUE; +} + +static gboolean +set_text_align (const gchar *option_name, const gchar *value, + gpointer data, GError **err) +{ + if (g_ascii_strcasecmp (value, "left") == 0) + options.data.text_align = 0.0; + else if (g_ascii_strcasecmp (value, "right") == 0) + options.data.text_align = 1.0; + else if (g_ascii_strcasecmp (value, "center") == 0) + options.data.text_align = 0.5; + else + g_printerr (_("Unknown align type: %s\n"), value); return TRUE; } @@ -1019,7 +1090,6 @@ g_slist_append (options.list_data.columns, col); g_strfreev (cstr); - return TRUE; } @@ -1075,7 +1145,6 @@ g_slist_append (options.form_data.fields, fld); g_strfreev (fstr); - return TRUE; } @@ -1103,7 +1172,6 @@ g_slist_append (options.multi_progress_data.bars, bar); g_strfreev (bstr); - return TRUE; } @@ -1129,7 +1197,6 @@ } g_strfreev (mstr); - return TRUE; } @@ -1140,6 +1207,7 @@ options.color_data.use_palette = TRUE; if (value) options.color_data.palette = g_strdup (value); + return TRUE; } @@ -1227,6 +1295,22 @@ return TRUE; } +static gboolean +set_print_type (const gchar *option_name, const gchar *value, + gpointer data, GError **err) +{ + if (g_ascii_strcasecmp (value, "text") == 0) + options.print_data.type = YAD_PRINT_TEXT;
View file
yad-0.16.0.tar.bz2/src/print.c
Added
@@ -0,0 +1,419 @@ +/* + * 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, see <http://www.gnu.org/licenses/>. + * + * Copyright (C) 2008-2011, Victor Ananjevsky <ananasik@gmail.com> + */ + +#include <sys/types.h> +#include <unistd.h> + +#include <gtk/gtkprintunixdialog.h> + +#include "yad.h" + +#define HEADER_HEIGHT (10*72/25.4) +#define HEADER_GAP (3*72/25.4) +#define HEADER_FONT "Sans 11" + +#define FONTNAME "Sans" +#define FONTSIZE 12.0 + +static GtkPrintSettings *print_settings = NULL; +static GtkPageSetup *page_setup = NULL; + +static gchar **text; +static gint nlines, npages; + +static PangoFontDescription *fdesc = NULL; + +static void +draw_header (GtkPrintContext *cnt, gint pn, gint pc) +{ + cairo_t *cr; + PangoFontDescription *desc; + PangoLayout *layout; + gint pw, tw, th; + gchar *page; + + cr = gtk_print_context_get_cairo_context (cnt); + pw = gtk_print_context_get_width (cnt); + + layout = gtk_print_context_create_pango_layout (cnt); + + desc = pango_font_description_from_string (HEADER_FONT); + pango_layout_set_font_description (layout, desc); + pango_font_description_free (desc); + + pango_layout_set_text (layout, options.common_data.uri, -1); + pango_layout_get_pixel_size (layout, &tw, &th); + if (tw > pw) + { + pango_layout_set_width (layout, pw); + pango_layout_set_ellipsize (layout, PANGO_ELLIPSIZE_START); + pango_layout_get_pixel_size (layout, &tw, &th); + } + + cairo_move_to (cr, (pw - tw) / 2, (HEADER_HEIGHT - th) / 2); + pango_cairo_show_layout (cr, layout); + + page = g_strdup_printf ("%d/%d", pn, pc); + pango_layout_set_text (layout, page, -1); + g_free (page); + + pango_layout_set_width (layout, -1); + pango_layout_get_pixel_size (layout, &tw, &th); + cairo_move_to (cr, pw - tw - 4, (HEADER_HEIGHT - th) / 2); + pango_cairo_show_layout (cr, layout); + + g_object_unref (layout); + + cairo_move_to (cr, 0.0, HEADER_HEIGHT); + cairo_line_to (cr, pw, HEADER_HEIGHT); + + cairo_set_source_rgb (cr, 0, 0, 0); + cairo_set_line_width (cr, 1); + cairo_stroke (cr); +} + +static void +begin_print_text (GtkPrintOperation *op, GtkPrintContext *cnt, gpointer data) +{ + gchar *buf; + gint i = 0; + gdouble ph; + + /* load file */ + g_file_get_contents (options.common_data.uri, &buf, NULL, NULL); + text = g_strsplit (buf, "\n", 0); + g_free (buf); + + while (texti != NULL) + i++; + + ph = gtk_print_context_get_height (cnt); + if (options.print_data.headers) + ph -= HEADER_HEIGHT + HEADER_GAP; + + nlines = ph / FONTSIZE; + npages = i / nlines + 1; + gtk_print_operation_set_n_pages (op, npages); + + /* set font */ + if (options.common_data.font) + fdesc = pango_font_description_from_string (options.common_data.font); + else + { + fdesc = pango_font_description_from_string (FONTNAME); + pango_font_description_set_size (fdesc, FONTSIZE * PANGO_SCALE); + } +} + +static void +draw_page_text (GtkPrintOperation *op, GtkPrintContext *cnt, gint page, gpointer data) +{ + cairo_t *cr; + PangoLayout *layout; + gint i, line; + + cr = gtk_print_context_get_cairo_context (cnt); + + /* create header */ + if (options.print_data.headers) + draw_header (cnt, page + 1, npages); + + /* add text */ + layout = gtk_print_context_create_pango_layout (cnt); + pango_layout_set_font_description (layout, fdesc); + + cairo_move_to (cr, 0, HEADER_HEIGHT + HEADER_GAP); + + line = page * nlines; + for (i = 0; i < nlines; i++) + { + if (textline+i == NULL) + break; + pango_layout_set_text (layout, textline+i, -1); + pango_cairo_show_layout (cr, layout); + cairo_rel_move_to (cr, 0, FONTSIZE); + } + + g_object_unref (layout); +} + +static void +draw_page_image (GtkPrintOperation *op, GtkPrintContext *cnt, gint page, gpointer data) +{ + cairo_t *cr; + GdkPixbuf *pb, *spb; + guint iw, ih; + gdouble pw, ph; + gdouble factor; + + cr = gtk_print_context_get_cairo_context (cnt); + + pw = gtk_print_context_get_width (cnt); + ph = gtk_print_context_get_height (cnt); + if (options.print_data.headers) + ph -= HEADER_HEIGHT + HEADER_GAP; + + /* create header */ + if (options.print_data.headers) + draw_header (cnt, 1, 1); + + /* scale image to page size */ + pb = gdk_pixbuf_new_from_file (options.common_data.uri, NULL); + iw = gdk_pixbuf_get_width (pb); + ih = gdk_pixbuf_get_height (pb); + + if (pw < iw || ph < ih) + { + factor = MIN (pw / iw, ph / ih); + factor = (factor > 1.0) ? 1.0 : factor; + spb = gdk_pixbuf_scale_simple (pb, iw * factor, ih * factor, GDK_INTERP_HYPER); + } + else + spb = g_object_ref (pb); + g_object_unref (pb); + + /* add image to surface */ + gdk_cairo_set_source_pixbuf (cr, spb, 0.0, HEADER_HEIGHT + HEADER_GAP); + cairo_paint (cr); + g_object_unref (spb); +} + +static void +raw_print_done (GtkPrintJob *job, gint *ret, GError *err) +{
View file
yad-0.15.1.tar.bz2/src/progress.c -> yad-0.16.0.tar.bz2/src/progress.c
Changed
@@ -75,8 +75,7 @@ { if (err) { - g_printerr ("yad_progress_handle_stdin(): %s", - err->message); + g_printerr ("yad_progress_handle_stdin(): %s\n", err->message); g_error_free (err); err = NULL; }
View file
yad-0.15.1.tar.bz2/src/util.c -> yad-0.16.0.tar.bz2/src/util.c
Changed
@@ -19,6 +19,7 @@ #include <stdlib.h> #include <string.h> +#include <errno.h> #include "yad.h" @@ -26,49 +27,6 @@ YadSettings settings; -static void -create_settings (gchar *filename) -{ - GKeyFile *kf; - gchar *context; - - kf = g_key_file_new (); - -#if !GTK_CHECK_VERSION(3,0,0) - g_key_file_set_boolean (kf, "General", "dialog_separator", settings.dlg_sep); - g_key_file_set_comment (kf, "General", "dialog_separator", "Enable separator between dialog and buttons", NULL); -#endif - g_key_file_set_integer (kf, "General", "width", settings.width); - g_key_file_set_comment (kf, "General", "width", "Default dialog width", NULL); - g_key_file_set_integer (kf, "General", "height", settings.height); - g_key_file_set_comment (kf, "General", "height", "Default dialog height", NULL); - g_key_file_set_integer (kf, "General", "timeout", settings.timeout); - g_key_file_set_comment (kf, "General", "timeout", "Default timeout (0 for no timeout)", NULL); - g_key_file_set_integer (kf, "General", "timeout_indicator", settings.timeout); - g_key_file_set_comment (kf, "General", "timeout_indicator", "Position of timeout indicator (top, bottom, left, right, none)", NULL); - g_key_file_set_boolean (kf, "General", "show_remain", settings.show_remain); - g_key_file_set_comment (kf, "General", "show_remain", "Show remain seconds in timeout indicator", NULL); - g_key_file_set_boolean (kf, "General", "rules_hint", settings.rules_hint); - g_key_file_set_comment (kf, "General", "rules_hint", "Enable rules hints in list widget", NULL); - g_key_file_set_boolean (kf, "General", "always_selected", settings.always_selected); - g_key_file_set_comment (kf, "General", "always_selected", "List widget always have a selection", NULL); - g_key_file_set_boolean (kf, "General", "combo_always_editable", settings.combo_always_editable); - g_key_file_set_comment (kf, "General", "combo_always_editable", "Combo-box in entry dialog is always editable", NULL); - g_key_file_set_boolean (kf, "General", "show_gtk_palette", settings.show_gtk_palette); - g_key_file_set_comment (kf, "General", "show_gtk_palette", "Show GtkColorSelection palette", NULL); - g_key_file_set_boolean (kf, "General", "expand_palette", settings.expand_palette); - g_key_file_set_comment (kf, "General", "expand_palette", "Expand list of predefined colors in color dialog", NULL); - g_key_file_set_string (kf, "General", "terminal", settings.term); - g_key_file_set_comment (kf, "General", "terminal", "Default terminal command (use %s for command template)", NULL); - - context = g_key_file_to_data (kf, NULL, NULL); - - g_key_file_free (kf); - - g_file_set_contents (filename, context, -1, NULL); - g_free (context); -} - void read_settings (void) { @@ -82,7 +40,7 @@ settings.show_remain = FALSE; settings.rules_hint = TRUE; settings.always_selected = FALSE; -#if !GTK_CHECK_VERSION(3,0,0) +#if !GTK_CHECK_VERSION(2,22,0) settings.dlg_sep = FALSE; #endif settings.combo_always_editable = FALSE; @@ -90,8 +48,7 @@ settings.expand_palette = FALSE; settings.term = "xterm -e %s"; - filename = g_build_filename (g_get_user_config_dir (), - SETTINGS_FILE, NULL); + filename = g_build_filename (g_get_user_config_dir (), SETTINGS_FILE, NULL); if (g_file_test (filename, G_FILE_TEST_EXISTS)) { @@ -99,7 +56,7 @@ if (g_key_file_load_from_file (kf, filename, G_KEY_FILE_NONE, NULL)) { -#if !GTK_CHECK_VERSION(3,0,0) +#if !GTK_CHECK_VERSION(2,22,0) if (g_key_file_has_key (kf, "General", "dialog_separator", NULL)) settings.dlg_sep = g_key_file_get_boolean (kf, "General", "dialog_separator", NULL); #endif @@ -130,11 +87,63 @@ g_key_file_free (kf); } else - create_settings (filename); + write_settings (); g_free (filename); } +void +write_settings (void) +{ + GKeyFile *kf; + gchar *context; + + kf = g_key_file_new (); + +#if !GTK_CHECK_VERSION(2,22,0) + g_key_file_set_boolean (kf, "General", "dialog_separator", settings.dlg_sep); + g_key_file_set_comment (kf, "General", "dialog_separator", "Enable separator between dialog and buttons", NULL); +#endif + g_key_file_set_integer (kf, "General", "width", settings.width); + g_key_file_set_comment (kf, "General", "width", "Default dialog width", NULL); + g_key_file_set_integer (kf, "General", "height", settings.height); + g_key_file_set_comment (kf, "General", "height", "Default dialog height", NULL); + g_key_file_set_integer (kf, "General", "timeout", settings.timeout); + g_key_file_set_comment (kf, "General", "timeout", "Default timeout (0 for no timeout)", NULL); + g_key_file_set_integer (kf, "General", "timeout_indicator", settings.timeout); + g_key_file_set_comment (kf, "General", "timeout_indicator", + "Position of timeout indicator (top, bottom, left, right, none)", NULL); + g_key_file_set_boolean (kf, "General", "show_remain", settings.show_remain); + g_key_file_set_comment (kf, "General", "show_remain", "Show remain seconds in timeout indicator", NULL); + g_key_file_set_boolean (kf, "General", "rules_hint", settings.rules_hint); + g_key_file_set_comment (kf, "General", "rules_hint", "Enable rules hints in list widget", NULL); + g_key_file_set_boolean (kf, "General", "always_selected", settings.always_selected); + g_key_file_set_comment (kf, "General", "always_selected", "List widget always have a selection", NULL); + g_key_file_set_boolean (kf, "General", "combo_always_editable", settings.combo_always_editable); + g_key_file_set_comment (kf, "General", "combo_always_editable", "Combo-box in entry dialog is always editable", NULL); + g_key_file_set_boolean (kf, "General", "show_gtk_palette", settings.show_gtk_palette); + g_key_file_set_comment (kf, "General", "show_gtk_palette", "Show GtkColorSelection palette", NULL); + g_key_file_set_boolean (kf, "General", "expand_palette", settings.expand_palette); + g_key_file_set_comment (kf, "General", "expand_palette", "Expand list of predefined colors in color dialog", NULL); + g_key_file_set_string (kf, "General", "terminal", settings.term); + g_key_file_set_comment (kf, "General", "terminal", "Default terminal command (use %s for command template)", NULL); + + context = g_key_file_to_data (kf, NULL, NULL); + + g_key_file_free (kf); + + if (g_mkdir_with_parents (g_get_user_config_dir (), 0644) != -1) + { + gchar *filename = g_build_filename (g_get_user_config_dir (), SETTINGS_FILE, NULL); + g_file_set_contents (filename, context, -1, NULL); + g_free (filename); + } + else + g_printerr ("yad: cannot write settings file: %s\n", strerror (errno)); + + g_free (context); +} + GdkPixbuf * get_pixbuf (gchar *name, YadIconSize size) {
View file
yad-0.15.1.tar.bz2/src/yad.h -> yad-0.16.0.tar.bz2/src/yad.h
Changed
@@ -47,6 +47,7 @@ YAD_MODE_LIST, YAD_MODE_MULTI_PROGRESS, YAD_MODE_NOTIFICATION, + YAD_MODE_PRINT, YAD_MODE_PROGRESS, YAD_MODE_SCALE, YAD_MODE_TEXTINFO, @@ -87,6 +88,12 @@ } YadColumnType; typedef enum { + YAD_PRINT_TEXT = 0, + YAD_PRINT_IMAGE, + YAD_PRINT_RAW, +} YadPrintType; + +typedef enum { YAD_PROGRESS_NORMAL = 0, YAD_PROGRESS_RTL, YAD_PROGRESS_PULSE, @@ -99,6 +106,7 @@ typedef struct { gchar *name; + gchar *cmd; gint response; } YadButton; @@ -131,6 +139,7 @@ guint timeout; gchar *to_indicator; gchar *dialog_text; + gdouble text_align; gchar *dialog_image; gboolean image_on_top; gchar *icon_theme; @@ -237,10 +246,16 @@ } YadNotificationData; typedef struct { + YadPrintType type; + gboolean headers; + gboolean preview; +} YadPrintData; + +typedef struct { gchar *progress_text; gboolean pulsate; gboolean autoclose; -#if !defined(_WIN32) +#ifndef G_OS_WIN32 gboolean autokill; #endif gdouble percentage; @@ -299,13 +314,14 @@ YadListData list_data; YadMultiProgressData multi_progress_data; YadNotificationData notification_data; + YadPrintData print_data; YadProgressData progress_data; YadScaleData scale_data; YadTextData text_data; gchar **extra_data; -#if !defined(_WIN32) +#ifndef G_OS_WIN32 gboolean kill_parent; gboolean print_xid; #endif @@ -367,10 +383,11 @@ void dnd_init (GtkWidget *w); gint yad_notification_run (void); - +gint yad_print_run (void); gint yad_about (void); void read_settings (void); +void write_settings (void); GdkPixbuf * get_pixbuf (gchar *name, YadIconSize size);
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
.