2
* ui.h - Alarm Clock applet UI routines
4
* Copyright (C) 2007-2008 Johannes H. Jensen <joh@pseudoberries.com>
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; either version 2
9
* of the License, or (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
* Johannes H. Jensen <joh@pseudoberries.com>
27
#include "alarm-applet.h"
30
#include <libnotify/notify.h>
33
#define ORIENT_IS_HORIZONTAL(o) ((o) == PANEL_APPLET_ORIENT_UP || (o) == PANEL_APPLET_ORIENT_DOWN)
34
#define IS_HORIZONTAL(papplet) (ORIENT_IS_HORIZONTAL (panel_applet_get_orient (papplet)))
38
display_error_dialog (const gchar *message, const gchar *secondary_text, GtkWindow *parent);
41
alarm_applet_label_update (AlarmApplet *applet);
44
alarm_applet_update_tooltip (AlarmApplet *applet);
47
alarm_applet_icon_update (AlarmApplet *applet);
50
* Shamelessly stolen from gnome-da-capplet.c
53
fill_combo_box (GtkComboBox *combo_box, GList *list, const gchar *custom_label);
56
alarm_applet_notification_display (AlarmApplet *applet, Alarm *alarm);
59
alarm_applet_notification_close (AlarmApplet *applet);
62
alarm_applet_ui_init (AlarmApplet *applet);
65
alarm_applet_menu_init (AlarmApplet *applet);
68
media_player_error_cb (MediaPlayer *player, GError *err, GtkWindow *parent);