Commit Graph

372 Commits

Author SHA1 Message Date
Arx Cruz
b5460887fb Bug #700249 - Progress dialog does not wrap 2014-10-22 15:35:22 +02:00
Arx Cruz
210b073bcd Better sollution for wrap text
This fix is a better sollution for info, error, warning and
question dialog.
Now the dialog wraps the text properly, and don't allocate
a lot of height
2014-10-22 15:16:22 +02:00
Arx Cruz
9fdac81d78 Bug #734049 - zenity --text-info chokes on some UTF-8 string
text-info is now seting the text to UTF-8 properly
2014-10-22 11:22:15 +02:00
Kernc
fad5a25dcd Allow --text-info to load resources also from relative file:// URIs 2014-10-22 10:01:23 +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
Arx Cruz
b44b2fb33d Fixing g_timeout_add calls 2014-10-21 16:32:14 +02:00
Arx Cruz
6ac663ea05 Fixing remain g_timeout_add
Finish switch g_timeout_add for g_timeout_add_seconds
2014-10-21 16:06:23 +02:00
Kernc
8098bb3dd7 Allow --text-info to load resources from absolute file:// URIs 2014-10-21 15:36:39 +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
Emilio Pozuelo Monfort
fc76e0c19b Don't quit zenity when the input stream is closed
When using --listen for a notification, zenity quits when the stream
ends. This makes it impossible to read commands from a pipe as in
`echo icon:info | zenity --notification --listen'.

https://bugzilla.gnome.org/show_bug.cgi?id=525596
2014-10-21 11:24:45 +02:00
Arx Cruz
9d03f0d006 Bug 733870 - Segmentation fault on zenity --notification
This fix a problem when user calls --hint=urgency without
specify a :NOTIFY_URGENCY
2014-08-29 14:31:57 +02:00
Arx Cruz
e5eb127e97 Bug #670496 and #673643
This fix the size of GtkLabel width when you have a big
text in the dialog.
2014-05-29 17:51:46 -03:00
Piotr Drąg
c4895ee9a0 Improve grammar in new translatable strings 2014-05-20 21:33:52 +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
86f6329fc1 Fixing deprecated classes in GtkBuilder 2014-05-20 10:50:04 -03:00
Arx Cruz
5ce972d784 Removing some deprecated classes in zenity GtkBuilder file 2014-05-20 10:35:39 -03:00
Arx Cruz
797ef3f1bd Remove deprecated methods.
This remove deprecated methods in about dialog.
Also remove the help button in the about dialog, since wasn't
being used (due the deprecated methods) and keep it just
make the UI ugly.
2014-05-16 18:06:21 -03:00
Daniel Mustieles
3d43541db7 Updated FSF's address 2014-01-31 14:24:40 +01:00
Vinicius Silva
cdef9c8fa1 Fixing bug #712616 2013-11-25 23:57:35 -02: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
80bc8ce643 But #702535 - List box doesn't expand to fill window 2013-10-10 16:52:38 -03: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
Benjamin Berg
58245d4d4a Add a runtime check for X11 (bug #705335)
If GTK+ is compiled with multiple backends, then it is necessary
to do a runtime check for the used backend.
2013-08-05 10:42:11 -03:00
Arx Cruz
c89ce9c381 Bug #653468. Fixed by Kurt Miller <kurt@intricatesoftware.com>.
Fix the broken auto-close option in progress and list dialogs.
2013-06-04 16:27:48 -03:00
Arx Cruz
7c234ed9b7 Bug 698683 - Double clicking an item or hitting enter after selecting an item
returns it twice
2013-05-23 16:27:58 -03:00
Arx Cruz
1ac1da63f8 But #674881 - Timeout option overriding normal exit code 2013-03-05 16:56:24 -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
Marc Ruiz - radykal -
9beba8872d Replaced string 'could' to start with an Uppercase.
BUG ID: 687180
2012-11-22 11:26:23 -02:00
Matthias Clasen
cabf7b76bc Revert "Don't break the string freeze"
This reverts commit 156a99e304.

I got the second string freeze approval after all, so lets
add the new strings back.
2012-09-25 19:45:29 -04:00
Matthias Clasen
156a99e304 Don't break the string freeze
I'm out of time waiting for a second string freeze break approval,
so the strings will be untranslated for now.
2012-09-25 18:49:50 -04: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
Frode Austvik
bac509bb12 Fix the ComboBoxText construction so the dropmenu works again.
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
2012-08-21 19:20:12 -03:00
Javier Jardón
e4c5d60ee2 Port to new documentation infrastructure 2012-08-21 19:17:12 -03:00
Colin Walters
5dd7442bd5 Fix various compiler warnings (two serious)
Missing sentinels can cause crashes.  The others are just style.
2012-08-12 12:20:07 -04:00
Piotr Drąg
31eef0cd8a Revert "Fixing string freeze"
This reverts commit 8777940f49.

The master branch is not yet affected by the string freeze.
2012-07-21 01:07:48 +02:00
Arx Cruz
8777940f49 Fixing string freeze 2012-07-19 14:44:53 -03: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
Alexandre Rostovtsev
d845087870 Do not crash in --forms --add-list without column values
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
2012-05-23 18:47:34 -03:00
Piotr Drąg
4ca4e421c5 Remove markup from translatable strings
Also manually unbreak the string freeze break.
2012-05-16 19:10:16 +02:00
Julian Taylor
127c298ac4 mask the result of g_io_channel_get_flags for the wanted flag 2012-05-08 17:29:42 -03:00
Arx Cruz
cb5f17a2df Wrong unref object 2012-04-19 17:32:59 -03:00
Arx Cruz
1e88554c3f Fix for Bug 567663. Now the --pulsate option works properly 2012-04-19 16:11:22 -03:00
Arx Cruz
4a30be17b3 Bug #673529 Fix segmentation fault in --list option 2012-04-19 11:31:36 -03:00
Arx Cruz
fd165dfe19 Bug #668935 - the channel was being freed twice. 2012-01-30 15:56:23 -02: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
7a34df3041 Bug #592195. This fix made the --list mode return as soon as receive an ok or cancel response
avoiding crash.
2011-07-26 10:08:31 -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
9ab8380ff2 Fix for bug #540489 and #501001 both related to 100% use of cpu. 2011-07-08 11:57:18 -03:00
Arx Cruz
3f5c166792 Forgot change one option in gtk_label 2011-07-06 15:09:38 -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
d60e5eeeb3 Now if you use --timeout option, the return code will be properly handled
The default behavior will be done (ie. user click on ok button)
The return code will be 5
2011-06-17 10:51:00 -03:00
Arx Cruz
f77a0199af Fix the msg forms (question, warning, error) to return 5 when timeout 2011-06-16 14:45:52 -03:00
Arx Cruz
b39ad33c35 Bug 651948 - zenity list does not return default value when timeout is over 2011-06-16 11:34:01 -03:00
Nirbheek Chauhan
2fa457ed44 Fix bug 651723, don't look for libnotify.h if not requested 2011-06-07 10:14:21 -03:00
Luca Ferretti
40cae89ace Revert mistakely pushed string change 2011-03-17 12:56:28 +01:00
Luca Ferretti
dc0c483b91 Use proper case in forms dialog option values 2011-03-17 12:02:20 +01:00
Javier Jardón
9744aaab18 text.c: Fix compilation warning 2011-02-15 21:34:31 +00:00
Javier Jardón
f675707d1c Do not use deprecated separator GtkDialog property 2011-02-15 21:27:24 +00:00
Matthias Clasen
55df95a2f7 Reset errors after freeing them
This was causing segfaults:
https://bugzilla.redhat.com/show_bug.cgi?id=670895
2011-01-25 18:49:01 -05: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
ef3a33a142 Fix for bug 540560.
Patch by Victor Ananjevsky <ananasik at gmail dot com>
2011-01-02 22:57:42 -02:00
Cosimo Cecchi
e9fcf66cd3 util: fix build with new GTK+ 2010-12-22 18:42:55 +01:00
Arx Cruz
01bf7956d6 Fix for bug 630885 2010-11-18 14:54:36 -02:00
Arx Cruz
54a8e7079a Fix for bug 412493 2010-11-18 14:39:04 -02:00
Arx Cruz
079254bb48 Add libnotify as optional in zenity instalation 2010-11-09 12:28:58 -02:00
Luis Medinas
4421de675f Remove deprecated code for GTK+-3.0. 2010-10-21 00:41:09 +01:00
William Jon McCann
620d5505c5 Require libnotify 0.6.1
https://bugzilla.gnome.org/show_bug.cgi?id=631737
2010-10-20 23:58:08 +01:00
Luis Medinas
bb00f842d0 Remove GDK_DISPLAY() usage. Fixes build with GTK+-3.0
Replaced by GDK_DISPLAY_XDISPLAY.
2010-10-02 20:01:14 +01:00
Luis Medinas
18ed4622ac Add default activation on entry.
Fixes bgo#630884 - Zenity --password dialog doesn't have a default
action
2010-09-29 14:32:01 +01:00
Arx Cruz
0068422170 Removing X_LIBS from src/Makefile 2010-07-22 19:51:21 -03:00
Arx Cruz
3ae7f89228 Change cancel button messages to be capitalized 2010-07-22 19:51:15 -03:00
Arx Cruz
7969d942c8 Change GTK_DIALOG(dialog)->vbox to gtk_dialog_get_content_area() in order to compile with GTK 3.0 2010-07-12 12:57:47 -03:00
Arx Cruz
79ea294e0a Just changing the copyright. 2010-07-12 11:20:02 -03:00
Arx Cruz
10d0380220 Add new password dialog 2010-07-12 11:08:26 -03:00
Philippe Gauthier
1570a2bbf0 Use g_timeout_add_seconds instead g_timeout_add
The calls to g_timeout_add are replaced with g_timeout_add_seconds to
reduce the number or program wake ups. See the GNOME Goal description:
http://live.gnome.org/GnomeGoals/UseTimeoutAddSeconds
2010-05-27 20:49:45 -03:00
Michal Pryc
eb6ed94c9e Bug 615527 - zenity hangs if invalid WINDOWID is specified 2010-04-19 13:39:12 +01:00
Andre Klapper
29625ff9cc Compile with -DGSEAL_ENABLED. Fixes bug 612498. 2010-04-08 18:00:29 +02: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
Lucas Rocha
078ff02362 Bug 609224 - GPL mentioning left in about dialog 2010-02-23 17:55:00 +00:00
Lucas Rocha
3b4f73ce46 [options] Use correct type in hide_header variable 2010-02-23 17:53:38 +00:00
Lucas Rocha
97d7fa636e Bug 603673 - Show correct license in the about dialog 2009-12-13 17:45:28 +00:00
Lucas Rocha
cf0f0b1668 [list] allow escaped chars as separator 2009-09-16 21:30:46 +01:00
Lucas Rocha
c1f2e66288 Bug 572835 – Zenity --question should be yes or no 2009-08-10 04:17:47 +01:00
Bryce Harrington
8e190dbb1f Bug 552971 - Add a hide-header option to list dialog 2009-08-10 04:10:53 +01:00
Adrian Carpenter
171e59e3ea Bug 551116 - Fix default activation in entry dialog
when using the dialog with drop down menu.
2009-08-10 03:59:34 +01:00
Lucas Rocha
82f63f94d5 [option] Free file filter list on exit 2009-08-10 03:44:00 +01:00
Lucas Rocha
bf53ffc6f2 [option] Fix type of filters variable 2009-08-10 03:40:59 +01:00
Matt Keenan
4bba7c63f8 Bug 549404 - --help-entry for hide-text incorrect 2009-08-10 03:36:33 +01:00
Lucas Rocha
f0dfc8a820 [progress] Improve code to update of percentage 2009-08-10 03:22:05 +01:00
Lucas Rocha
a66e4df5d1 Bug 556198 – Support toggling pulsate in progressbar 2009-08-10 03:12:16 +01:00
Lucas Rocha
fa0349545d [progress] Factor out function to control pulsate 2009-08-10 03:08:46 +01:00