Mercurial > projects > xinhibit-applet
comparison xia-icon.c @ 13:14f31e92372f
Fix style
author | Guido Berhoerster <guido+xinhibit-applet@berhoerster.name> |
---|---|
date | Thu, 17 Apr 2014 11:01:25 +0200 |
parents | 9a16bf50daba |
children |
comparison
equal
deleted
inserted
replaced
12:a59a7fd5be70 | 13:14f31e92372f |
---|---|
26 #include "xia-inhibitor.h" | 26 #include "xia-inhibitor.h" |
27 #include "xia-icon.h" | 27 #include "xia-icon.h" |
28 | 28 |
29 G_DEFINE_TYPE(XiaIcon, xia_icon, G_TYPE_OBJECT) | 29 G_DEFINE_TYPE(XiaIcon, xia_icon, G_TYPE_OBJECT) |
30 | 30 |
31 #define XIA_ICON_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE((obj), \ | 31 #define XIA_ICON_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE((obj),\ |
32 XIA_TYPE_ICON, XiaIconPrivate)) | 32 XIA_TYPE_ICON, XiaIconPrivate)) |
33 | 33 |
34 struct _XiaIconPrivate | 34 struct _XiaIconPrivate { |
35 { | |
36 XiaInhibitor *inhibitor; | 35 XiaInhibitor *inhibitor; |
37 | 36 |
38 GtkStatusIcon *status_icon; | 37 GtkStatusIcon *status_icon; |
39 GtkWidget *status_icon_popup_menu; | 38 GtkWidget *status_icon_popup_menu; |
40 GtkWidget *check_menu_item_inhibited; | 39 GtkWidget *check_menu_item_inhibited; |
41 }; | 40 }; |
42 | 41 |
43 static void icon_update(XiaIcon *self); | 42 static void icon_update(XiaIcon *self); |
44 static GtkWidget* icon_popup_menu_create(XiaIcon *self); | 43 static GtkWidget * icon_popup_menu_create(XiaIcon *self); |
45 static void icon_popup_menu_popup(GtkStatusIcon *status_icon, guint button, | 44 static void icon_popup_menu_popup(GtkStatusIcon *status_icon, guint button, |
46 guint activate_time, gpointer user_data); | 45 guint activate_time, gpointer user_data); |
47 static void icon_activate(GtkStatusIcon *status_icon, gpointer user_data); | 46 static void icon_activate(GtkStatusIcon *status_icon, gpointer user_data); |
48 | 47 |
49 static void | 48 static void |
50 xia_icon_finalize(GObject *gobject) | 49 xia_icon_finalize(GObject *gobject) |
51 { | 50 { |
52 XiaIcon *self = XIA_ICON(gobject); | 51 XiaIcon *self = XIA_ICON(gobject); |