Projects
Extra
yad
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 8
View file
yad.changes
Changed
@@ -1,4 +1,12 @@ ------------------------------------------------------------------- +Sun Mar 13 00:00:00 UTC 2011 - detlef@links2linux.de + +- new upstream version <0.9.1> + * fix handle markup for tooltips in list and icons dialogs + * add ukrainian and update slovak translations + * use GtkComboBoxText in entry and form dialogs when gtk+ >= 2.24.x is used + +------------------------------------------------------------------- Thu Mar 03 00:00:00 UTC 2011 - detlef@links2linux.de - new upstream version <0.9.0>
View file
yad.spec
Changed
@@ -1,7 +1,7 @@ # norootforbuild Name: yad -Version: 0.9.0 +Version: 0.9.1 Release: 1 Summary: A fork of Zenity with many improvements @@ -13,7 +13,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot -BuildRequires: gtk2-devel intltool pkgconfig +BuildRequires: gtk2-devel intltool pkgconfig update-desktop-files %description @@ -36,7 +36,7 @@ %build -%configure +%configure --enable-icon-browser %__make %{?jobs:-j%{jobs}} @@ -44,6 +44,7 @@ %makeinstall %find_lang %{name} +%suse_update_desktop_file -r %{name}-icon-browser Utility DesktopUtility %clean rm -rf "%{buildroot}" @@ -53,6 +54,8 @@ %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING README THANKS TODO %{_bindir}/%{name} +%{_bindir}/%{name}-icon-browser +%{_datadir}/applications/%{name}-icon-browser.desktop %{_datadir}/pixmaps/%{name}.png %{_datadir}/aclocal/%{name}.m4 %{_mandir}/man1/%{name}.1.gz
View file
yad-0.9.0.tar.bz2/ChangeLog -> yad-0.9.1.tar.bz2/ChangeLog
Changed
@@ -1,3 +1,46 @@ +2011-03-13 07:33 ananasik + + * src/icons.c, src/list.c, src/util.c, src/yad.h: fix markup + tooltips in icons dialog + +2011-03-11 12:36 ananasik + + * configure.ac: increase version in configure.ac + +2011-03-11 08:33 ananasik + + * src/util.c: + +2011-03-11 08:31 ananasik + + * src/list.c, src/util.c, src/yad.h: fix printing result in list + dialog + +2011-03-11 07:39 ananasik + + * src/list.c: + +2011-03-11 05:42 ananasik + + * src/list.c: fix markup text in list dialog + +2011-03-08 07:23 ananasik + + * po/LINGUAS, po/ru.po, po/uk.po: add ukrainian translation + +2011-03-08 05:53 ananasik + + * po/sk.po: update slovak translation + +2011-03-07 19:41 ananasik + + * src/entry.c, src/form.c: use GtkComboBoxText in form end entry + dialogs if gtk >= 2.24.x + +2011-02-28 10:54 ananasik + + * ChangeLog, NEWS: release 0.9.0 + 2011-02-28 10:50 ananasik * configure.ac, data/yad.1, po/de.po, po/ru.po, po/sk.po,
View file
yad-0.9.0.tar.bz2/NEWS -> yad-0.9.1.tar.bz2/NEWS
Changed
@@ -1,3 +1,8 @@ +Version 0.9.1 + - fix handle markup for tooltips in list and icons dialogs + - add ukrainian and update slovak translations + - use GtkComboBoxText in entry and form dialogs when gtk+ >= 2.24.x is used + Version 0.9.0 - fix --hide-column option in list dialog - fix settting up initial value in scale dialog
View file
yad-0.9.0.tar.bz2/aclocal.m4 -> yad-0.9.1.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)dnl -AC_REQUIRE(AM_NLS)dnl +AC_PREREQ(2.50) +AC_REQUIRE(AM_NLS) 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.0.tar.bz2/configure -> yad-0.9.1.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.0. +# Generated by GNU Autoconf 2.68 for YAD 0.9.1. # # 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.0' -PACKAGE_STRING='YAD 0.9.0' +PACKAGE_VERSION='0.9.1' +PACKAGE_STRING='YAD 0.9.1' PACKAGE_BUGREPORT='http://code.google.com/p/yad/issues/entry' PACKAGE_URL='http://code.google.com/p/yad' @@ -763,19 +763,12 @@ LDFLAGS LIBS CPPFLAGS -CC -LDFLAGS -LIBS -CPPFLAGS PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR YAD_CFLAGS YAD_LIBS -YAD_CFLAGS -YAD_LIBS -CPP -CPPFLAGS' +CPP' # Initialize some variables set by options. @@ -1318,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.0 to adapt to many kinds of systems. +\`configure' configures YAD 0.9.1 to adapt to many kinds of systems. Usage: $0 OPTION... VAR=VALUE... @@ -1384,7 +1377,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of YAD 0.9.0:";; + short | recursive ) echo "Configuration of YAD 0.9.1:";; esac cat <<\_ACEOF @@ -1492,7 +1485,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -YAD configure 0.9.0 +YAD configure 0.9.1 generated by GNU Autoconf 2.68 Copyright (C) 2010 Free Software Foundation, Inc. @@ -1861,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.0, which was +It was created by YAD $as_me 0.9.1, which was generated by GNU Autoconf 2.68. Invocation command line was $ $0 $@ @@ -2676,7 +2669,7 @@ # Define the identity of the package. PACKAGE='yad' - VERSION='0.9.0' + VERSION='0.9.1' cat >>confdefs.h <<_ACEOF @@ -3755,6 +3748,8 @@ + + case "$am__api_version" in 1.01234) as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5 @@ -4298,6 +4293,8 @@ + + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -6978,7 +6975,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.0, which was +This file was extended by YAD $as_me 0.9.1, which was generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -7045,7 +7042,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.0 +YAD config.status 0.9.1 configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\"
View file
yad-0.9.0.tar.bz2/configure.ac -> yad-0.9.1.tar.bz2/configure.ac
Changed
@@ -1,4 +1,4 @@ -AC_INIT(YAD, 0.9.0, http://code.google.com/p/yad/issues/entry, yad, http://code.google.com/p/yad) +AC_INIT(YAD, 0.9.1, 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)
View file
yad-0.9.0.tar.bz2/po/LINGUAS -> yad-0.9.1.tar.bz2/po/LINGUAS
Changed
@@ -5,3 +5,4 @@ de ru sk +uk
View file
yad-0.9.0.tar.bz2/po/ru.po -> yad-0.9.1.tar.bz2/po/ru.po
Changed
@@ -108,7 +108,7 @@ #: ../src/notification.c:338 ../src/notification.c:340 msgid "Yad notification" -msgstr "Отобразить диалог уведомления" +msgstr "Диалог уведомлений" #: ../src/scale.c:39 #, c-format @@ -131,7 +131,7 @@ #: ../src/list.c:415 msgid "Delete row" -msgstr "Удалитиь строку" +msgstr "Удалить строку" #: ../src/list.c:442 #, c-format @@ -389,7 +389,7 @@ #: ../src/option.c:340 msgid "Activate save mode" -msgstr "Активировать защищенный режим" +msgstr "Активировать режим сохранения" #: ../src/option.c:346 ../src/option.c:386 ../src/option.c:492 msgid "Set output separator character" @@ -402,7 +402,7 @@ #: ../src/option.c:352 msgid "Confirm file selection if filename already exists" -msgstr "Подтверждать выбор файла, если имя файла уже существует" +msgstr "Подтверждать выбор файла, если файл уже существует" #: ../src/option.c:353 msgid "TEXT" @@ -904,6 +904,3 @@ #: ../data/yad-icon-browser.desktop.in.h:2 msgid "Inspect GTK Icon Theme" msgstr "Исследование темы иконок GTK" - -#~ msgid "Value out of range.\n" -#~ msgstr "Значение за пределами диапазона.\n"
View file
yad-0.9.0.tar.bz2/po/sk.po -> yad-0.9.1.tar.bz2/po/sk.po
Changed
@@ -2,14 +2,14 @@ # Slovenský preklad balíka YAD. # Copyright (C) 2010 THE YAD'S COPYRIGHT HOLDER # This file is distributed under the same license as the YAD package. -# Slavko <linux@slavino.sk>, 2010. +# Slavko <linux@slavino.sk>, 2010, 2011. # msgid "" 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: 2010-11-07 11:07+0100\n" +"PO-Revision-Date: 2011-02-28 18:50+0100\n" "Last-Translator: Slavko <linux@slavino.sk>\n" "Language-Team: Slovak <nomail>\n" "Language: \n" @@ -116,12 +116,12 @@ #: ../src/scale.c:48 #, c-format msgid "Initial value less than minimal.\n" -msgstr "" +msgstr "Počiatočná hodnota je menšia ako minimálna.\n" #: ../src/scale.c:53 -#, fuzzy, c-format +#, c-format msgid "Initial value greater than maximum.\n" -msgstr "Maximálna hodnota musí byť väčšia ako minimálna.\n" +msgstr "Maximálna hodnota je väčšia ako minimálna.\n" #: ../src/list.c:406 msgid "Add row" @@ -215,11 +215,11 @@ #: ../src/option.c:113 msgid "Use specified icon theme instead of default" -msgstr "" +msgstr "Použiť zadanú tému ikon, namiesto predvolenej" #: ../src/option.c:114 msgid "THEME" -msgstr "" +msgstr "TÉMA" #: ../src/option.c:119 msgid "Add dialog button (may be used multiple times)" @@ -243,7 +243,7 @@ #: ../src/option.c:145 msgid "Always print result" -msgstr "" +msgstr "Vždy vypísať výsledok" #: ../src/option.c:152 msgid "Set window sticky" @@ -311,7 +311,7 @@ #: ../src/option.c:232 msgid "Alias for --color" -msgstr "" +msgstr "Alias pre --color" #: ../src/option.c:238 msgid "Set initial color value" @@ -419,9 +419,9 @@ msgstr "Zobraziť dialóg Formulár" #: ../src/option.c:374 -#, fuzzy 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 alebo CB)" +msgstr "" +"Pridať do formulára pole (TYP – H RO, NUM, CHK, CB, FL, DIR, FN alebo CLR)" #: ../src/option.c:375 msgid "LABEL:TYPE" @@ -429,16 +429,15 @@ #: ../src/option.c:380 msgid "Set alignment of fileds labels (left, center or right)" -msgstr "" +msgstr "Nastaviť zarovnanie menoviek poli (left, center alebo right)" #: ../src/option.c:381 ../src/option.c:696 msgid "TYPE" msgstr "TYP" #: ../src/option.c:392 -#, fuzzy msgid "Set separator character for combobox or scale data" -msgstr "nastaviť znak výstupného oddeľovača" +msgstr "Nastaviť znak oddeľovača dát rozbaľovacieho zoznamu alebo zväčšenia" #: ../src/option.c:402 msgid "Display icons box dialog" @@ -476,11 +475,11 @@ #: ../src/option.c:445 msgid "Sort items by name instead of filename" -msgstr "" +msgstr "Radiť položky podľa mena namiesto mena súboru" #: ../src/option.c:451 msgid "Sort items in descending order" -msgstr "" +msgstr "Zoradiť položky zostupne" #: ../src/option.c:461 msgid "Display list dialog" @@ -537,6 +536,8 @@ #: ../src/option.c:528 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 msgid "Display notification" @@ -551,14 +552,12 @@ msgstr "Prijímať príkazy zo štandardného vstupu" #: ../src/option.c:556 -#, fuzzy msgid "Set separator character for menu values" -msgstr "nastaviť znak výstupného oddeľovača" +msgstr "Nastaviť znak oddeľovača hodnôt menu" #: ../src/option.c:562 -#, fuzzy msgid "Set separator character for menu items" -msgstr "nastaviť znak výstupného oddeľovača" +msgstr "Nastaviť znak oddeľovača položiek menu" #: ../src/option.c:572 msgid "Display progress indication dialog" @@ -679,7 +678,7 @@ msgstr "Verzia pre tlač" #: ../src/option.c:879 -#, fuzzy, c-format +#, c-format msgid "Unknown align type: %s\n" msgstr "Neznámy typ zarovnania: %s\n" @@ -851,17 +850,16 @@ msgstr "Pri čítaní súboru %s zistené neplatné UTF-8 dáta\n" #: ../src/form.c:99 -#, fuzzy msgid "Select file" -msgstr "Otvoriť súbor" +msgstr "Vyberte súbor" #: ../src/form.c:109 msgid "Select folder" -msgstr "" +msgstr "Vyberte pole" #: ../src/browser.c:127 msgid "scalable " -msgstr "" +msgstr "scalable " #: ../src/browser.c:135 #, c-format @@ -870,35 +868,38 @@ "<b>Sizes:</b> %s\n" "<b>Filename:</b> %s" msgstr "" +"<b>Meno:</b> %s\n" +"<b>Veľkosť:</b> %s\n" +"<b>Meno súboru:</b> %s" #: ../src/browser.c:136 msgid "built-in" -msgstr "" +msgstr "zabudované" #. initialize GTK+ and parse the command line arguments #: ../src/browser.c:195 msgid "- Icon browser" -msgstr "" +msgstr "– Prezerač ikon" #: ../src/browser.c:208 msgid "Icon browser" -msgstr "" +msgstr "Prezerač ikon" #: ../src/browser.c:251 msgid "Category" -msgstr "" +msgstr "Kategória" #: ../src/browser.c:284 msgid "Icons" -msgstr "" +msgstr "Ikony" #: ../data/yad-icon-browser.desktop.in.h:1 msgid "Icon Browser" -msgstr "" +msgstr "Prezerač ikon" #: ../data/yad-icon-browser.desktop.in.h:2 msgid "Inspect GTK Icon Theme" -msgstr "" +msgstr "Preskúmať GTK tému ikon" #~ msgid "Value out of range.\n" #~ msgstr "Hodnota mimo rozsah.\n"
View file
yad-0.9.1.tar.bz2/po/uk.po
Added
@@ -0,0 +1,902 @@ +# Ukrainian translation for YAD +# This file is distributed under the same license as the YAD package. +# +# Victor Ananjevsky <ananasik@gmail.com>, 2009-2011. +# +msgid "" +msgstr "" +"Project-Id-Version: YAD\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2011-02-28 12:49+0200\n" +"PO-Revision-Date: 2009-04-30 16:47+0300\n" +"Last-Translator: Victor Ananjevsky <ananasik@gmail.com>\n" +"Language-Team: Ukrainian\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.2\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:32 +msgid "translator-credits" +msgstr "Віктор Ананьєвський <ananasik@gmail.com>" + +#: ../src/about.c:34 +msgid "" +"This program 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" +"This program 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 " +"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 " +"Foundation; версії 2 цієї ліцензії, чи (на вашу думку) будь-якою більш " +"пізнішої версії.\n" +"Ця програма розповсюджується в сподіванні на те, що вона буде корисною, але " +"БЕЗ БУДЬ-ЯКИХ ГАРАНТІЙ, в тому числі без неявної гарантії КОМЕРЦІЙНОЇ " +"ЦІННОСТІ чи ПРИДАТНОСТІ ДЛЯ БУДЬ-ЯКИХ ЦІЛЕЙ. Докладніше про це дивіться GNU " +"General Public License.\n" +"Ви мали отримати копію GNU General Public License разом з цією програмою; " +"якщо це не так, напишіть у Free Software Foundation, Inc., 59 Temple " +"Place, Suite 330, Boston, MA 02111-1307 USA." + +#: ../src/about.c:53 +msgid "" +"Yet Another Dialog\n" +"(show dialog boxes from shell scripts)\n" +"\n" +"Based on Zenity code\n" +msgstr "" +"Yet Another Dialog\n" +"(Програма для відображення диалогових вікон із скриптов оболонки)\n" +"\n" +"Базується на коді Zenity\n" + +#: ../src/icons.c:238 +#, c-format +msgid "Unable to parse file %s: %s" +msgstr "Не можу розібрати файл %s: %s" + +#: ../src/icons.c:255 +#, c-format +msgid "Unable to open directory %s: %s" +msgstr "Не можу відкрити каталог %s: %s" + +#: ../src/main.c:69 ../src/main.c:167 +#, c-format +msgid "%d sec" +msgstr "%d сек" + +#: ../src/main.c:105 +#, c-format +msgid "Error loading window icon %s: %s\n" +msgstr "Помилка при загрузці іконки вікна %s: %s\n" + +#: ../src/main.c:380 +#, c-format +msgid "Unable parse command line: %s\n" +msgstr "Не вдається розібрати командну строку: %s\n" + +#: ../src/notification.c:72 +#, c-format +msgid "Could not load notification icon '%s': %s" +msgstr "Не вдається завантажити іконку '%s': %s" + +#: ../src/notification.c:244 +#, c-format +msgid "Invalid UTF-8 in tooltip!\n" +msgstr "Неправильна послідовність UTF-8 у підказці!\n" + +#: ../src/notification.c:297 +#, c-format +msgid "Unknown command '%s'\n" +msgstr "Невідома команда '%s'\n" + +#: ../src/notification.c:338 ../src/notification.c:340 +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 +msgid "Add row" +msgstr "Добавити строку" + +#: ../src/list.c:415 +msgid "Delete row" +msgstr "Видалити строку" + +#: ../src/list.c:442 +#, c-format +msgid "No column titles specified for List dialog.\n" +msgstr "Не задані заголовоки колонок для діалога зі списком\n" + +#: ../src/option.c:53 +msgid "Set the dialog title" +msgstr "Задати заголовок діалога" + +#: ../src/option.c:54 +msgid "TITLE" +msgstr "ЗАГОЛОВОК" + +#: ../src/option.c:59 +msgid "Set the window icon" +msgstr "Задати іконку діалога" + +#: ../src/option.c:60 +msgid "ICONPATH" +msgstr "ІКОНКА" + +#: ../src/option.c:65 +msgid "Set the width" +msgstr "Задати ширину вікна" + +#: ../src/option.c:66 +msgid "WIDTH" +msgstr "ШИРИНА" + +#: ../src/option.c:71 +msgid "Set the height" +msgstr "Задати висоту вікна" + +#: ../src/option.c:72 +msgid "HEIGHT" +msgstr "ВИСОТА" + +#: ../src/option.c:77 +msgid "Set the window geometry" +msgstr "Задати геометрію вікна" + +#: ../src/option.c:78 +msgid "WxH+X+Y" +msgstr "ВxШ+X+Y" + +#: ../src/option.c:83 +msgid "Set dialog timeout in seconds" +msgstr "Задати врем'я роботи діалога в секундах" + +#: ../src/option.c:84 +msgid "TIMEOUT" +msgstr "ЗАТРИМКА" + +#: ../src/option.c:89 +msgid "Show remaining time indicator (top, bottom, left, right)" +msgstr "Показувати індикатор затримки (top, bottom, left, right)" + +#: ../src/option.c:90 +msgid "POS" +msgstr "ПОЗИЦІЯ" + +#: ../src/option.c:95 +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 +msgid "TEXT" +msgstr "ТЕКСТ" + +#: ../src/option.c:101 +msgid "Set the dialog image" +msgstr "Задати картинку діалога" + +#: ../src/option.c:102 +msgid "IMAGE" +msgstr "КАРТИНКА" + +#: ../src/option.c:107 +msgid "Show image above main widget" +msgstr "Показувати картинку над основним віджетом" + +#: ../src/option.c:113 +msgid "Use specified icon theme instead of default" +msgstr "Використовувати вказану тему іконок" + +#: ../src/option.c:114 +msgid "THEME" +msgstr "ТЕМА" + +#: ../src/option.c:119 +msgid "Add dialog button (may be used multiple times)" +msgstr "Додати кнопку (може використовуватись декілька разів)" + +#: ../src/option.c:120 +msgid "NAME:ID" +msgstr "ИМ'Я:ID" + +#: ../src/option.c:125 +msgid "Don't show buttons" +msgstr "Не показувати кнопки" + +#: ../src/option.c:131 +msgid "Don't use pango markup language in dialog's text" +msgstr "Не використовувати розмітку pango у тексті" + +#: ../src/option.c:138 +msgid "Add separator between dialog and buttons" +msgstr "Додати розділювач між діалогом та кнопками" + +#: ../src/option.c:145 +msgid "Always print result" +msgstr "Завжди виводити результат" + +#: ../src/option.c:152 +msgid "Set window sticky" +msgstr "Вікно є на всіх робочих місцях" + +#: ../src/option.c:158 +msgid "Set window unresizable" +msgstr "Незмінний розмір" + +#: ../src/option.c:164 +msgid "Place window on top" +msgstr "Поместити вікно над іншими" + +#: ../src/option.c:170 +msgid "Place window on center of screen" +msgstr "Поместити вікно у центрі экрану" + +#: ../src/option.c:176 +msgid "Place window at the mouse position" +msgstr "Поместити вікно у позиції мишки" + +#: ../src/option.c:182 +msgid "Set window undecorated" +msgstr "Відалити границі вікна" + +#: ../src/option.c:192 +msgid "Display calendar dialog" +msgstr "ВІдобразити діалог для вибору дати" + +#: ../src/option.c:198 +msgid "Set the calendar day" +msgstr "Задати день календаря" + +#: ../src/option.c:199 +msgid "DAY" +msgstr "ДЕНЬ" + +#: ../src/option.c:204 +msgid "Set the calendar month" +msgstr "Задати місяць календаря" + +#: ../src/option.c:205 +msgid "MONTH" +msgstr "МІСЯЦЬ" + +#: ../src/option.c:210 +msgid "Set the calendar year" +msgstr "Задати год календаря" + +#: ../src/option.c:211 +msgid "YEAR" +msgstr "ГОД" + +#: ../src/option.c:216 +msgid "Set the format for the returned date" +msgstr "Задати формат відображення дати" + +#: ../src/option.c:217 ../src/option.c:440 +msgid "PATTERN" +msgstr "ШАБЛОН" + +#: ../src/option.c:226 +msgid "Display color selection dialog" +msgstr "Відобразити діалог для вибору коліра" + +#: ../src/option.c:232 +msgid "Alias for --color" +msgstr "Синоним для --color" + +#: ../src/option.c:238 +msgid "Set initial color value" +msgstr "Задати початковий колір" + +#: ../src/option.c:239 ../src/option.c:672 ../src/option.c:678 +msgid "COLOR" +msgstr "КОЛІР" + +#: ../src/option.c:244 +msgid "Set path to palette file. Default - " +msgstr "Задати путь до файлу кольорів. Без им'я - " + +#: ../src/option.c:245 ../src/option.c:323 ../src/option.c:714 +msgid "FILENAME" +msgstr "ИМ'Я_ФАЙЛА" + +#: ../src/option.c:250 +msgid "Use #rrrrggggbbbb format instead of #rrggbb" +msgstr "Викорістовувати формат #rrrrggggbbbb замість #rrggbb" + +#: ../src/option.c:260 +msgid "Display drag-n-drop box" +msgstr "Відобразити діалог для перехоплення dnd" + +#: ../src/option.c:266 +msgid "Set command for process d-n-d data" +msgstr "Команда для обробки отриманих даних" + +#: ../src/option.c:267 ../src/option.c:545 +msgid "CMD" +msgstr "КОМАНДА" + +#: ../src/option.c:276 +msgid "Display text entry or combo-box dialog" +msgstr "Відобразити діалог для вводу тексту або вибору варіанта" + +#: ../src/option.c:282 +msgid "Set the entry label" +msgstr "Задати метку поля ввода" + +#: ../src/option.c:288 +msgid "Set the entry text" +msgstr "Задати текст для поля вводу" + +#: ../src/option.c:294 +msgid "Hide the entry text" +msgstr "Сховати введений текст (Пароль)" + +#: ../src/option.c:300 +msgid "Use completion instead of combo-box" +msgstr "Використовувати автозаповнення замість списку значень" + +#: ../src/option.c:306 +msgid "Allow changes to text in combo-box" +msgstr "Дозволити змінювати текст у режимі выбору варіанта" + +#: ../src/option.c:316 +msgid "Display file selection dialog" +msgstr "Відобразити діалог для выбору файла" + +#: ../src/option.c:322 +msgid "Set the filename" +msgstr "Задати им'я файла" + +#: ../src/option.c:328 +msgid "Allow multiple files to be selected" +msgstr "Дозволити вибір декільких файлів" + +#: ../src/option.c:334 +msgid "Activate directory-only selection" +msgstr "Активувати виделення тільки по каталогам" + +#: ../src/option.c:340 +msgid "Activate save mode" +msgstr "Активувавти режим зберігання" + +#: ../src/option.c:346 ../src/option.c:386 ../src/option.c:492 +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 +msgid "SEPARATOR" +msgstr "РОЗДІЛЮВАЧ" + +#: ../src/option.c:352 +msgid "Confirm file selection if filename already exists" +msgstr "Підтвердити вибір файлу, якщо файл вже існує" + +#: ../src/option.c:353 +msgid "TEXT" +msgstr "ТЕКСТ" + +#: ../src/option.c:358 +msgid "Sets a filename filter" +msgstr "Задати фільтр файлів" + +#: ../src/option.c:359 +msgid "NAME | PATTERN1 PATTERN2 ..." +msgstr "ИМ'Я | ШАБЛОН1 ШАБЛОН2 ..." + +#: ../src/option.c:368 +msgid "Display form dialog" +msgstr "Відобразити діалог форми вводу" + +#: ../src/option.c:374 +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 +msgid "LABEL:TYPE" +msgstr "МІТКА:ТИП" + +#: ../src/option.c:380 +msgid "Set alignment of fileds labels (left, center or right)" +msgstr "Задати вирівнювання міток полей (left, center або right)" + +#: ../src/option.c:381 ../src/option.c:696 +msgid "TYPE" +msgstr "ТИП" + +#: ../src/option.c:392 +msgid "Set separator character for combobox or scale data" +msgstr "Задати рохділювач для даних списку або числового поля" + +#: ../src/option.c:402 +msgid "Display icons box dialog" +msgstr "Відобразити діалог з іконками швидкого доступу" + +#: ../src/option.c:408 +msgid "Read data from .desktop files in specified directory" +msgstr "Читати дані з .desktop файлів в заданому каталозі" + +#: ../src/option.c:409 +msgid "DIRECTORY" +msgstr "КАТАЛОГ" + +#: ../src/option.c:414 +msgid "Use compact (list) view" +msgstr "Використовувати компактний вид (список)" + +#: ../src/option.c:420 +msgid "Use GenericName field instead of Name for icon label" +msgstr "Використовувати поле GenericName замість Name для метки" + +#: ../src/option.c:426 +msgid "Read data from stdin" +msgstr "Читати дані зі стандартного вводу" + +#: ../src/option.c:432 +msgid "Set the width of dialog items" +msgstr "Задати ширину елементу діалога" + +#: ../src/option.c:439 +#, no-c-format +msgid "" +"Use specified pattern for launch command in terminal (default: xterm -e %s)" +msgstr "" +"Використовувати вказаний шаблон для запуску у терміналі (без шаблону: xterm -" +"e %s)" + +#: ../src/option.c:445 +msgid "Sort items by name instead of filename" +msgstr "Сортувати по полю Им'я замість файла" + +#: ../src/option.c:451 +msgid "Sort items in descending order" +msgstr "Сортувати у порядку пониження" + +#: ../src/option.c:461 +msgid "Display list dialog" +msgstr "Відобразити діалог зі списком" + +#: ../src/option.c:467 +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:474 +msgid "COLUMN:TYPE" +msgstr "СТОЛБЕЦЬ:ТИП" + +#: ../src/option.c:479 +msgid "Use check boxes for first column" +msgstr "Вікористовувати флажки для першої колонки" + +#: ../src/option.c:485 +msgid "Alias to checklist (deprecated)" +msgstr "Синоним для checklist" + +#: ../src/option.c:498 +msgid "Allow multiple rows to be selected" +msgstr "Дозволити вибір декількох строк" + +#: ../src/option.c:504 ../src/option.c:719 +msgid "Allow changes to text" +msgstr "Дозволити зминювати текст" + +#: ../src/option.c:510 +msgid "Print all data from list" +msgstr "Виводити таблицю повністю" + +#: ../src/option.c:516 +msgid "" +"Print a specific column. By default or if 0 is specified will be printed all " +"columns" +msgstr "" +"Виводити тільки вказаний стовбець. Без вказівки або якщо стовбець дорівнює " +"0, будуть виведені усі стовбці" + +#: ../src/option.c:517 ../src/option.c:523 ../src/option.c:529 +msgid "NUMBER" +msgstr "ЧИСЛО" + +#: ../src/option.c:522 +msgid "Hide a specific column" +msgstr "Скрити вказаний стовбець" + +#: ../src/option.c:528 +msgid "Set the column expandable by default. 0 sets all columns expandable" +msgstr "Задати колонку, яка расширюється. 0 розширює усі колонки" + +#: ../src/option.c:538 +msgid "Display notification" +msgstr "Відобразити діалог повідомлень" + +#: ../src/option.c:544 +msgid "Set left-click action" +msgstr "Дія для лівого кліку мишки" + +#: ../src/option.c:550 +msgid "Listen for commands on stdin" +msgstr "Читати команди зі стандартного вводу" + +#: ../src/option.c:556 +msgid "Set separator character for menu values" +msgstr "Встановити роздилювач для значень меню" + +#: ../src/option.c:562 +msgid "Set separator character for menu items" +msgstr "Встановити розділювач для елементів меню" + +#: ../src/option.c:572 +msgid "Display progress indication dialog" +msgstr "Відобразити діалог прогресу" + +#: ../src/option.c:578 +msgid "Set progress text" +msgstr "Показувати текст на індикаторі" + +#: ../src/option.c:584 +msgid "Set initial percentage" +msgstr "Задати початковий процент" + +#: ../src/option.c:585 +msgid "PERCENTAGE" +msgstr "ПРОЦЕНТИ" + +#: ../src/option.c:590 +msgid "Pulsate progress bar" +msgstr "Пульсуючий індикатор прогресу" + +#: ../src/option.c:597 +#, no-c-format +msgid "Dismiss the dialog when 100% has been reached" +msgstr "Закрити діалог по досягнені 100%" + +#: ../src/option.c:603 +msgid "Kill parent process if cancel button is pressed" +msgstr "Завершити батьківський процес, якщо нажата кнопка відміни" + +#: ../src/option.c:609 +msgid "Right-To-Left progress bar direction" +msgstr "Напрямок індикатору Зправа-Наліво" + +#: ../src/option.c:619 +msgid "Display scale dialog" +msgstr "Відобразити діалог масштабу" + +#: ../src/option.c:625 +msgid "Set initial value" +msgstr "Задати початкове значення" + +#: ../src/option.c:626 ../src/option.c:632 ../src/option.c:638 +#: ../src/option.c:644 +msgid "VALUE" +msgstr "ЗНАЧЕННЯ" + +#: ../src/option.c:631 +msgid "Set minimum value" +msgstr "Задати мінімальне значення" + +#: ../src/option.c:637 +msgid "Set maximum value" +msgstr "Задати максимальне значення" + +#: ../src/option.c:643 +msgid "Set step size" +msgstr "Задати крок" + +#: ../src/option.c:649 +msgid "Print partial values" +msgstr "Виводити часткові значення" + +#: ../src/option.c:655 +msgid "Hide value" +msgstr "Сховати значення" + +#: ../src/option.c:665 +msgid "Display text information dialog" +msgstr "Відобразити діалог з текстовою інформацією" + +#: ../src/option.c:671 +msgid "Use specified color for text" +msgstr "Використовувати вказаний колір тексту" + +#: ../src/option.c:677 +msgid "Use specified color for background" +msgstr "Виктористовувати вказаний колір фону" + +#: ../src/option.c:683 +msgid "Use specified font" +msgstr "Використовувати вказаний шрифт" + +#: ../src/option.c:684 +msgid "FONTNAME" +msgstr "ИМ'Я_ШРИФТА" + +#: ../src/option.c:689 +msgid "Enable text wrapping" +msgstr "Дозволити перенос тексту" + +#: ../src/option.c:695 +msgid "Set justification (TYPE - left, right, center or fill)" +msgstr "Встановити вирівнювання (ТИП - left, right, center або fill)" + +#: ../src/option.c:701 +msgid "Set text margins" +msgstr "Встановити відступи" + +#: ../src/option.c:702 +msgid "SIZE" +msgstr "РОЗМІР" + +#: ../src/option.c:707 +msgid "Autoscroll to end of text" +msgstr "Автопрокрутка у кінець тексту" + +#: ../src/option.c:713 +msgid "Open file" +msgstr "ВІдкрити файл" + +#: ../src/option.c:729 +msgid "Show about dialog" +msgstr "Показати діалог 'Про програму'" + +#: ../src/option.c:735 +msgid "Print version" +msgstr "Вивести версію" + +#: ../src/option.c:879 +#, c-format +msgid "Unknown align type: %s\n" +msgstr "Невідомий тип вирівнювання: %s\n" + +#: ../src/option.c:898 +#, c-format +msgid "Unknown justification type: %s\n" +msgstr "Невідомий тип вирівнювання: %s\n" + +#: ../src/option.c:1012 +msgid "File exist. Overwrite?" +msgstr "Файл існує. Перезаписати?" + +#: ../src/option.c:1072 +msgid "Yet another dialoging program" +msgstr "Програма для відображення діалогів" + +#. Adds general option entries +#: ../src/option.c:1076 +msgid "General options" +msgstr "Основні параметри" + +#: ../src/option.c:1077 +msgid "Show general options" +msgstr "Показувати основні параметри" + +#. Adds calendar option entries +#: ../src/option.c:1083 +msgid "Calendar options" +msgstr "Параметри календаря" + +#: ../src/option.c:1084 +msgid "Show calendar options" +msgstr "Показувати параметри календаря" + +#. Adds color option entries +#: ../src/option.c:1090 +msgid "Color options" +msgstr "Параметри діалога вибору коліра" + +#: ../src/option.c:1091 +msgid "Show color options" +msgstr "Показувати параметри діалога вибору коліра" + +#. Adds dnd option entries +#: ../src/option.c:1097 +msgid "DND options" +msgstr "Параметри DND" + +#: ../src/option.c:1098 +msgid "Show drag-n-drop options" +msgstr "Показувати параметри dnd" + +#. Adds entry option entries +#: ../src/option.c:1104 +msgid "Text entry options" +msgstr "Параметри вводу текста" + +#: ../src/option.c:1105 +msgid "Show text entry options" +msgstr "Показувати параметри вводу текста" + +#. Adds file selection option entries +#: ../src/option.c:1111 +msgid "File selection options" +msgstr "Параметри діалога вибору файла" + +#: ../src/option.c:1112 +msgid "Show file selection options" +msgstr "Показувати параметри діалога вибору файлів" + +#. Add form option entries +#: ../src/option.c:1118 +msgid "Form options" +msgstr "Параметри діалога форми" + +#: ../src/option.c:1119 +msgid "Show form options" +msgstr "Показувати параметри діалога форми" + +#. Add icons option entries +#: ../src/option.c:1125 +msgid "Icons box options" +msgstr "Параметри діалога іконок" + +#: ../src/option.c:1126 +msgid "Show icons box options" +msgstr "Показувати параметри діалога іконок швидкого доступа" + +#. Adds list option entries +#: ../src/option.c:1132 +msgid "List options" +msgstr "Параметри списка" + +#: ../src/option.c:1133 +msgid "Show list options" +msgstr "Показувати параметри списка" + +#. Adds notification option entries +#: ../src/option.c:1139 +msgid "Notification icon options" +msgstr "Параметри іконки повідомлення" + +#: ../src/option.c:1140 +msgid "Show notification icon options" +msgstr "Показувати параметри іконки повідомленнь" + +#. Adds progress option entries +#: ../src/option.c:1146 +msgid "Progress options" +msgstr "Параметри ходу прогреса" + +#: ../src/option.c:1147 +msgid "Show progress options" +msgstr "Показувати параметри ходу прогреса" + +#. Adds scale option entries +#: ../src/option.c:1153 +msgid "Scale options" +msgstr "Параметри масштаба" + +#: ../src/option.c:1154 +msgid "Show scale options" +msgstr "Показувати параметри масштаба" + +#. Adds text option entries +#: ../src/option.c:1160 +msgid "Text information options" +msgstr "Параметри текстової інформації" + +#: ../src/option.c:1161 +msgid "Show text information options" +msgstr "Показувати параметри текстової інформації" + +#. Adds miscellaneous option entries +#: ../src/option.c:1167 +msgid "Miscellaneous options" +msgstr "Додаткові параметри" + +#: ../src/option.c:1168 +msgid "Show miscellaneous options" +msgstr "Показувати додаткові параметри" + +#: ../src/color.c:64 +#, c-format +msgid "Can't open file %s: %s" +msgstr "Не можу відкрити файл %s: %s" + +#. create expander +#: ../src/color.c:144 +msgid "Palette" +msgstr "Палитра" + +#: ../src/color.c:163 +msgid "Color" +msgstr "Колір" + +#: ../src/color.c:180 +msgid "Name" +msgstr "Назва" + +#: ../src/text.c:128 +#, c-format +msgid "Cannot open file '%s': %s\n" +msgstr "Не можу відкрити файл %s: %s\n" + +#: ../src/text.c:158 +#, 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 "масштабуємий " + +#: ../src/browser.c:135 +#, c-format +msgid "" +"<b>Name:</b> %s\n" +"<b>Sizes:</b> %s\n" +"<b>Filename:</b> %s" +msgstr "" +"<b>Им'я:</b> %s\n" +"<b>Разміри:</b> %s\n" +"<b>Имєя файла:</b> %s" + +#: ../src/browser.c:136 +msgid "built-in" +msgstr "вбудований" + +#. initialize GTK+ and parse the command line arguments +#: ../src/browser.c:195 +msgid "- Icon browser" +msgstr "- Броузер іконок" + +#: ../src/browser.c:208 +msgid "Icon browser" +msgstr "Броузер іконок" + +#: ../src/browser.c:251 +msgid "Category" +msgstr "Категорія" + +#: ../src/browser.c:284 +msgid "Icons" +msgstr "Іконки" + +#: ../data/yad-icon-browser.desktop.in.h:1 +msgid "Icon Browser" +msgstr "Броузер іконок" + +#: ../data/yad-icon-browser.desktop.in.h:2 +msgid "Inspect GTK Icon Theme" +msgstr "Дослідження теми іконок GTK" +
View file
yad-0.9.0.tar.bz2/src/entry.c -> yad-0.9.1.tar.bz2/src/entry.c
Changed
@@ -72,25 +72,42 @@ if (options.common_data.editable || settings.combo_always_editable) { +#if GTK_CHECK_VERSION(2,24,0) + c = gtk_combo_box_text_new_with_entry (); +#else c = gtk_combo_box_entry_new_text (); +#endif entry = gtk_bin_get_child (GTK_BIN (c)); } else { +#if GTK_CHECK_VERSION(2,24,0) + c = entry = gtk_combo_box_text_new (); +#else c = entry = gtk_combo_box_new_text (); +#endif is_combo = TRUE; } while (options.extra_datai != NULL) { +#if GTK_CHECK_VERSION(2,24,0) + gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (c), options.extra_datai); +#else gtk_combo_box_append_text (GTK_COMBO_BOX (c), options.extra_datai); +#endif i++; } if (options.entry_data.entry_text) { +#if GTK_CHECK_VERSION(2,24,0) + gtk_combo_box_text_prepend_text (GTK_COMBO_BOX_TEXT (c), + options.entry_data.entry_text); +#else gtk_combo_box_prepend_text (GTK_COMBO_BOX (c), options.entry_data.entry_text); +#endif gtk_combo_box_set_active (GTK_COMBO_BOX (c), 0); } } @@ -135,7 +152,11 @@ entry_print_result (void) { 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 g_print ("%s\n", gtk_combo_box_get_active_text (GTK_COMBO_BOX (entry))); +#endif else g_print ("%s\n", gtk_entry_get_text (GTK_ENTRY (entry))); }
View file
yad-0.9.0.tar.bz2/src/form.c -> yad-0.9.1.tar.bz2/src/form.c
Changed
@@ -86,7 +86,11 @@ gtk_misc_set_alignment (GTK_MISC (l), options.form_data.align, 0.5); gtk_table_attach (GTK_TABLE (w), l, 0, 1, i, i + 1, GTK_FILL, 0, 5, 5); +#if GTK_CHECK_VERSION(2,24,0) + e = gtk_combo_box_text_new (); +#else e = gtk_combo_box_new_text (); +#endif gtk_table_attach (GTK_TABLE (w), e, 1, 2, i, i + 1, GTK_EXPAND | GTK_FILL, 0, 5, 5); fields = g_slist_append (fields, e); break; @@ -188,7 +192,11 @@ s = g_strsplit (options.extra_datai, options.common_data.item_separator, -1); while (sj) { +#if GTK_CHECK_VERSION(2,24,0) + gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (g_slist_nth_data (fields, i)), sj); +#else gtk_combo_box_append_text (GTK_COMBO_BOX (g_slist_nth_data (fields, i)), sj); +#endif j++; } gtk_combo_box_set_active (GTK_COMBO_BOX (g_slist_nth_data (fields, i)), 0); @@ -255,7 +263,11 @@ break; case YAD_FIELD_COMBO: g_printf ("%s%s", +#if GTK_CHECK_VERSION(2,24,0) + gtk_combo_box_text_get_active_text (GTK_COMBO_BOX_TEXT (g_slist_nth_data (fields, i))), +#else gtk_combo_box_get_active_text (GTK_COMBO_BOX (g_slist_nth_data (fields, i))), +#endif options.common_data.separator); break; case YAD_FIELD_FILE:
View file
yad-0.9.0.tar.bz2/src/icons.c -> yad-0.9.1.tar.bz2/src/icons.c
Changed
@@ -135,10 +135,18 @@ switch (column_count) { case COL_NAME: - case COL_TOOLTIP: case COL_COMMAND: gtk_list_store_set (GTK_LIST_STORE (model), &iter, column_count, string->str, -1); break; + case COL_TOOLTIP: + { + gchar *val; + + val = escape_markup (string->str); + gtk_list_store_set (GTK_LIST_STORE (model), &iter, column_count, val, -1); + g_free (val); + break; + } case COL_PIXBUF: if (options.icons_data.compact) if (*string->str) @@ -191,6 +199,7 @@ if (g_key_file_has_group (kf, "Desktop Entry")) { gint i; + gchar *val; if (options.icons_data.generic) { @@ -211,7 +220,9 @@ ent->name = g_strdup (nm); g_free (nm); } - ent->comment = g_key_file_get_locale_string (kf, "Desktop Entry", "Comment", NULL, NULL); + val = g_key_file_get_locale_string (kf, "Desktop Entry", "Comment", NULL, NULL); + ent->comment = escape_markup (val); + g_free (val); ent->command = g_key_file_get_string (kf, "Desktop Entry", "Exec", NULL); /* remove possible arguments patterns */ for (i = strlen (ent->command); i > 0; i--)
View file
yad-0.9.0.tar.bz2/src/list.c -> yad-0.9.1.tar.bz2/src/list.c
Changed
@@ -45,7 +45,7 @@ static void toggled_cb (GtkCellRendererToggle *cell, - gchar *path_str, gpointer data) + gchar *path_str, gpointer data) { gint column; gboolean fixed; @@ -107,22 +107,22 @@ YadColumn *col = (YadColumn *) g_slist_nth_data (options.list_data.columns, i); switch (col->type) - { - case YAD_COLUMN_CHECK: - ctypesi = G_TYPE_BOOLEAN; - break; - case YAD_COLUMN_NUM: - ctypesi = G_TYPE_INT64; - break; - case YAD_COLUMN_IMAGE: - ctypesi = GDK_TYPE_PIXBUF; - break; - case YAD_COLUMN_TOOLTIP: - case YAD_COLUMN_TEXT: - default: - ctypesi = G_TYPE_STRING; - break; - } + { + case YAD_COLUMN_CHECK: + ctypesi = G_TYPE_BOOLEAN; + break; + case YAD_COLUMN_NUM: + ctypesi = G_TYPE_INT64; + break; + case YAD_COLUMN_IMAGE: + ctypesi = GDK_TYPE_PIXBUF; + break; + case YAD_COLUMN_TOOLTIP: + case YAD_COLUMN_TEXT: + default: + ctypesi = G_TYPE_STRING; + break; + } } store = gtk_list_store_newv (n_columns, ctypes); @@ -142,44 +142,56 @@ YadColumn *col = (YadColumn *) g_slist_nth_data (options.list_data.columns, i); if (i == options.list_data.hide_column - 1) - continue; + continue; switch (col->type) - { - case YAD_COLUMN_CHECK: - 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); - 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); - break; - case YAD_COLUMN_NUM: - case YAD_COLUMN_TEXT: - case YAD_COLUMN_TOOLTIP: - default: - renderer = gtk_cell_renderer_text_new (); - if (options.common_data.editable) - { - g_object_set (G_OBJECT (renderer), "editable", TRUE, NULL); - 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); - gtk_tree_view_column_set_sort_column_id (column, i); - gtk_tree_view_column_set_resizable (column, TRUE); - break; - } + { + case YAD_COLUMN_CHECK: + 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); + 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); + break; + case YAD_COLUMN_NUM: + renderer = gtk_cell_renderer_text_new (); + if (options.common_data.editable) + { + g_object_set (G_OBJECT (renderer), "editable", TRUE, NULL); + 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); + gtk_tree_view_column_set_sort_column_id (column, i); + gtk_tree_view_column_set_resizable (column, TRUE); + break; + case YAD_COLUMN_TEXT: + case YAD_COLUMN_TOOLTIP: + default: + renderer = gtk_cell_renderer_text_new (); + if (options.common_data.editable) + { + g_object_set (G_OBJECT (renderer), "editable", TRUE, NULL); + 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); + 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); + options.list_data.expand_column == 0) + gtk_tree_view_column_set_expand (column, TRUE); } } @@ -209,9 +221,10 @@ do { - YadColumn *col; - GdkPixbuf *pb; + YadColumn *col; + GdkPixbuf *pb; gint status; + gchar *val; do { @@ -222,7 +235,7 @@ gtk_main_iteration (); } while (status == G_IO_STATUS_AGAIN); - strip_new_line (string->str); + strip_new_line (string->str); if (status != G_IO_STATUS_NORMAL) { @@ -230,7 +243,7 @@ { g_printerr ("yad_list_handle_stdin(): %s", err->message); g_error_free (err); - err = NULL; + err = NULL; } continue; } @@ -243,34 +256,36 @@ gtk_list_store_append (GTK_LIST_STORE (model), &iter); } - col = (YadColumn *) g_slist_nth_data (options.list_data.columns, column_count); - - switch (col->type) - { - case YAD_COLUMN_CHECK: - if (g_ascii_strcasecmp (string->str, "true") == 0) - gtk_list_store_set (GTK_LIST_STORE (model), &iter, column_count, TRUE, -1); - else - 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); - 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); - g_object_unref (pb); - break; - case YAD_COLUMN_TEXT: - default: - gtk_list_store_set (GTK_LIST_STORE (model), &iter, - column_count, string->str, -1); - break; - } - - column_count++; + col = (YadColumn *) g_slist_nth_data (options.list_data.columns, column_count); + + switch (col->type) + { + case YAD_COLUMN_CHECK: + if (g_ascii_strcasecmp (string->str, "true") == 0) + gtk_list_store_set (GTK_LIST_STORE (model), &iter, column_count, TRUE, -1); + else + 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); + 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); + g_object_unref (pb); + break; + case YAD_COLUMN_TEXT: + case YAD_COLUMN_TOOLTIP: + default: + val = escape_markup (string->str); + gtk_list_store_set (GTK_LIST_STORE (model), &iter, column_count, val, -1); + g_free (val); + break; + } + + column_count++; } while (g_io_channel_get_buffer_condition (channel) == G_IO_IN); g_string_free (string, TRUE); @@ -298,43 +313,47 @@ gint i = 0; while (argsi != NULL) - { - gint j; - - gtk_list_store_append (model, &iter); - for (j = 0; j < n_columns; j++) - { - YadColumn *col = (YadColumn *) g_slist_nth_data (options.list_data.columns, j); - GdkPixbuf *pb; - - if (argsi == NULL) - break; - - switch (col->type) - { - case YAD_COLUMN_CHECK: - if (g_ascii_strcasecmp ((gchar *) argsi, "true") == 0) - gtk_list_store_set (model, &iter, j, TRUE, -1); - else - gtk_list_store_set (model, &iter, j, FALSE, -1); - break; - case YAD_COLUMN_NUM: - gtk_list_store_set (GTK_LIST_STORE (model), &iter, j, - g_ascii_strtoll (argsi, NULL, 10), -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_TEXT: - default: - gtk_list_store_set (GTK_LIST_STORE (model), &iter, j, argsi, -1); - break; - } - i++; - } - } + { + gint j; + + gtk_list_store_append (model, &iter); + for (j = 0; j < n_columns; j++) + { + YadColumn *col = (YadColumn *) g_slist_nth_data (options.list_data.columns, j); + GdkPixbuf *pb; + gchar *val; + + if (argsi == NULL) + break; + + switch (col->type) + { + case YAD_COLUMN_CHECK: + if (g_ascii_strcasecmp ((gchar *) argsi, "true") == 0) + gtk_list_store_set (model, &iter, j, TRUE, -1); + else + gtk_list_store_set (model, &iter, j, FALSE, -1); + break; + case YAD_COLUMN_NUM: + gtk_list_store_set (GTK_LIST_STORE (model), &iter, j, + g_ascii_strtoll (argsi, NULL, 10), -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_TEXT: + case YAD_COLUMN_TOOLTIP: + default: + val = escape_markup (argsi); + gtk_list_store_set (GTK_LIST_STORE (model), &iter, j, val, -1); + g_free (val); + break; + } + i++; + } + } } else { @@ -344,13 +363,13 @@ g_io_channel_set_encoding (channel, NULL, NULL); g_io_channel_set_flags (channel, G_IO_FLAG_NONBLOCK, NULL); g_io_add_watch (channel, G_IO_IN | G_IO_HUP, - handle_stdin, GINT_TO_POINTER (n_columns)); + handle_stdin, GINT_TO_POINTER (n_columns)); } } static void double_click_cb (GtkTreeView *view, GtkTreePath *path, - GtkTreeViewColumn *column, gpointer data) + GtkTreeViewColumn *column, gpointer data) { if (options.list_data.checkbox) { @@ -359,13 +378,13 @@ model = gtk_tree_view_get_model (view); if (gtk_tree_model_get_iter (model, &iter, path)) - { - gboolean chk; + { + gboolean chk; - gtk_tree_model_get (model, &iter, 0, &chk, -1); - chk = !chk; - gtk_list_store_set (GTK_LIST_STORE (model), &iter, 0, chk, -1); - } + gtk_tree_model_get (model, &iter, 0, &chk, -1); + chk = !chk; + gtk_list_store_set (GTK_LIST_STORE (model), &iter, 0, chk, -1); + } } else gtk_dialog_response (GTK_DIALOG (data), YAD_RESPONSE_OK); @@ -405,25 +424,25 @@ item = gtk_image_menu_item_new_with_label (_("Add row")); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), - gtk_image_new_from_stock - (GTK_STOCK_ADD, GTK_ICON_SIZE_MENU)); + gtk_image_new_from_stock + (GTK_STOCK_ADD, GTK_ICON_SIZE_MENU)); gtk_widget_show (item); gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); g_signal_connect (G_OBJECT (item), "activate", - G_CALLBACK (add_row_cb), NULL); + G_CALLBACK (add_row_cb), NULL); item = gtk_image_menu_item_new_with_label (_("Delete row")); gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (item), - gtk_image_new_from_stock - (GTK_STOCK_REMOVE, GTK_ICON_SIZE_MENU)); + gtk_image_new_from_stock + (GTK_STOCK_REMOVE, GTK_ICON_SIZE_MENU)); gtk_widget_show (item); gtk_menu_shell_append (GTK_MENU_SHELL (menu), item); g_signal_connect (G_OBJECT (item), "activate", - G_CALLBACK (del_row_cb), NULL); + G_CALLBACK (del_row_cb), NULL); gtk_widget_show (menu); gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, - NULL, ev->button, 0); + NULL, ev->button, 0); } return FALSE; } @@ -445,8 +464,8 @@ w = gtk_scrolled_window_new (NULL, NULL); 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); @@ -463,26 +482,26 @@ if (options.common_data.multi && !options.list_data.checkbox) { GtkTreeSelection *sel = - gtk_tree_view_get_selection (GTK_TREE_VIEW (list_view)); + gtk_tree_view_get_selection (GTK_TREE_VIEW (list_view)); gtk_tree_selection_set_mode (sel, GTK_SELECTION_MULTIPLE); } if (options.list_data.checkbox || !options.common_data.multi) { g_signal_connect (G_OBJECT (list_view), "row-activated", - G_CALLBACK (double_click_cb), dlg); + G_CALLBACK (double_click_cb), dlg); } if (options.common_data.editable) { /* add popup menu */ g_signal_connect_swapped (G_OBJECT (list_view), "button_press_event", - G_CALLBACK (popup_menu_cb), NULL); + G_CALLBACK (popup_menu_cb), NULL); } /* Return submits data */ g_signal_connect (G_OBJECT (list_view), "key-press-event", - G_CALLBACK (list_activate_cb), dlg); + G_CALLBACK (list_activate_cb), dlg); fill_data (n_columns); @@ -502,10 +521,10 @@ YadColumn *col = (YadColumn *) g_slist_nth_data (options.list_data.columns, i); if (col->type = YAD_COLUMN_TOOLTIP) - { - gtk_tree_view_set_tooltip_column (GTK_TREE_VIEW (list_view), i); - break; - } + { + gtk_tree_view_set_tooltip_column (GTK_TREE_VIEW (list_view), i); + break; + } } return w; @@ -523,24 +542,27 @@ { case YAD_COLUMN_CHECK: { - gboolean bval; - gtk_tree_model_get (model, iter, num, &bval, -1); - g_printf ("%s", bval ? "TRUE" : "FALSE"); - break; + gboolean bval; + gtk_tree_model_get (model, iter, num, &bval, -1); + g_printf ("%s", bval ? "TRUE" : "FALSE"); + break; } case YAD_COLUMN_NUM: { - gint64 nval; - gtk_tree_model_get (model, iter, num, &nval, -1); - g_printf ("%d", nval); - break; + gint64 nval; + gtk_tree_model_get (model, iter, num, &nval, -1); + g_printf ("%d", nval); + break; } case YAD_COLUMN_TOOLTIP: case YAD_COLUMN_TEXT: + default: { - gchar *cval; - gtk_tree_model_get (model, iter, num, &cval, -1); - g_printf ("%s", cval); + gchar *cval, *uval; + gtk_tree_model_get (model, iter, num, &cval, -1); + uval = unescape_markup (cval); + g_printf ("%s", uval); + g_free (uval); break; } } @@ -549,7 +571,7 @@ static void print_selected (GtkTreeModel *model, GtkTreePath *path, - GtkTreeIter *iter, gpointer data) + GtkTreeIter *iter, gpointer data) { gint col = options.list_data.print_column; @@ -559,7 +581,7 @@ { gint i; for (i = 0; i < gtk_tree_model_get_n_columns (model); i++) - print_col (model, iter, i); + print_col (model, iter, i); } g_printf ("\n"); } @@ -573,12 +595,12 @@ 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"); - } + { + gint i; + for (i = 0; i < cols; i++) + print_col (model, &iter, i); + g_printf ("\n"); + } while (gtk_tree_model_iter_next (model, &iter)); } } @@ -601,50 +623,50 @@ { // don't check in cycle if (col) - { - GtkTreeIter iter; - - if (gtk_tree_model_get_iter_first (model, &iter)) - { - do - { - gboolean chk; - gtk_tree_model_get (model, &iter, 0, &chk, -1); - if (chk) - { - print_col (model, &iter, col - 1); - g_printf ("\n"); - } - } - while (gtk_tree_model_iter_next (model, &iter)); - } - } + { + GtkTreeIter iter; + + if (gtk_tree_model_get_iter_first (model, &iter)) + { + do + { + gboolean chk; + gtk_tree_model_get (model, &iter, 0, &chk, -1); + if (chk) + { + print_col (model, &iter, col - 1); + g_printf ("\n"); + } + } + while (gtk_tree_model_iter_next (model, &iter)); + } + } else - { - GtkTreeIter iter; - - if (gtk_tree_model_get_iter_first (model, &iter)) - { - do - { - gboolean chk; - gtk_tree_model_get (model, &iter, 0, &chk, -1); - if (chk) - { - gint i; - for (i = 0; i < gtk_tree_model_get_n_columns (model); i++) - print_col (model, &iter, i); - g_printf ("\n"); - } - } - while (gtk_tree_model_iter_next (model, &iter)); - } - } + { + GtkTreeIter iter; + + if (gtk_tree_model_get_iter_first (model, &iter)) + { + do + { + gboolean chk; + gtk_tree_model_get (model, &iter, 0, &chk, -1); + if (chk) + { + gint i; + for (i = 0; i < gtk_tree_model_get_n_columns (model); i++) + print_col (model, &iter, i); + g_printf ("\n"); + } + } + while (gtk_tree_model_iter_next (model, &iter)); + } + } } else { GtkTreeSelection *sel = - gtk_tree_view_get_selection (GTK_TREE_VIEW (list_view)); + gtk_tree_view_get_selection (GTK_TREE_VIEW (list_view)); gtk_tree_selection_selected_foreach (sel, print_selected, NULL); }
View file
yad-0.9.0.tar.bz2/src/util.c -> yad-0.9.1.tar.bz2/src/util.c
Changed
@@ -19,6 +19,7 @@ * */ +#include <stdlib.h> #include <string.h> #include "yad.h" @@ -202,3 +203,105 @@ return res; } + +gchar * +escape_markup (gchar *str) +{ + gchar *res, *buf = str; + guint i = 0, len; + + len = strlen (str); + res = malloc (len); + + while (*buf) + { + switch (*buf) + { + case '&': + len += 4; + res = realloc (res, len); + strcpy (res + i, "&"); + i += 5; + break; + case '<': + len += 3; + res = realloc (res, len); + strcpy (res + i, "<"); + i += 4; + break; + case '>': + len += 3; + res = realloc (res, len); + strcpy (res + i, ">"); + i += 4; + break; + case '"': + len += 5; + res = realloc (res, len); + strcpy (res + i, """); + i += 6; + break; + case '\'': + len += 5; + res = realloc (res, len); + strcpy (res + i, "'"); + i += 6; + break; + default: + *(res + i) = *buf; + i++; + break; + } + buf++; + } + resi = '\0'; + + return res; +} + +gchar * +unescape_markup (gchar *str) +{ + gchar *res, *buf = str; + guint i = 0; + + res = g_new0 (gchar, strlen (str)); + + while (*buf) + { + if (*buf == '&') + { + buf++; + if (strncmp (buf, "lt;", 3) == 0) + { + resi = '<'; + buf += 3; + } + else if (strncmp (buf, "gt;", 3) == 0) + { + resi = '>'; + buf += 3; + } + else if (strncmp (buf, "amp;", 4) == 0) + { + resi = '&'; + buf += 4; + } + else if (strncmp (buf, "quot;", 5) == 0) + { + resi = '"'; + buf += 5; + } + else if (strncmp (buf, "apos;", 5) == 0) + { + resi = '\''; + buf += 5; + } + } + else + resi = *buf++; + i++; + } + + return res; +}
View file
yad-0.9.0.tar.bz2/src/yad.h -> yad-0.9.1.tar.bz2/src/yad.h
Changed
@@ -303,6 +303,9 @@ inline void strip_new_line (gchar *str); gchar **split_arg (const gchar *str); +gchar *escape_markup (gchar *str); +gchar *unescape_markup (gchar *str); + G_END_DECLS #endif /* _YAD_H_ */
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
.