~ubuntu-branches/ubuntu/vivid/alarm-clock-applet/vivid

« back to all changes in this revision

Viewing changes to src/ui.h

  • Committer: Bazaar Package Importer
  • Author(s): Chow Loong Jin
  • Date: 2009-05-30 23:24:27 UTC
  • Revision ID: james.westby@ubuntu.com-20090530232427-88on1j2ily4ajxdz
Tags: upstream-0.2.6
ImportĀ upstreamĀ versionĀ 0.2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * ui.h - Alarm Clock applet UI routines
 
3
 * 
 
4
 * Copyright (C) 2007-2008 Johannes H. Jensen <joh@pseudoberries.com>
 
5
 * 
 
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.
 
10
 *
 
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.
 
15
 *
 
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.
 
19
 * 
 
20
 * Authors:
 
21
 *              Johannes H. Jensen <joh@pseudoberries.com>
 
22
 */
 
23
 
 
24
#ifndef UI_H_
 
25
#define UI_H_
 
26
 
 
27
#include "alarm-applet.h"
 
28
 
 
29
#ifdef HAVE_LIBNOTIFY
 
30
#include <libnotify/notify.h>
 
31
#endif
 
32
 
 
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)))
 
35
 
 
36
 
 
37
void
 
38
display_error_dialog (const gchar *message, const gchar *secondary_text, GtkWindow *parent);
 
39
 
 
40
void
 
41
alarm_applet_label_update (AlarmApplet *applet);
 
42
 
 
43
void
 
44
alarm_applet_update_tooltip (AlarmApplet *applet);
 
45
 
 
46
void
 
47
alarm_applet_icon_update (AlarmApplet *applet);
 
48
 
 
49
/*
 
50
 * Shamelessly stolen from gnome-da-capplet.c
 
51
 */
 
52
void
 
53
fill_combo_box (GtkComboBox *combo_box, GList *list, const gchar *custom_label);
 
54
 
 
55
gboolean
 
56
alarm_applet_notification_display (AlarmApplet *applet, Alarm *alarm);
 
57
 
 
58
gboolean
 
59
alarm_applet_notification_close (AlarmApplet *applet);
 
60
 
 
61
void
 
62
alarm_applet_ui_init (AlarmApplet *applet);
 
63
 
 
64
void
 
65
alarm_applet_menu_init (AlarmApplet *applet);
 
66
 
 
67
void
 
68
media_player_error_cb (MediaPlayer *player, GError *err, GtkWindow *parent);
 
69
 
 
70
#endif /*UI_H_*/