Commit Graph

38 Commits

Author SHA1 Message Date
Arx Cruz ad6a345133 Formating latest patch 2017-05-26 14:27:44 +02:00
Patrick Griffis 110a851747 Use GtkFileChooserNative 2017-05-26 14:20:01 +02:00
Arx Cruz 4eddb202ca Fix style
Fixing style in all zenity code, removing useless spaces,
empty lines, all code in 80 columns, etc.
2017-04-07 14:00:42 +02:00
Arx Cruz d063797fdf Fixing GLib-CRITICAL messages 2015-10-02 14:35:06 +02:00
Arx Cruz a0fa643f1c Merge branch 'jjardon/no_deprecated'
Conflicts:
	src/msg.c
2015-04-21 13:51:23 +02:00
Gama Anderson ba5ea0386d ADD gchar **extra_label TO struct ZenityData
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
2015-04-21 13:00:44 +02:00
Javier Jardón 6fcbb80fd1 Do not use an icon for Cancel/OK buttons
GTK+ documentation recommends to not use an icons, but use
"_OK"/"_Cancel" labels instead
2015-03-22 09:16:16 +00:00
Weitian Leung 009523d5da added attach option for transient window 2013-08-31 00:26:51 -03:00
Arx Cruz 1ac1da63f8 But #674881 - Timeout option overriding normal exit code 2013-03-05 16:56:24 -03: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 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 b39ad33c35 Bug 651948 - zenity list does not return default value when timeout is over 2011-06-16 11:34:01 -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
Felix Riemann 3f33966167 Bug 578393 – convert from libglade to GtkBuilder 2009-07-20 10:23:32 +02:00
Lucas Rocha ec48400510 correctly handle --filename option on file selection mode (Fixes bug
2009-01-09  Lucas Rocha  <lucasr@gnome.org>

	* src/fileselection.c (zenity_fileselection): correctly handle
	--filename option on file selection mode (Fixes bug #564552).
	Patch from Gilles Detillieux.

svn path=/trunk/; revision=1461
2009-01-09 00:08:01 +00: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 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 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 21f7bc6a54 general code cleanups. Contribution from Benoît Dejean.
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.
2005-07-08 23:21:34 +00:00
Lucas Rocha d6f1d76768 marks static many functions and global variables. Contribution from
2005-07-08  Lucas Rocha  <lucasr@cvs.gnome.org>

	* src/about.c, src/option.c, src/fileselection.c:
	marks static many functions and global variables.
	Contribution from Benoît Dejean.
2005-07-08 13:39:27 +00:00
Lucas Almeida Rocha 4c328078b6 Include cleanups (config.h) 2005-07-06 20:13:11 +00:00
Glynn Foster 6abd93050f COPYING, src/about.c, src/calendar.c, src/eggtrayicon.c, src/entry.c,
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.
2005-04-25 03:20:45 +00:00
Glynn Foster 6d386ddda5 Fix for #171838, from Carlos Parra.
2005-04-20  Glynn Foster  <glynn.foster@sun.com>

	* src/fileselection.c: Fix for #171838, from Carlos
	Parra.
2005-04-21 00:56:05 +00:00
Glynn Foster a197b56c07 Fix bug #167577, that leaks a seperator. Patch from Paolo Borelli
2005-02-16  Glynn Foster  <glynn.foster@sun.com>

	* src/fileselection.c, THANKS, src/about.c: Fix bug
	#167577, that leaks a seperator. Patch from
	Paolo Borelli <pborelli@katamail.com>
2005-02-16 10:28:11 +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 63661a6ea0 src/calendar.c, src/entry.c, src/fileselection.c, Cleanup fixes from Paul
2004-07-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: Cleanup
	fixes from Paul Bolle.
2004-07-19 01:13:40 +00:00
Glynn Foster 62785ed80f Add from the 2 Sebastian's, and make email addresses more spam proof.
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.
2004-04-26 04:41:25 +00:00
Glynn Foster b43bbda2e2 Patch from Darren Adams <darrenadams@dsl.pipex.com> to make sure the new
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.
2004-03-19 02:28:30 +00:00
Glynn Foster 104a45c0f7 Release 2.5.1, a ridiculous bump so that we sync with the GNOME desktop
2003-12-30  Glynn Foster  <glynn.foster@sun.com>

	* configure.in: Release 2.5.1, a ridiculous bump
	so that we sync with the GNOME desktop releases.

2003-12-30  Jan Arne Petersen  <jpetersen@uni-bonn.de>

	* src/fileselection.c: (zenity_fileselection),
	(zenity_fileselection_dialog_response): Replace
	GtkFileSelection with GtkFileChooser.
2003-12-31 01:52:25 +00:00
Kevin C. Krinke 652c90596e user input data output to STDOUT via g_print instead of outputting to
2003-07-11  Kevin C. Krinke  <kckrinke@opendoorsoftware.com>

       * src/calendar.c, src/entry.c, src/fileselection.c, src/text.c,
       src/tree.c: user input data output to STDOUT via g_print instead
       of outputting to STDERR via g_printerr. This makes it possible to
       destinguish user input data from GTK+ warnings / errors.
       * THANKS, src/about.c: I figure this is my second patch submission
       so I belong in the credits...
2003-07-13 23:03:18 +00:00
Mike Newman cfe29d9ad0 Allow /t and /n in dialog text. Some code cleanup. 2003-06-10 21:30:22 +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
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
Glynn Foster 6a65d75921 Fix up the response signal handlers. Use returns of 0 for 'Ok' and
2003-01-07  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.glade, src/zenity.h: Fix up
	the response signal handlers. Use returns of 0 for
	'Ok' and 'Close', 1 for 'Cancel' and 'Escape' and
	-1 for 'Uh Oh'. Get stuff printing to stderr. Fix up
	the error handling that I thought was improved,
	although still have issues with popt callback getting
	called numerous times because of more than one instance
	of the same kind is being used in poptOption.

	* TODO: Update accordingly.
2003-01-07 13:22:57 +00:00
Glynn Foster 48c1564ac5 Initial revision 2003-01-03 13:26:04 +00:00