notifications: Add panel
Show applications using the message tray, and allow configuring in what way the shell presents them. The set of applications shown include all applications that ever showed a notification in gnome-shell and all applications that have a boolean X-GNOME-UsesNotifications key set to true in their desktop file. https://bugzilla.gnome.org/show_bug.cgi?id=685928
This commit is contained in:
parent
1af3a03ca3
commit
e8cd35edce
12 changed files with 812 additions and 0 deletions
41
panels/notifications/cc-notifications-panel.h
Normal file
41
panels/notifications/cc-notifications-panel.h
Normal file
|
@ -0,0 +1,41 @@
|
|||
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
|
||||
/*
|
||||
* Copyright (C) 2012 Giovanni Campagna <scampa.giovanni@gmail.com>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library 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
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General
|
||||
* Public License along with this library; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _CC_NOTIFICATIONS_PANEL_H_
|
||||
#define _CC_NOTIFICATIONS_PANEL_H_
|
||||
|
||||
#include <gio/gio.h>
|
||||
#include <shell/cc-panel.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define CC_TYPE_NOTIFICATIONS_PANEL (cc_notifications_panel_get_type ())
|
||||
#define CC_NOTIFICATIONS_PANEL(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CC_TYPE_NOTIFICATIONS_PANEL, CcNotificationsPanel))
|
||||
#define GC_IS_NOTIFICATIONS_PANEL(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CC_TYPE_NOTIFICATIONS_PANEL))
|
||||
|
||||
typedef struct _CcNotificationsPanel CcNotificationsPanel;
|
||||
typedef struct _CcNotificationsPanelClass CcNotificationsPanelClass;
|
||||
|
||||
GType cc_notifications_panel_get_type (void) G_GNUC_CONST;
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* _CC_EDIT_DIALOG_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue