Commit Graph

63 Commits

Author SHA1 Message Date
Kernc
5b0553e9ef Allow user to interact with --text-info --html WebView
This commit changes the default --text-view behavior (when --html
is also in effect) so that the clicked links are opened in the
default browser (closes #732626).

Additionally, a new option is introduced, --prevent-interaction,
which disables above behavior.
2014-10-22 15:44:38 +02:00
Arx Cruz
15e2759668 Bug #685051 Adding --mid-search option to --list
This will enable users to find a row with a text matching the
middle of the row.

Consider the following list:

    Little piggy one
    Little piggy two
    Little piggy three

As a user I would expect that entering 'th' would focus the last row, because
it's the first one that contains 'th'
2014-10-21 18:30:35 +02:00
Scott Pakin
673550b6d3 Added time-remaining support to progress bars
Introduced a --time-remaining command-line option that uses the time
and percent complete to extrapolate the time remaining until progress
reaches 100%.
2014-10-21 15:22:11 +02:00
Arx Cruz
ec0c2f3292 Add the --ellipsize option to info, error, warning and question dialogs
This option will help people who need to add huge texts in their dialogs
and the window size get's very huge due amount of size that GtkLabel
requests
2014-05-20 16:05:32 -03:00
Arx Cruz
4681d74c02 Bug #600533 zenity --text-info should have an auto scroll option
This is a request to add a auto-scroll option.
For now it's only works when text-info is getting the
text from stdin.
Example usage:
cat file.txt | zenity --text-info --auto-scroll
2013-11-23 20:32:51 -02:00
Berislav Kovacki
b0fc720fe4 Bug #534935 Need hability to specify default answer in --question dialog 2013-11-23 16:44:26 -02:00
Arx Cruz
8888114fed Added combobox support on forms dialog 2013-09-25 09:34:25 -03:00
Weitian Leung
009523d5da added attach option for transient window 2013-08-31 00:26:51 -03:00
Nuno Araujo
74d867c2aa Allow to specify notification's hints
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/NotificationSource

https://bugzilla.gnome.org/show_bug.cgi?id=693751
2013-02-25 20:12:53 -03:00
Florian Müllner
bbcb2a3783 msg: Add an option to set a custom dialog icon
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
2012-09-25 18:46:33 -04:00
Florian Müllner
0628bd3291 util: Add an option to request dialogs being modal
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
2012-09-25 18:46:12 -04:00
Arx Cruz
c17eff5863 Added support to --imagelist on tree. Thanks to Joshua Nathaniel Pritikin <jpritikin@pobox.com> now the first column can have an image. 2012-07-19 14:23:48 -03:00
Arx Cruz
82d09a41f2 Added support to lists on zenity --forms 2011-12-21 10:22:34 -02:00
Arx Cruz
de35254822 Revert "Initial support for list/tree on --forms option Added zenity --add-list and --list-values on --forms option. This is an initial support. Next steps add support to multiple selections and multiple columns"
This reverts commit ed825cf92b.
2011-10-13 15:21:32 -03:00
Arx Cruz
ed825cf92b Initial support for list/tree on --forms option Added zenity --add-list and --list-values on --forms option. This is an initial support. Next steps add support to multiple selections and multiple columns 2011-10-13 13:44:03 -03:00
Arx Cruz
6768a40e99 Fix for bug #611297 Now Zenity have --ok-label and --cancel-label in all dialogs. This patch doesn't break old zenity scripts. 2011-07-26 14:02:45 -03:00
Arx Cruz
1d339e29a7 Enable html support in --text-info option. This fix bug #598655, thanks for the work from Francis Meyvis francis.meyvis at gmail dot com. Two new options in --text-info: * --html - enable HTML support. * --url - load an url
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
2011-07-19 14:39:05 -03:00
Arx Cruz
d8954d9222 Patch for bug #621907
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.
2011-07-06 14:58:49 -03:00
Arx Cruz
5872558fee This change add a new functionality to text-info:
* 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.
2011-06-28 17:18:32 -03:00
Arx Cruz
9c32783a14 Adding missed files and code for --forms option. 2011-01-17 12:20:21 -02:00
muzuiget
e5467650a6 Add font and no wrap mode support in text dialog 2011-01-04 11:29:49 -02:00
Arx Cruz
079254bb48 Add libnotify as optional in zenity instalation 2010-11-09 12:28:58 -02:00
Arx Cruz
10d0380220 Add new password dialog 2010-07-12 11:08:26 -03:00
Berislav Kovacki
4ccc7f6fac Bug 540169 - Zenity should offer color selection dialog 2010-02-23 18:25:21 +00:00
Huzaifa Sidhpurwala
3c17a5a887 Bug 593926 - --progress needs a --nocancel option 2010-02-23 18:07:08 +00:00
Bryce Harrington
8e190dbb1f Bug 552971 - Add a hide-header option to list dialog 2009-08-10 04:10:53 +01:00
Olivier Blin
62a1292d1e Bug 579999 – zenity sets a huge but finite timeout
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-08-08 10:47:55 +01:00
Lucas Rocha
8cda6025f0 Add support for file filter in file selection dialog through the new
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-04-21 20:47:38 +00:00
Lucas Rocha
2141cb9184 Allow question dialogs to use custom button label text (Fixes bug
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
2008-03-29 22:13:50 +00:00
Lucas Rocha
8b16d4d412 added timeout option to all dialogs (Fixes bug #160654). Based on patch
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 20:36:29 +00:00
Lucas Rocha
09c4a49800 add "auto-kill" option to progress dialog. Now the user can choose whether
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-12-02 10:54:45 +00:00
Lucas Rocha
216ee62fe1 fix small build warnings on 64-bit architectures (Fixes bug #344125). fix
2006-07-26  Lucas Rocha  <lucasr@gnome.org>

	* src/tree.c (zenity_tree_fill_entries_from_stdin, zenity_tree): fix
	small build warnings on 64-bit architectures (Fixes bug #344125).
	* src/zenity.h: fix small build warning.
2006-07-26 23:17:04 +00:00
Lucas Rocha
07618f9daa add optional dropdown menu to entry dialog (Fixed bug #311038). Patch from
2006-05-10  Lucas Rocha  <lucasr@gnome.org>

	* src/entry.c (zenity_entry_fill_entries, zenity_entry),
	src/main.c, src/option.c, src/zenity.glade, src/zenity.h:
	add optional dropdown menu to entry dialog (Fixed bug #311038).
	Patch from Diego Escalante Urrelo <dieguito@gmail.com>.
2006-05-11 01:31:35 +00:00
Lucas Rocha
6645316bc9 add --confirm-overwrite to file selection dialog to pop a confirmation
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-23 20:08:17 +00:00
Lucas Rocha
4ac6730868 add --hide-value to scale dialog.
2005-12-15  Lucas Rocha  <lucasr@gnome.org>

        * src/option.c, src/scale.c, src/zenity.h: add
        --hide-value to scale dialog.
2005-12-15 05:40:15 +00:00
Lucas Rocha
285cb79baf new scale dialog for selecting a value from a range (Fixes #322399).
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-12-13 04:18:58 +00:00
Lucas Almeida Rocha
8ba040f33b New --hide-column option. 2005-07-01 21:28:36 +00:00
Lucas Almeida Rocha
9c792cb86a Changed list dialog Selection behavior 2005-06-27 03:13:37 +00:00
Glynn Foster
403c8104ae Clean up the code a little bit.
2005-04-20  Glynn Foster  <glynn.foster@sun.com>

	* src/entry.c, src/option.c, src/zenity.h: Clean
	up the code a little bit.
2005-04-20 03:00:57 +00:00
Glynn Foster
6e6eeaf79c Bug fix for #149290, based on contributions from Timo Aaltonen, Lucas
2005-04-20  Glynn Foster  <glynn.foster@sun.com>

	* src/msg.c, src/option.c, src/zenity.h: Bug fix for
	#149290, based on contributions from Timo Aaltonen,
	Lucas Rocha, and Carlos Parra.
	* THANKS: Update.
2005-04-20 01:59:42 +00:00
Glynn Foster
530a4c0408 Patch from Lucas Rocha <lucasr@im.ufba.br> to use the GOption API for the
2004-12-07  Glynn Foster  <glynn.foster@sun.com>

	Patch from Lucas Rocha <lucasr@im.ufba.br> to use the GOption
	API for the zenity parsing options, with some spacing fixes
	from Glynn.

	* configure.in: zenity now requires glib-2.0 >= 2.5.3 to build
	because now it uses GOption. popt requirement removed.
	* src/Makefile.am: update for new files
	* src/main.c: use GOption API
	* src/option.c, src/option.h: New files to implement the new
	functionality.
	* src/zenity.h: Fix spacing.

2004-12-07  Glynn Foster  <glynn.foster@sun.com>

	* POTFILES.in: Add new files.
2004-12-07 00:17:16 +00:00
James Henstridge
963241dd15 add code to listen for commands on stdin when in listen mode.
2004-09-16  James Henstridge  <james@jamesh.id.au>

    * src/notification.c: add code to listen for commands on stdin
    when in listen mode.

    * src/main.c: parse the --listen argument for --notification mode.

    * src/zenity.h (ZenityNotificationData): add a field for the
    "listen" argument.
2004-09-16 09:28:09 +00:00
Glynn Foster
3e05834b4c Add new notification icon. Update for new files. Restructure code a little
2004-09-13  Glynn Foster  <glynn.foster@sun.com>

	* data/Makefile.am, data/zenity-notification.png: Add new
	notification icon.
	* src/Makefile.am: Update for new files.
	* src/about.c, src/calendar.c, src/entry.c, src/fileselection.c,
	src/progress.c, src/text.c, src/tree.c, src/msg.c: Restructure code a
	little bit for new utility functions for setting window icons.
	* src/eggtrayicon.c, src/eggtrayicon.h: New files for notification area
	support.
	* src/main.c, src/notification.c, src/util.c, src/util.h, src/zenity.h:
	Add support for notification area.
	* data/zenity.1, help/*: Update docs for notification and new file
	selection changes.
2004-09-13 07:51:51 +00:00
Glynn Foster
03f3e5b060 Update Update. Patch from Lucas Rocha to implement save and directory
2004-09-13  Glynn Foster  <glynn.foster@sun.com>

	* THANKS: Update
	* src/about.c: Update.
	* src/fileselection.c, src/main.c, src/zenity.h:
	Patch from Lucas Rocha to implement save and
	directory selection in the file selection dialog.
	Fixes #138342.
2004-09-13 04:56:26 +00:00
Glynn Foster
ffaed08856 Add new option for --print-column, based on a patch by Paul Bolle. Fixes
2004-07-19  Glynn Foster  <glynn.foster@sun.com>

	* src/main.c, src/tree.c, src/zenity.h,
	help/C/zenity.xml: Add new option for --print-column, based
	on a patch by Paul Bolle.  Fixes #144496.
2004-07-19 01:01:28 +00:00
Mike Newman
0e4c879656 Allow multiple file selections. 2003-06-09 18:57:01 +00:00
Mike Newman
5bade6fe6a Support user-defined return values via env vars, like dialog did. 2003-06-07 14:41:56 +00:00
Mike Newman
626d95b752 Add --auto-close option to progress dialog. Closes dialog when 100% has been reached. Also update docs for new option. Fixes #114125. 2003-06-03 21:52:16 +00:00
Glynn Foster
965c2a9149 Finish off the indentation cleanup. Add new '--width' and '--height'
2003-04-13  Glynn Foster  <glynn.foster@sun.com>

	* src/calendar.c, src/entry.c, src/fileselection.c,
	src/main.c, src/msg.c, src/progress.c, src/text.c,
	src/tree.c, src/zenity.h: Finish off the indentation cleanup.
	Add new '--width' and '--height' options to the general options.
	Fix up the radio list view, so that we can now act like a radio
	button group.

	* TODO: Update
2003-04-13 15:42:41 +00:00
Glynn Foster
49f8979534 Mass indentation cleanup. Make sure the glade dialogs aren't initially
2003-03-10  Glynn Foster  <glynn.foster@sun.com>

	* src/about.c, src/calendar.c, src/entry.c, src/fileselection.c,
	src/main.c, src/msg.c, src/progress.c, src/text.c, src/tree.c,
	src/util.c, src/util.h, src/zenity.glade, src/zenity.h:

	Mass indentation cleanup. Make sure the glade dialogs aren't initially
	visible because this avoids a visibility jump. Apparently == TRUE is
	bad mojo. Fix up.
2003-03-10 17:11:18 +00:00