Desktop Notifications Specification [1] specifies that hints can be
used to provide extra data to a notification server.
A new command line option --hint allows to add a hint to the
notification to display.
This option can be used multiple times, one for each hint to add.
--hint option format is name:value.
The new 'hints' command allow to specify hints in 'listen' mode.
Same format that in the command line option is used.
Several hints can be passed by separating them by '\n'.
Hints of value type '(iiibiiay)' are not supported.
This value type is used to pass a raw data image as a hint value.
This new change is useful for implementing the NotificationSource [2]
GNOME Goal.
A application using zenity and having a desktop file, can now specify
that it is a notification emitter and it's notifications can be
filtered in the new Notifications GNOME control panel pane.
[1] http://people.gnome.org/~mccann/docs/notification-spec/notification-spec-latest.html#hints
[2] https://live.gnome.org/GnomeGoals/NotificationSourcehttps://bugzilla.gnome.org/show_bug.cgi?id=693751
The predefined dialog icons work well in many cases, but sometimes
it makes sense to use a more specific icon, so add an option to
specify an icon-name to use instead.
https://bugzilla.gnome.org/show_bug.cgi?id=684329
As WMs cannot open windows themselves, Mutter uses zenity to open
"Force Quit" dialogs for unresponsive windows; as those are strongly
tied to the corresponding window, it makes sense to make them modal
(in particular when attaching them to their parent).
https://bugzilla.gnome.org/show_bug.cgi?id=684322
This fixes lp#998445 by changing the code to construct a new ComboBoxText
instead of a ComboBox, which it was (probably accidentally) changed to do
in commit 4421de67.
Closes: lp#998445
If you need to load a local html file, you can use --filename=patch/to/html.
Examples:
* zenity --text-info --html --filename=file.html
* zenity --text-info --html --url=www.gnome.org
Zenity will add http:// if isn't declared in --url
This patch add the option --no-markup in the info, warning, error and question dialogs
So if the user wants to use & \ ' and other symbols, now he can, and no error will be
showed.
* Added a cancel button returning 1 if clicked
* Renamed the Close button to Ok, still returning 0 if clicked
* Added --ok-label=TEXT option to change the Ok button label
* Added --cancel-label=TEXT option to change the Cancel button label
* Added --checkbox=TEXT option to show an "I Agree and accept the terms" checkbox
If --checkbox is enabled, the Ok button will be disabled if the checkbox isn't checked.
You can now define title and summary on notifications. The first line
of the provided text will be considered the title and the following
lines are the summary.
Declare timeout delay as signed, so that assigning -1 does not act as
setting a huge (but finite) timeout (this has been noticed by resetting
the clock)
2009-01-09 Lucas Rocha <lucasr@gnome.org>
* src/main.c:
* src/option.h:
GNOME Goal: Clean up GLib and GTK+ includes (Fixes bug #563855).
Patch from Pedro Fragoso <ember@ubuntu.com>.
svn path=/trunk/; revision=1462
2008-05-31 Lucas Rocha <lucasr@gnome.org>
* src/zenity.glade: set all dialogs in glade file as resizable in
order to have them respecting the --width and --height command-line
options (Fixes bug #529452).
svn path=/trunk/; revision=1380
2008-04-21 Lucas Rocha <lucasr@gnome.org>
Add support for file filter in file selection dialog through the new
--file-filter command line option (Fixes bug #409843).
* src/option.c, src/zenity.h: added supporting variable and new
GOptionEntry entry for the new command line option.
* src/fileselection.c (zenity_fileselection): add file filters based
on command line input.
svn path=/trunk/; revision=1362
2008-03-30 Lucas Rocha <lucasr@gnome.org>
Allow question dialogs to use custom button label text (Fixes
bug #335763). Patch from Cosimo Cecchi <anarki@lilik.it> and
Thomas Thurman <tthurman@gnome.org>.
* src/msg.c (zenity_msg_construct_question_dialog), (zenity_msg):
dynamically add dialog buttons with provided labels.
* src/option.c (zenity_option_free): free input labels.
(zenity_question_post_callback): set button labels provided by the
respective command line options.
* src/zenity.glade: remove pre-defined dialog button from question
dialog.
* src/zenity.h: added ok_label and cancel_label to ZenityMsgData.
svn path=/trunk/; revision=1346
2007-03-17 Lucas Rocha <lucasr@gnome.org>
* src/scale.c (zenity_scale): set value range before setting value
in order to correctly set initial state (Fixes bug #521574).
svn path=/trunk/; revision=1337
2007-03-17 Lucas Rocha <lucasr@gnome.org>
* src/option.c: added comment on a string in order clarify its
meaning for translators (Fixes bug #520847).
svn path=/trunk/; revision=1335
2007-08-13 Lucas Rocha <lucasr@gnome.org>
* src/*.c: added timeout option to all dialogs (Fixes bug #160654).
Based on patch from Muthiah Annamalai <gnumuthu@users.sf.net>.
svn path=/trunk/; revision=1231
2007-08-13 Lucas Rocha <lucasr@gnome.org>
* src/tree.c: fix critical warning when using checkbox and radiobox in
list dialog (Fixes bug #453713).
svn path=/trunk/; revision=1230
2007-05-27 Lucas Rocha <lucasr@gnome.org>
* src/tree.c: fix broken handling of input from pipes in list
dialog (Fixes bug #343684).
svn path=/trunk/; revision=1221
2007-05-27 Lucas Rocha <lucasr@gnome.org>
* src/text.c: correctly handle UTF-8 input text in the text info
dialog (Fixes bug #407275).
svn path=/trunk/; revision=1220
2007-05-15 Lucas Rocha <lucasr@gnome.org>
* src/text.c (zenity_text_dialog_response): fix seg fault when
outputing files with special printf format strings (Fixes
bug #405006). Patch from Mariano Suárez-Alvarez.
svn path=/trunk/; revision=1212
2007-05-15 Lucas Rocha <lucasr@gnome.org>
* src/calendar.c (zenity_calendar, zenity_calendar_double_click):
double-click on day results in dialog response (Fixes bug #395152).
Patch from Tom Tromey <tromey@redhat.com>.
svn path=/trunk/; revision=1209
2006-12-04 Lucas Rocha <lucasr@gnome.org>
* src/zenity.glade: make dialog text selectable on message dialogs
(error, warning, info, and question) (Fixes bug #352910). Patch
from Greg Hudson <ghudson@mit.edu>.
2006-12-02 Lucas Rocha <lucasr@gnome.org>
* src/zenity.h, src/progress.c, src/option.c: add "auto-kill" option
to progress dialog. Now the user can choose whether to kill parent
process or not (Fixes bug #310824). Patch from Diego Escalante Urrelo
<diego@aureal.com.pe>.
2006-05-10 Lucas Rocha <lucasr@gnome.org>
* .cvsignore, Makefile.am, autogen.sh, configure.in,
data/Makefile.am, po/.cvsignore, src/Makefile.am: move to
automake 1.9 and several cleanups (Fixes bug #341056).
Patch from Christian Persch <chpe@gnome.org>.
2006-03-23 Lucas Rocha <lucasr@gnome.org>
* src/fileselection.c, zenity.h, option.c: add
--confirm-overwrite to file selection dialog to pop a
confirmation dialog when selecting an existing filename.
2006-03-07 Lucas Rocha <lucasr@gnome.org>
* src/option.c: add G_OPTION_FLAG_NOALIAS to separator
option for list dialog. Patch from Glynn
Foster <glynn.foster@sun.com>.
2005-12-18 Lucas Rocha <lucasr@gnome.org>
* src/about.c: use GtkAboutDialog instead of custom
dialog (Fixes bug #309405).
* src/zenity.glade: remove zenity_about_dialog.
* configure.in: zenity now depends on GTK+ >= 2.6.x
because now it uses GtkAboutDialog.
2005-12-16 Lucas Rocha <lucasr@gnome.org>
* src/zenity.glade: make all dialogs HIG compliant
by fixing spaces and removing separator (Fixes bug
#324211). Patch by Christian Persch <chpe@gnome.org>.
2005-12-13 Lucas Rocha <lucasr@gnome.org>
* data/Makefile.am, data/zenity-scale.png,
src/Makefile.am, src/main.c, src/option.c,
src/option.h, src/scale.c, src/zenity.glade,
src/zenity.h: new scale dialog for selecting a
value from a range (Fixes#322399).
2005-11-15 Lucas Rocha <lucasr@cvs.gnome.org>
* src/calendar.c, src/progress.c, src/tree.c: make
it possible to add new lines and markup in the dialog
text.
2005-10-18 Lucas Rocha <lucasr@cvs.gnome.org>
* src/zenity.glade: by default, focus is on tree
view in list dialogs. Fixes#317263. Patch from
Aleksey Kliger <akliger@gmail.com>
2005-07-12 Lucas Rocha <lucasr@cvs.gnome.org>
* configure.in: dependency on glib >= 2.7.3
* src/option.c: Add G_OPTION_FLAG_NOALIAS flag
on options that are present in more than on
group.
2005-07-08 Lucas Rocha <lucasr@cvs.gnome.org>
* src/about.c, src/option.c, src/fileselection.c:
marks static many functions and global variables.
Contribution from Benoît Dejean.