summaryrefslogtreecommitdiff
path: root/src/option.c
Commit message (Collapse)AuthorAgeFilesLines
* option: Add non-fatal deprecation warning for --hintLogan Rathbone2023-04-281-0/+19
|
* option: Add non-fatal deprecation warning for --icon-nameLogan Rathbone2023-04-281-66/+36
| | | | | Also, unify the icon deprecation stuff so that --window-icon and --icon-name both work in the same way and produce similar warnings.
* option: Add non-fatal deprecation warning for --attachLogan Rathbone2023-04-281-14/+34
|
* option: Correct --window-icon deprecation message.Logan Rathbone2023-04-281-1/+1
| | | | | We're not "ignoring" it as was previously indicated; we're treating it as if --icon were used.
* option: Add non-fatal deprecation warning for --confirm-overwriteLogan Rathbone2023-04-261-0/+20
| | | | | | | | | This makes this option consistent with --mid-search and --window-icon in that the option will do nothing and print a warning that the option is deprecated and will be removed in a future version, but will not cause the script to fatally terminate. Fixes #55
* Mark deprecation strings for translation.Logan Rathbone2023-02-011-2/+2
|
* tree: Initial port to GtkColumnViewLogan Rathbone2023-02-011-8/+7
| | | | | | There are likely bugs. Search functionality still needs to be implemented.
* Icon handling improvements.Logan Rathbone2022-01-121-25/+99
| | | | | | Update manpage to reflect proper usage of --icon. Add handling of zenity3 --window-icon option, with deprecation warning.
* help/docs: update; notification: bugfixes.Logan Rathbone2022-01-111-2/+2
|
* notification: Initial port to GNotificationLogan Rathbone2022-01-101-23/+0
| | | | | | | | Port from libnotify, which is deprecated. Some features are yet missing, but this is a start. This drops libnotify as a dependency; meson files updated accordingly.
* Use g_auto* where possible.Logan Rathbone2021-12-291-62/+0
|
* Make icon notification-only.Logan Rathbone2021-02-151-12/+12
| | | | | | s/--window-icon/--icon, now only for the notification component. Update manpage accordingly.
* Start migrating to meson.Logan Rathbone2021-02-131-0/+2
|
* forms,msg,notification,option: make build against gtk4Logan Rathbone2021-02-111-913/+1027
|
* entry, fileselection: make build against gtk4Logan Rathbone2021-02-101-12/+1
|
* convert .ui to gtk4; make calendar, color, about build against gtk4.Logan Rathbone2021-02-101-10/+0
|
* Fix styleArx Cruz2017-04-071-2242/+1938
| | | | | Fixing style in all zenity code, removing useless spaces, empty lines, all code in 80 columns, etc.
* fix compilation when webkitgtk is not installedTom Schoonjans2015-10-171-0/+2
|
* Fixing html option being parsed to other dialogs rather then text-infoArx Cruz2015-10-021-0/+3
|
* Do not make zenity_util_show_dialog() X11 specificJavier Jardón2015-04-231-1/+1
|
* Improve some stringsPiotr Drąg2015-04-221-18/+17
|
* option.c: Fixing typo in extra-button optionArx Cruz2015-04-211-1/+1
|
* ADD gchar **extra_label TO struct ZenityDataGama Anderson2015-04-211-5/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-221-0/+12
| | | | | | | | | 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-211-0/+15
| | | | | | | | | | | | | | 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-211-0/+17
| | | | | | Introduced a --time-remaining command-line option that uses the time and percent complete to extrapolate the time remaining until progress reaches 100%.
* Improve grammar in new translatable stringsPiotr Drąg2014-05-201-4/+4
|
* Add the --ellipsize option to info, error, warning and question dialogsArx Cruz2014-05-201-2/+43
| | | | | | 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-231-0/+13
| | | | | | | | 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-231-0/+12
|
* Added combobox support on forms dialogArx Cruz2013-09-251-0/+34
|
* added attach option for transient windowWeitian Leung2013-08-311-0/+12
|
* Allow to specify notification's hintsNuno Araujo2013-02-251-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Revert "Don't break the string freeze"Matthias Clasen2012-09-251-3/+3
| | | | | | | This reverts commit 156a99e304247504a486f0911596ab5765ad1add. I got the second string freeze approval after all, so lets add the new strings back.
* Don't break the string freezeMatthias Clasen2012-09-251-3/+3
| | | | | I'm out of time waiting for a second string freeze break approval, so the strings will be untranslated for now.
* msg: Add an option to set a custom dialog iconFlorian Müllner2012-09-251-0/+41
| | | | | | | | 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-251-0/+12
| | | | | | | | | 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
* Revert "Fixing string freeze"Piotr Drąg2012-07-211-2/+2
| | | | | | This reverts commit 8777940f499a4a37fdb7c118de50f39cfa62f34b. The master branch is not yet affected by the string freeze.
* Fixing string freezeArx Cruz2012-07-191-2/+2
|
* Added support to --imagelist on tree. Thanks to Joshua Nathaniel Pritikin ↵Arx Cruz2012-07-191-0/+16
| | | | <jpritikin@pobox.com> now the first column can have an image.
* Do not crash in --forms --add-list without column valuesAlexandre Rostovtsev2012-05-231-1/+3
| | | | | | | Be a bit more user friendly, and instead of crashing, add a default column name if the user forgot to use --column-values with a --forms list. https://bugzilla.gnome.org/show_bug.cgi?id=676406
* Added support to lists on zenity --formsArx Cruz2011-12-211-5/+99
|
* Revert "Initial support for list/tree on --forms option Added zenity ↵Arx Cruz2011-10-131-39/+4
| | | | | | --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-131-4/+39
| | | | --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-261-47/+29
| | | | 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-191-1/+33
| | | | | | | | | | | 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-061-2/+40
| | | | | | 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-281-17/+55
| | | | | | | | | * 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.
* Revert mistakely pushed string changeLuca Ferretti2011-03-171-3/+3
|
* Use proper case in forms dialog option valuesLuca Ferretti2011-03-171-3/+3
|