summaryrefslogtreecommitdiff
path: root/src/zenity.h
Commit message (Collapse)AuthorAge
* Prevent ZENITY_TIMEOUT from clashing with custom response IDsLogan Rathbone2023-02-04
| | | | | | | | | | Redefine ZENITY_TIMEOUT response ID as INT_MAX Also, add and use ZENITY_TIMEOUT_DEFAULT exit status (hardcoded to 5 to keep consistent with what it has happened to be for the entire 3.x release cycle; POLA and all). See #48
* Port build system from autotools to meson.Logan Rathbone2021-06-08
|
* Fix styleArx Cruz2017-04-07
| | | | | Fixing style in all zenity code, removing useless spaces, empty lines, all code in 80 columns, etc.
* Do not make zenity_util_show_dialog() X11 specificJavier Jardón2015-04-23
|
* ADD gchar **extra_label TO struct ZenityDataGama Anderson2015-04-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this is done to keep the name of the extra buttons ADD general option "extra-button" with string array as argument This will upon consecutive calls save the name of buttons in an array of strings To all MODES, except notification.c and about.c ADD if (data->extra_label) { gint i=0; while(data->extra_label[i]!=NULL){ gtk_dialog_add_button (GTK_DIALOG (dialog), data->extra_label[i], i); i++; } } This add the extra buttons to the dialog. The response is the number of the button To all MODES response, except notification.c and about.c ADD default: if (response < g_strv_length(zen_data->extra_label)) printf("%s\n",zen_data->extra_label[response]); This will print the button name to stdout when they are pressed ADD question option "switch" This will suppress the standard "ok" and "cancel" button in question. This just wort in combination with --extra-button, otherwise error is raised. https://bugzilla.gnome.org/show_bug.cgi?id=118016
* Allow user to interact with --text-info --html WebViewKernc2014-10-22
| | | | | | | | | 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.
* Bug #685051 Adding --mid-search option to --listArx Cruz2014-10-21
| | | | | | | | | | | | | | 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'
* Added time-remaining support to progress barsScott Pakin2014-10-21
| | | | | | Introduced a --time-remaining command-line option that uses the time and percent complete to extrapolate the time remaining until progress reaches 100%.
* Add the --ellipsize option to info, error, warning and question dialogsArx Cruz2014-05-20
| | | | | | 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
* Bug #600533 zenity --text-info should have an auto scroll optionArx Cruz2013-11-23
| | | | | | | | 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
* Bug #534935 Need hability to specify default answer in --question dialogBerislav Kovacki2013-11-23
|
* Added combobox support on forms dialogArx Cruz2013-09-25
|
* added attach option for transient windowWeitian Leung2013-08-31
|
* Allow to specify notification's hintsNuno Araujo2013-02-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* msg: Add an option to set a custom dialog iconFlorian Müllner2012-09-25
| | | | | | | | 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
* util: Add an option to request dialogs being modalFlorian Müllner2012-09-25
| | | | | | | | | 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
* Added support to --imagelist on tree. Thanks to Joshua Nathaniel Pritikin ↵Arx Cruz2012-07-19
| | | | <jpritikin@pobox.com> now the first column can have an image.
* Added support to lists on zenity --formsArx Cruz2011-12-21
|
* Revert "Initial support for list/tree on --forms option Added zenity ↵Arx Cruz2011-10-13
| | | | | | --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 ed825cf92b9d786b9b13361db4a0e696af347a59.
* Initial support for list/tree on --forms option Added zenity --add-list and ↵Arx Cruz2011-10-13
| | | | --list-values on --forms option. This is an initial support. Next steps add support to multiple selections and multiple columns
* Fix for bug #611297 Now Zenity have --ok-label and --cancel-label in all ↵Arx Cruz2011-07-26
| | | | dialogs. This patch doesn't break old zenity scripts.
* Enable html support in --text-info option. This fix bug #598655, thanks for ↵Arx Cruz2011-07-19
| | | | | | | | | | | 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
* Patch for bug #621907Arx Cruz2011-07-06
| | | | | | 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.
* This change add a new functionality to text-info:Arx Cruz2011-06-28
| | | | | | | | | * 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.
* Adding missed files and code for --forms option.Arx Cruz2011-01-17
|
* Add font and no wrap mode support in text dialogmuzuiget2011-01-04
|
* Add libnotify as optional in zenity instalationArx Cruz2010-11-09
|
* Add new password dialogArx Cruz2010-07-12
|
* Bug 540169 - Zenity should offer color selection dialogBerislav Kovacki2010-02-23
|
* Bug 593926 - --progress needs a --nocancel optionHuzaifa Sidhpurwala2010-02-23
|
* Bug 552971 - Add a hide-header option to list dialogBryce Harrington2009-08-10
|
* Bug 579999 – zenity sets a huge but finite timeoutOlivier Blin2009-08-08
| | | | | | 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)
* Add support for file filter in file selection dialog through the newLucas Rocha2008-04-21
| | | | | | | | | | | | | | | 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
* Allow question dialogs to use custom button label text (Fixes bugLucas Rocha2008-03-29
| | | | | | | | | | | | | | | | | | | 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
* added timeout option to all dialogs (Fixes bug #160654). Based on patchLucas Rocha2007-08-13
| | | | | | | | | 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
* add "auto-kill" option to progress dialog. Now the user can choose whetherLucas Rocha2006-12-02
| | | | | | | | | 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>.
* fix small build warnings on 64-bit architectures (Fixes bug #344125). fixLucas Rocha2006-07-26
| | | | | | | | 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.
* add optional dropdown menu to entry dialog (Fixed bug #311038). Patch fromLucas Rocha2006-05-11
| | | | | | | | | 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>.
* add --confirm-overwrite to file selection dialog to pop a confirmationLucas Rocha2006-03-23
| | | | | | | | 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.
* add --hide-value to scale dialog.Lucas Rocha2005-12-15
| | | | | | | 2005-12-15 Lucas Rocha <lucasr@gnome.org> * src/option.c, src/scale.c, src/zenity.h: add --hide-value to scale dialog.
* new scale dialog for selecting a value from a range (Fixes #322399).Lucas Rocha2005-12-13
| | | | | | | | | | 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).
* New --hide-column option.Lucas Almeida Rocha2005-07-01
|
* Changed list dialog Selection behaviorLucas Almeida Rocha2005-06-27
|
* Clean up the code a little bit.Glynn Foster2005-04-20
| | | | | | | 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.
* Bug fix for #149290, based on contributions from Timo Aaltonen, LucasGlynn Foster2005-04-20
| | | | | | | | | 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.
* Patch from Lucas Rocha <lucasr@im.ufba.br> to use the GOption API for theGlynn Foster2004-12-07
| | | | | | | | | | | | | | | | | | | | 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.
* add code to listen for commands on stdin when in listen mode.James Henstridge2004-09-16
| | | | | | | | | | | | 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.
* Add new notification icon. Update for new files. Restructure code a littleGlynn Foster2004-09-13
| | | | | | | | | | | | | | | | | 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.
* Update Update. Patch from Lucas Rocha to implement save and directoryGlynn Foster2004-09-13
| | | | | | | | | | | 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.
* Add new option for --print-column, based on a patch by Paul Bolle. FixesGlynn Foster2004-07-19
| | | | | | | | 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.
bgstack15