pidgin/plugins/disco/gtkdisco.c

changeset 39040
65ed0e8e8229
parent 39037
5014cd8d58e3
child 39785
aa7e3b71802d
equal deleted inserted replaced
39039:355cbde54abf 39040:65ed0e8e8229
120 g_return_val_if_fail(size != NULL, NULL); 120 g_return_val_if_fail(size != NULL, NULL);
121 121
122 tmp_size = g_strdup_printf("%sx%s", size, size); 122 tmp_size = g_strdup_printf("%sx%s", size, size);
123 123
124 if (service->type == XMPP_DISCO_SERVICE_TYPE_GATEWAY && service->gateway_type) { 124 if (service->type == XMPP_DISCO_SERVICE_TYPE_GATEWAY && service->gateway_type) {
125 char *tmp = g_strconcat(service->gateway_type, ".png", NULL); 125 char *tmp = g_strconcat("im-", service->gateway_type,
126 ".png", NULL);
127
126 filename = g_build_filename(PURPLE_DATADIR, 128 filename = g_build_filename(PURPLE_DATADIR,
127 "pixmaps", "pidgin", "protocols", size, tmp, NULL); 129 "pidgin", "icons", "hicolor", tmp_size, "apps",
130 tmp, NULL);
128 g_free(tmp); 131 g_free(tmp);
129 #if 0 132 #if 0
130 } else if (service->type == XMPP_DISCO_SERVICE_TYPE_USER) { 133 } else if (service->type == XMPP_DISCO_SERVICE_TYPE_USER) {
131 filename = g_build_filename(PURPLE_DATADIR, 134 filename = g_build_filename(PURPLE_DATADIR,
132 "pixmaps", "pidgin", "status", size, "person.png", NULL); 135 "pixmaps", "pidgin", "status", size, "person.png", NULL);

mercurial