]> git.0d.be Git - empathy.git/commitdiff
Prefix "Empathy" to the notification enum.
authorXavier Claessens <xclaesse@src.gnome.org>
Fri, 30 Jan 2009 17:08:35 +0000 (17:08 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 30 Jan 2009 17:08:35 +0000 (17:08 +0000)
svn path=/trunk/; revision=2304

src/empathy-chat-window.c
src/empathy-misc.h
src/empathy-status-icon.c

index 83f9c81666cafa96491302442a03d9337c1de06e..d7c1a398fd3440247182c2ee998b38963390c4b7 100644 (file)
@@ -845,13 +845,13 @@ static void
 chat_window_notification_closed_cb (NotifyNotification *notify,
                                    NotificationData *cb_data)
 {
-       int reason = 0;
+       EmpathyNotificationClosedReason reason = 0;
        EmpathyChatWindowPriv *priv = GET_PRIV (cb_data->window);
 
 #ifdef notify_notification_get_closed_reason
        reason = notify_notification_get_closed_reason (notify);
 #endif
-       if (reason == NOTIFICATION_CLOSED_DISMISSED) {
+       if (reason == EMPATHY_NOTIFICATION_CLOSED_DISMISSED) {
                empathy_chat_window_present_chat (cb_data->chat);
        }
 
index 0d0613048ec95c8652aefbdcf67c0ab6f312f51f..aaa743ca637ce6565055f1c0cdaa06bb9c433d5f 100644 (file)
@@ -33,12 +33,12 @@ G_BEGIN_DECLS
 
 /* FIXME: this should *really* belong to libnotify. */
 typedef enum {
-       NOTIFICATION_CLOSED_INVALID = 0,
-       NOTIFICATION_CLOSED_EXPIRED = 1,
-       NOTIFICATION_CLOSED_DISMISSED = 2,
-       NOTIFICATION_CLOSED_PROGRAMMATICALY = 3,
-       NOTIFICATION_CLOSED_RESERVED = 4
-} NotificationClosedReason;
+       EMPATHY_NOTIFICATION_CLOSED_INVALID = 0,
+       EMPATHY_NOTIFICATION_CLOSED_EXPIRED = 1,
+       EMPATHY_NOTIFICATION_CLOSED_DISMISSED = 2,
+       EMPATHY_NOTIFICATION_CLOSED_PROGRAMMATICALY = 3,
+       EMPATHY_NOTIFICATION_CLOSED_RESERVED = 4
+} EmpathyNotificationClosedReason;
 
 gboolean    empathy_notification_is_enabled  (void);
 GdkPixbuf * empathy_misc_get_pixbuf_for_notification (EmpathyContact *contact,
index f6496003e3f5bc74a9f4ae6a3589d5ceb7a752e5..97eab7c29c2d858b8ee8f2aafb25eca746878067 100644 (file)
@@ -84,7 +84,7 @@ status_icon_notification_closed_cb (NotifyNotification *notification,
                                    EmpathyStatusIcon  *icon)
 {
        EmpathyStatusIconPriv *priv = GET_PRIV (icon);
-       int reason = 1;
+       EmpathyNotificationClosedReason reason = 0;
 
 #ifdef notify_notification_get_closed_reason
        reason = notify_notification_get_closed_reason (notification);
@@ -101,7 +101,7 @@ status_icon_notification_closed_cb (NotifyNotification *notification,
        /* the notification has been closed by the user, see the
         * DesktopNotification spec.
         */
-       if (reason == NOTIFICATION_CLOSED_DISMISSED) {
+       if (reason == EMPATHY_NOTIFICATION_CLOSED_DISMISSED) {
                /* use an idle here, as this callback is called from a
                 * DBus signal handler inside libnotify, and we might call
                 * a *_run_* method when activating the event.