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

« back to all changes in this revision

Viewing changes to src/util.h

  • Committer: Bazaar Package Importer
  • Author(s): Chow Loong Jin
  • Date: 2010-03-17 09:02:44 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100317090244-ni0ye04mva2hxe10
Tags: 0.3.0-1
* New upstream release
* debian/control:
  + No change bump of Standards-Version to 3.8.4
  + Update build-deps:
    - Drop libglade, libpanel-applet, libgnomevfs2, libgnome{2,ui}
    - Add libxml2-dev and libunique-dev, intltool
* debian/patches/01_update-alarms-eta,patch:
  + Dropped, applied upstream
* debian/(alarm-clock-applet.1, alarm-clock-applet.manpages):
  + Add manpage for alarm-clock-applet, now that the binary is moved to
    /usr/bin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#include <time.h>
28
28
#include <glib.h>
29
29
 
 
30
#include <config.h>
 
31
 
30
32
/**
31
33
 * Calculates the alarm timestamp given hour, min and secs.
32
34
 */
48
50
gboolean
49
51
is_executable_valid (gchar *executable);
50
52
 
 
53
/* Get full path of a data file */
 
54
char *
 
55
alarm_applet_get_data_path (const char *name);
 
56
 
 
57
guint
 
58
block_signal_handlers_by_name (gpointer instance, const gchar *signal_name);
 
59
 
 
60
guint
 
61
unblock_signal_handlers_by_name (gpointer instance, const gchar *signal_name);
 
62
 
 
63
guint
 
64
block_list (GList *instances, gpointer func);
 
65
 
 
66
guint
 
67
unblock_list (GList *instances, gpointer func);
 
68
 
 
69
#define BLOCK(instance, func)   \
 
70
    g_signal_handlers_block_matched ((instance),            \
 
71
                                     G_SIGNAL_MATCH_FUNC,   \
 
72
                                     0, 0, NULL, (func), NULL)
 
73
 
 
74
#define UNBLOCK(instance, func)   \
 
75
    g_signal_handlers_unblock_matched ((instance),            \
 
76
                                       G_SIGNAL_MATCH_FUNC,   \
 
77
                                       0, 0, NULL, (func), NULL)
 
78
 
51
79
#endif /*UTIL_H_*/