Commit Graph

27 Commits

Author SHA1 Message Date
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
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
Nirbheek Chauhan
2fa457ed44 Fix bug 651723, don't look for libnotify.h if not requested 2011-06-07 10:14:21 -03: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
079254bb48 Add libnotify as optional in zenity instalation 2010-11-09 12:28:58 -02: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
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
Aurélio A. Heckert
533edc7044 Bug 573802 - Support notification summary
You can now define title and summary on notifications. The first line
of the provided text will be considered the title and the following
lines are the summary.
2009-08-10 02:38:41 +01:00
Felix Riemann
3f33966167 Bug 578393 – convert from libglade to GtkBuilder 2009-07-20 10:23:32 +02:00
Lucas Rocha
6dd1d4b5e6 replace deprecated GTK+ calls (fixes bug #571869). Patch from Felix
2009-03-08  Lucas Rocha  <lucasr@gnome.org>

	* configure.in, src/notification.c: replace deprecated
	GTK+ calls (fixes bug #571869).
	Patch from Felix Riemann <friemann@svn.gnome.org>.

svn path=/trunk/; revision=1488
2009-03-08 22:04:02 +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
b73e72bcfe initialize GTK+ before parsing command line options to better handle
2007-05-27  Lucas Rocha  <lucasr@gnome.org>

	* src/main.c: initialize GTK+ before parsing command line options to
	better handle errors on display setting (Fixes bug #410055).

svn path=/trunk/; revision=1217
2007-05-27 20:09:27 +00:00
Lucas Rocha
adee9db566 general cleanups for build warnings (Fixes bug #416196). Patch from
2007-05-14  Lucas Rocha  <lucasr@gnome.org>

	* src/progress.c (zenity_progress_handle_stdin), src/option.c
	(zenity_create_context), src/about.c, src/notification.c
	(zenity_notification_handle_stdin): general cleanups for 
	build warnings (Fixes bug #416196). Patch from Kjartan 
	Maraas <kmaraas@gnome.org>.

svn path=/trunk/; revision=1208
2007-05-14 21:26:08 +00:00
Lucas Rocha
94e6ab1132 Release 2.15.91 Update.
2006-07-28  Lucas Rocha  <lucasr@gnome.org>

	* configure.in: Release 2.15.91
	* NEWS: Update.
2006-08-09 00:55:59 +00:00
Lucas Rocha
d373b3f3ce src/notification.c (-set_scaled_pixbuf, +zenity_notification_icon_update,
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.
2006-07-28 21:25:11 +00:00
Lucas Rocha
e919741e64 Implement the "message" command on notification icon with libnotify
2006-03-22  Lucas Rocha  <lucasr@gnome.org>

	Implement the "message" command on notification icon
	with libnotify bubbles. Patch from Davyd Madeley
	<davyd@madeley.id.au>.

	* configure.in: add libnotify checking.
	* src/notification.c (zenity_notification_handle_stdin,
	zenity_notification): initialize libnotify and implement
	"message" command.
2006-03-23 03:43:23 +00:00
Lucas Almeida Rocha
4c328078b6 Include cleanups (config.h) 2005-07-06 20:13:11 +00:00
Lucas Almeida Rocha
14c0bf10c8 Don't use the parent widget for hiding tray icon 2005-06-17 03:18:41 +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
a4777781d1 Patch from Chris Lahey for #165456. Updated.
2005-02-01  Glynn Foster  <glynn.foster@sun.com>

	* src/notification.c, src/option.c: Patch from Chris
	Lahey for #165456.
	* src/about.c, THANKS: Updated.
2005-01-31 22:17:38 +00:00
Glynn Foster
01872ab746 Correct error message for notification icon. Fixes #163462.
2005-01-07  Glynn Foster  <glynn.foster@sun.com>

        * src/notification.c: Correct error message for notification
	icon. Fixes #163462.
2005-01-09 20:13:18 +00:00
Glynn Foster
a626476abb Fix #161539, and try and hide the parent widget, rather than the tray
2004-12-20  Glynn Foster  <glynn.foster@sun.com>

	* src/notification.c: Fix #161539, and try and hide the parent
	widget, rather than the tray icon, since it saves space.
2004-12-19 21:27:25 +00:00
James Henstridge
17cd55e682 function to set a GtkImage to a scaled pixbuf.
2004-09-30  James Henstridge  <james@jamesh.id.au>

    * src/notification.c (set_scaled_pixbuf): function to set a
    GtkImage to a scaled pixbuf.
    (zenity_notification_handle_stdin): set the image to a
    GTK_ICON_SIZE_BUTTON sized image.
    (zenity_notification): same here.
2004-09-30 11:25:37 +00:00
James Henstridge
963241dd15 add code to listen for commands on stdin when in listen mode.
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.
2004-09-16 09:28:09 +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