diff options
author | Perberos <[email protected]> | 2011-12-01 22:49:12 -0300 |
---|---|---|
committer | Perberos <[email protected]> | 2011-12-01 22:49:12 -0300 |
commit | 781b0ff3f74abd6f5353b6d08763bbba93f2f21c (patch) | |
tree | 20c130b413586219356ec360efb5918a498cee69 /src/daemon/stack.h | |
download | mate-notification-daemon-781b0ff3f74abd6f5353b6d08763bbba93f2f21c.tar.bz2 mate-notification-daemon-781b0ff3f74abd6f5353b6d08763bbba93f2f21c.tar.xz |
moving from https://github.com/perberos/mate-desktop-environment
Diffstat (limited to 'src/daemon/stack.h')
-rw-r--r-- | src/daemon/stack.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/daemon/stack.h b/src/daemon/stack.h new file mode 100644 index 0000000..b2daafe --- /dev/null +++ b/src/daemon/stack.h @@ -0,0 +1,50 @@ +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- + * + * Copyright (C) 2006 Christian Hammond <[email protected]> + * Copyright (C) 2010 Red Hat, Inc. + * Copyright (C) 2011 Perberos <[email protected]> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + */ + +#ifndef _NOTIFY_STACK_H_ +#define _NOTIFY_STACK_H_ + +#include <gtk/gtk.h> + +#include "daemon.h" + +typedef enum { + NOTIFY_STACK_LOCATION_UNKNOWN = -1, + NOTIFY_STACK_LOCATION_TOP_LEFT, + NOTIFY_STACK_LOCATION_TOP_RIGHT, + NOTIFY_STACK_LOCATION_BOTTOM_LEFT, + NOTIFY_STACK_LOCATION_BOTTOM_RIGHT, + NOTIFY_STACK_LOCATION_DEFAULT = NOTIFY_STACK_LOCATION_BOTTOM_RIGHT +} NotifyStackLocation; + +typedef struct _NotifyStack NotifyStack; + +NotifyStack* notify_stack_new(NotifyDaemon* daemon, GdkScreen* screen, guint monitor, NotifyStackLocation stack_location); +void notify_stack_destroy(NotifyStack* stack); + +void notify_stack_set_location(NotifyStack* stack, NotifyStackLocation location); +void notify_stack_add_window(NotifyStack* stack, GtkWindow* nw, gboolean new_notification); +void notify_stack_remove_window(NotifyStack* stack, GtkWindow* nw); +GList* notify_stack_get_windows(NotifyStack* stack); +void notify_stack_queue_update_position(NotifyStack* stack); + +#endif /* _NOTIFY_STACK_H_ */ |