]> git.0d.be Git - empathy.git/commitdiff
Don't warning if we try to load a NULL icon.
authorXavier Claessens <xclaesse@gmail.com>
Mon, 15 Oct 2007 09:51:07 +0000 (09:51 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Mon, 15 Oct 2007 09:51:07 +0000 (09:51 +0000)
2007-10-15  Xavier Claessens  <xclaesse@gmail.com>

* libempathy-gtk/empathy-ui-utils.c: Don't warning if we try to load
a NULL icon.

* data/Makefile.am:
* data/aim.profile:
* data/sofiasip.profile: Add AIM and SIP profiles. Fixes bug #457740
(Jamey Hicks).

svn path=/trunk/; revision=376

ChangeLog
data/Makefile.am
data/aim.profile [new file with mode: 0644]
data/sofiasip.profile [new file with mode: 0644]
libempathy-gtk/empathy-ui-utils.c

index 0a5ac11b7680efe83f996d084df84c96e3f20961..5a1940654375611cc25d0507e17fb2107be1c6d8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2007-10-15  Xavier Claessens  <xclaesse@gmail.com>
+
+       * libempathy-gtk/empathy-ui-utils.c: Don't warning if we try to load
+       a NULL icon.
+
+       * data/Makefile.am:
+       * data/aim.profile:
+       * data/sofiasip.profile: Add AIM and SIP profiles. Fixes bug #457740
+       (Jamey Hicks).
+
 2007-10-13  Xavier Claessens  <xclaesse@gmail.com>
 
        * libempathy-gtk/empathy-chat.c: Set chat state to ACTIVE when receiving
index b30b08d360731bf1ba69e06352221ed1260d205c..964abc78e9f62e5841ec4cfe7950c11b967fe5df 100644 (file)
@@ -6,7 +6,9 @@ profile_DATA =                          \
        gtalk.profile                   \
        salut.profile                   \
        irc.profile                     \
-       msn.profile
+       msn.profile                     \
+       sofiasip.profile                \
+       aim.profile
 
 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
 
diff --git a/data/aim.profile b/data/aim.profile
new file mode 100644 (file)
index 0000000..281e7bb
--- /dev/null
@@ -0,0 +1,7 @@
+[Profile]
+Manager=haze
+Protocol=aim
+DisplayName=AIM
+ConfigurationUI = aim
+Capabilities = chat-p2p, supports-alias
+
diff --git a/data/sofiasip.profile b/data/sofiasip.profile
new file mode 100644 (file)
index 0000000..32018cf
--- /dev/null
@@ -0,0 +1,11 @@
+[Profile]
+Manager=sofiasip
+Protocol=sip
+DisplayName=SofiaSIP
+ConfigurationUI = sofiasip
+Capabilities = chat-p2p, chat-room, chat-room-list, voice-p2p, split-account, registration-ui, supports-avatars, supports-alias
+DefaultAccountDomain = sip.org
+SupportsInvisible = 0
+VCardField = X-SIP
+VCardDefault = true
+Default-ignore-ssl-errors = 1
index fe032c9ee72f22840f33ac383f65f9fef1c209f1..eabdc0a4607763ef1c5752ce12efc5bd9aa4b1cc 100644 (file)
@@ -530,6 +530,10 @@ empathy_pixbuf_from_icon_name (const gchar *icon_name,
        gint           w, h;
        gint           size = 48;
 
+       if (!icon_name) {
+               return NULL;
+       }
+
        theme = gtk_icon_theme_get_default ();
 
        if (gtk_icon_size_lookup (icon_size, &w, &h)) {