summaryrefslogtreecommitdiff
path: root/src/util.c
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
* Fix some compilations warningsJavier Jardón2020-12-18
|
* 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
|
* Merge branch 'jjardon/no_deprecated'Arx Cruz2015-04-21
|\ | | | | | | | | Conflicts: src/msg.c
| * Rework zenity_util_set_window_icon* to not use stock imagesJavier Jardón2015-03-22
| |
* | 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
* added attach option for transient windowWeitian Leung2013-08-31
|
* Add a runtime check for X11 (bug #705335)Benjamin Berg2013-08-05
| | | | | If GTK+ is compiled with multiple backends, then it is necessary to do a runtime check for the used backend.
* But #674881 - Timeout option overriding normal exit codeArx Cruz2013-03-05
|
* Port to new documentation infrastructureJavier Jardón2012-08-21
|
* Now if you use --timeout option, the return code will be properly handledArx Cruz2011-06-17
| | | | | The default behavior will be done (ie. user click on ok button) The return code will be 5
* Bug 651948 - zenity list does not return default value when timeout is overArx Cruz2011-06-16
|
* util: fix build with new GTK+Cosimo Cecchi2010-12-22
|
* Remove GDK_DISPLAY() usage. Fixes build with GTK+-3.0Luis Medinas2010-10-02
| | | | Replaced by GDK_DISPLAY_XDISPLAY.
* Bug 615527 - zenity hangs if invalid WINDOWID is specifiedMichal Pryc2010-04-19
|
* Compile with -DGSEAL_ENABLED. Fixes bug 612498.Andre Klapper2010-04-08
|
* Bug 578393 – convert from libglade to GtkBuilderFelix Riemann2009-07-20
|
* release 2.23.1Lucas Rocha2008-04-21
| | | | | | | | 2008-04-21 Lucas Rocha <lucasr@gnome.org> * NEWS: release 2.23.1 svn path=/trunk/; revision=1364
* 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
* src/notification.c (-set_scaled_pixbuf, +zenity_notification_icon_update,Lucas Rocha2006-07-28
| | | | | | | | | | | | | | | | | | | | 2006-07-27 Lucas Rocha <lucasr@gnome.org> * src/notification.c (-set_scaled_pixbuf, +zenity_notification_icon_update, -zenity_notification_icon_press_callback, +zenity_notification_icon_size_changed_cb, -zenity_notification_icon_expose_callback, -zenity_notification_icon_destroy_callback, +zenity_notification_icon_activate_cb, zenity_notification_handle_stdin, zenity_notification), src/util.[ch] (+zenity_util_stock_from_filename, zenity_util_pixbuf_new_from_file), Makefile.am, configure.in: Migration to gtk_status_icon (Fixes bug #341451). Patch from Christian Persch <chpe@gnome.org>. * src/eggtrayicon.[ch]: removed.
* general code cleanups. Contribution from Benoît Dejean.Lucas Rocha2005-07-08
| | | | | | | | | 2005-07-08 Lucas Rocha <lucasr@cvs.gnome.org> * src/about.c, src/calendar.c, src/fileselection.c, src/option.c, src/progress.c, src/text.c, src/tree.c, src/util.c: general code cleanups. Contribution from Benoît Dejean.
* Include cleanups (config.h)Lucas Almeida Rocha2005-07-06
|
* COPYING, src/about.c, src/calendar.c, src/eggtrayicon.c, src/entry.c,Glynn Foster2005-04-25
| | | | | | | | | | | 2005-04-25 Glynn Foster <glynn.foster@sun.com> * COPYING, src/about.c, src/calendar.c, src/eggtrayicon.c, * src/entry.c, src/fileselection.c, src/main.c, src/msg.c, * src/notification.c, src/option.c, src/progress.c, * src/text.c, src/tree.c, src/util.c: Update the FSF address to point to 51 Franklin Street, Fifth Floor as per forwarded mail from Alvaro Lopez Ortega.
* Check the xterm window ID is valid before using itRoss Burton2004-11-23
|
* g_strdown() modifies the filename, so use strcasecmp() for the comparisonJames Henstridge2004-10-05
| | | | | | | | | 2004-10-05 James Henstridge <james@jamesh.id.au> * src/util.c (zenity_util_pixbuf_new_from_file): g_strdown() modifies the filename, so use strcasecmp() for the comparison instead. Since we are comparing against fixed ASCII strings, this should have no UTF-8 issues.
* Add missing header. Same ANSIfication. Closes bug #152851.Kjartan Maraas2004-09-17
| | | | | | | | | | 2004-09-17 Kjartan Maraas <kmaraas@gnome.org> * src/progress.c: Add missing header. * src/tree.c: Same * src/util.c: (transient_get_xterm), (transient_get_xterm_toplevel): ANSIfication. Closes bug #152851.
* 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.
* Add from the 2 Sebastian's, and make email addresses more spam proof.Glynn Foster2004-04-26
| | | | | | | | | | | | | 2004-04-26 Glynn Foster <glynn.foster@sun.com> * THANKS, src/about.c: Add from the 2 Sebastian's, and make email addresses more spam proof. * src/calendar.c, src/entry.c, src/fileselection.c, src/msg.c, * src/progress.c, src/text.c, src/tree.c, src/util.c, * src/util.h: Patch from Sebastian Kapfer to make all zenity dialogs transients of the parent xterm. Fixes #136226. * src/zenity.glade: Patch from Sebastian Heinlein to improve things HIG wise. Fixes #140745.
* Patch from Darren Adams <darrenadams@dsl.pipex.com> to make sure the newGlynn Foster2004-03-19
| | | | | | | | | | | | | | 2004-03-19 Glynn Foster <glynn.foster@sun.com> * src/calendar.c, src/entry.c, src/fileselection.c, src/msg.c, src/progress.c, src/text.c, src/tree.c: Patch from Darren Adams <darrenadams@dsl.pipex.com> to make sure the new file chooser resizes nicely. Sanitize the default setting of the other widgets. * configure.in, src/util.c: Lose gconf dependancy since we don't currently use it, although arguably we should to detect which help browser we're supposed to run :/ * THANKS, src/about.c: Add Darren to the list.
* Remove some unused code.Glynn Foster2004-03-06
| | | | | | 2004-03-07 Glynn Foster <glynn.foster@sun.com> * src/util.c: Remove some unused code.
* Remove all the stupid duplicated code to do the help stuff, and instead doGlynn Foster2004-02-29
| | | | | | | | | 2004-02-29 Glynn Foster <glynn.foster@sun.com> * src/about.c, src/util.c, src/util.h: Remove all the stupid duplicated code to do the help stuff, and instead do a simple call for 'yelp ghelp:zenity'. -418, +23. Eeek. Fixes #135607.
* Support user-defined return values via env vars, like dialog did.Mike Newman2003-06-07
|
* Fix up some build warnings as reported by Ross Burton and his amazing gccGlynn Foster2003-06-04
| | | | | | | | 2003-06-04 Glynn Foster <glynn.foster@sun.com> * src/about.c, src/main.c, src/msg.c, src/progress.c, src/tree.c, src/util.c: Fix up some build warnings as reported by Ross Burton and his amazing gcc 3.3 techno machine.
* Make the list dialog handle stdin - a little bit buggy still. UpdateGlynn Foster2003-05-05
| | | | | | | | 2003-05-05 Glynn Foster <glynn.foster@sun.com> * src/tree.c, src/util.c, src/util.h: Make the list dialog handle stdin - a little bit buggy still. * TODO: Update
* Mass indentation cleanup. Make sure the glade dialogs aren't initiallyGlynn Foster2003-03-10
| | | | | | | | | | | | 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.
* Provide correct help URL.Glynn Foster2003-01-24
| | | | | | | | | | | | | | 2003-01-24 Glynn Foster <glynn.foster@sun.com> * src/about.c: Provide correct help URL. * src/util.h, src/util.c: Add functions from libgnome/gnome-i18n so that we can correctly find the apropriate help file. * xmldocs.make: Install help into $(datadir)/help/$(lang)/ * THANKS: Update from the code I stole from libgnome
* Update to add new gconf requirement.Glynn Foster2003-01-14
| | | | | | | | | | | | | | | | | | | | | 2003-01-14 Glynn Foster <glynn.foster@sun.com> * configure.in: Update to add new gconf requirement. * src/zenity.h, src/about.c: Hurray for a new about box, although it lacks an icon. I wonder if people would actually like to see this as part of the dialog options. Can't think of any reason to do so at the moment though. Large chunks copied from libgnomeui/gnome-about.[ch] * src/util.h, src/util.c: Add new helper functions because I don't want to touch gnome_program with a bargepole. Copied from libgnome/gnome-url.[ch] * po/POTFILES.in: Add missing files. I think we have everything now. * TODO: Update accordingly.
* Initial revisionGlynn Foster2003-01-03
bgstack15