Projects
Extra
yad
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 11
View file
yad.changes
Changed
@@ -1,3 +1,11 @@ +Sat Apr 16 00:00:00 UTC 2011 - detlef@links2linux.de + +- new upstream version <0.10.2> + * fix wrong memory allocation when handling makrup text + * fix reading data from stdin in text dialogs + * 'always selected' settings in list dialog works only for command-line data + * update README and manual page + ------------------------------------------------------------------- Fri Apr 08 00:00:00 UTC 2011 - detlef@links2linux.de
View file
yad.spec
Changed
@@ -1,7 +1,7 @@ # norootforbuild Name: yad -Version: 0.10.1 +Version: 0.10.2 Release: 1 Summary: A fork of Zenity with many improvements
View file
yad-0.10.1.tar.bz2/ChangeLog -> yad-0.10.2.tar.bz2/ChangeLog
Changed
@@ -1,3 +1,35 @@ +2011-04-16 08:45 ananasik + + * NEWS: + +2011-04-16 08:41 ananasik + + * configure.ac: bump version to 0.10.2 + +2011-04-16 08:36 ananasik + + * data/yad.1: update man page + +2011-04-12 04:36 ananasik + + * README: update README + +2011-04-10 09:37 ananasik + + * src/util.c: fix wrong memory allocation + +2011-04-10 06:30 ananasik + + * src/list.c: fix "always selected" setting + +2011-04-10 06:10 ananasik + + * src/text.c: fix reading data from stdin in text dialog + +2011-04-06 08:07 ananasik + + * ChangeLog, NEWS: release 0.10.1 + 2011-04-05 04:10 ananasik * src/main.c: fix issue 51
View file
yad-0.10.1.tar.bz2/NEWS -> yad-0.10.2.tar.bz2/NEWS
Changed
@@ -1,3 +1,9 @@ +Version 0.10.2 + - fix wrong memory allocation when handling makrup text + - fix reading data from stdin in text dialogs + - 'always selected' settings in list dialog works only for command-line data + - update README and manual page + Version 0.10.1 - fix URI handling in dnd dialog for non-gtk applications - fix sizing for gtk3 builds
View file
yad-0.10.1.tar.bz2/README -> yad-0.10.2.tar.bz2/README
Changed
@@ -1,7 +1,7 @@ Yet Another Dialog ======================= Program allows you to display GTK+ dialog boxes from commandline or -shell scripts. YAD depends on GTK+ only. Minimal GTK+ version is 2.12.0 +shell scripts. YAD depends on GTK+ only. Minimal GTK+ version is 2.16.0 This software is licensed under the GPL v.3
View file
yad-0.10.1.tar.bz2/aclocal.m4 -> yad-0.10.2.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.10.1.tar.bz2/configure -> yad-0.10.2.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.10.1. +# Generated by GNU Autoconf 2.68 for YAD 0.10.2. # # 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.10.1' -PACKAGE_STRING='YAD 0.10.1' +PACKAGE_VERSION='0.10.2' +PACKAGE_STRING='YAD 0.10.2' PACKAGE_BUGREPORT='http://code.google.com/p/yad/issues/entry' PACKAGE_URL='http://code.google.com/p/yad' @@ -1311,7 +1311,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures YAD 0.10.1 to adapt to many kinds of systems. +\`configure' configures YAD 0.10.2 to adapt to many kinds of systems. Usage: $0 OPTION... VAR=VALUE... @@ -1377,7 +1377,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of YAD 0.10.1:";; + short | recursive ) echo "Configuration of YAD 0.10.2:";; esac cat <<\_ACEOF @@ -1485,7 +1485,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -YAD configure 0.10.1 +YAD configure 0.10.2 generated by GNU Autoconf 2.68 Copyright (C) 2010 Free Software Foundation, Inc. @@ -1854,7 +1854,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by YAD $as_me 0.10.1, which was +It was created by YAD $as_me 0.10.2, which was generated by GNU Autoconf 2.68. Invocation command line was $ $0 $@ @@ -2669,7 +2669,7 @@ # Define the identity of the package. PACKAGE='yad' - VERSION='0.10.1' + VERSION='0.10.2' cat >>confdefs.h <<_ACEOF @@ -3748,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 @@ -4291,6 +4293,8 @@ + + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -6971,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.10.1, which was +This file was extended by YAD $as_me 0.10.2, which was generated by GNU Autoconf 2.68. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -7038,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.10.1 +YAD config.status 0.10.2 configured by $0, generated by GNU Autoconf 2.68, with options \\"\$ac_cs_config\\"
View file
yad-0.10.1.tar.bz2/configure.ac -> yad-0.10.2.tar.bz2/configure.ac
Changed
@@ -1,4 +1,4 @@ -AC_INIT(YAD, 0.10.1, http://code.google.com/p/yad/issues/entry, yad, http://code.google.com/p/yad) +AC_INIT(YAD, 0.10.2, 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.10.1.tar.bz2/data/yad.1 -> yad-0.10.2.tar.bz2/data/yad.1
Changed
@@ -264,7 +264,7 @@ \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 separator, the same as in \fImenu\fP command for notification icon, and may be changed in the config file. +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. \fIFL\fP - file selection button.
View file
yad-0.10.1.tar.bz2/src/list.c -> yad-0.10.2.tar.bz2/src/list.c
Changed
@@ -412,6 +412,16 @@ i++; } } + + if (settings.always_selected) + { + GtkTreeIter it; + GtkTreeSelection *sel = gtk_tree_view_get_selection (GTK_TREE_VIEW (list_view)); + GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (list_view)); + + gtk_tree_model_get_iter_first (model, &it); + gtk_tree_selection_select_iter (sel, &it); + } } else { @@ -565,16 +575,6 @@ fill_data (n_columns); - if (settings.always_selected) - { - GtkTreeIter it; - GtkTreeSelection *sel = gtk_tree_view_get_selection (GTK_TREE_VIEW (list_view)); - GtkTreeModel *model = gtk_tree_view_get_model (GTK_TREE_VIEW (list_view)); - - gtk_tree_model_get_iter_first (model, &it); - gtk_tree_selection_select_iter (sel, &it); - } - /* add tooltip column, if present */ for (i = 0; i < n_columns; i++) {
View file
yad-0.10.1.tar.bz2/src/text.c -> yad-0.10.2.tar.bz2/src/text.c
Changed
@@ -163,19 +163,18 @@ handle_stdin (GIOChannel * channel, GIOCondition condition, gpointer data) { - gchar buf1024; - gsize len; - if ((condition & G_IO_IN) || (condition & (G_IO_IN | G_IO_HUP))) { + GString *string; GError *err = NULL; gint status; + string = g_string_new (NULL); while (channel->is_readable != TRUE) ; do { - status = g_io_channel_read_chars (channel, buf, 1024, &len, &err); + status = g_io_channel_read_line_string (channel, string, NULL, &err); while (gtk_events_pending ()) gtk_main_iteration (); } @@ -192,25 +191,24 @@ return FALSE; } - if (len > 0) + if (string->len > 0) { - GtkTextIter end; + GtkTextIter end; gchar *utftext; - gsize localelen; gsize utflen; gtk_text_buffer_get_end_iter (text_buffer, &end); - if (!g_utf8_validate (buf, len, NULL)) + if (!g_utf8_validate (string->str, string->len, NULL)) { utftext = - g_convert_with_fallback (buf, len, "UTF-8", "ISO-8859-1", - NULL, &localelen, &utflen, NULL); + g_convert_with_fallback (string->str, string->len, "UTF-8", "ISO-8859-1", + NULL, NULL, &utflen, NULL); gtk_text_buffer_insert (text_buffer, &end, utftext, utflen); g_free (utftext); } else - gtk_text_buffer_insert (text_buffer, &end, buf, len); + gtk_text_buffer_insert (text_buffer, &end, string->str, string->len); if (options.text_data.tail) { @@ -220,6 +218,8 @@ gtk_text_view_scroll_to_iter (GTK_TEXT_VIEW (text_view), &end, 0, FALSE, 0, 0); } } + + g_string_free (string, TRUE); } return TRUE;
View file
yad-0.10.1.tar.bz2/src/util.c -> yad-0.10.2.tar.bz2/src/util.c
Changed
@@ -257,57 +257,56 @@ } buf++; } - resi = '\0'; return res; } -gchar * -unescape_markup (gchar *str) +char * +unescape_markup (char *str) { - gchar *res, *buf = str; - guint i = 0; + char *res, *buf = str; + int i = 0; if (!str) return NULL; - res = g_new0 (gchar, strlen (str)); + res = calloc (strlen (str) + 1, sizeof (char)); 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; - } - } + { + 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++; + resi = *buf++; i++; } - + return res; }
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
.