summaryrefslogtreecommitdiff
path: root/community/xchat-systray-integration/default-icons.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/xchat-systray-integration/default-icons.patch')
-rw-r--r--community/xchat-systray-integration/default-icons.patch37
1 files changed, 0 insertions, 37 deletions
diff --git a/community/xchat-systray-integration/default-icons.patch b/community/xchat-systray-integration/default-icons.patch
deleted file mode 100644
index db1f6bea5..000000000
--- a/community/xchat-systray-integration/default-icons.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-diff -Nur xchat-systray-integration-2.4.5.orig/src/menu.c xchat-systray-integration-2.4.5/src/menu.c
---- xchat-systray-integration-2.4.5.orig/src/menu.c 2004-04-30 12:38:10.000000000 +0000
-+++ xchat-systray-integration-2.4.5/src/menu.c 2005-06-09 16:30:54.609907253 +0000
-@@ -91,8 +91,8 @@
- char temp[200];
- if (filename)
- {
-- if (imagepath) sprintf(temp,"%s/Menu/%s", imagepath ,filename);
-- else sprintf(temp,"%s/Menu/%s", xchat_get_info(ph, "xchatdir"),filename);
-+ if (imagepath && 0 == access(imagepath, X_OK)) sprintf(temp,"%s/Menu/%s", imagepath ,filename);
-+ else sprintf(temp,"/usr/share/xchat-systray-integration/Menu/%s", filename);
- tempbuffer= gdk_pixbuf_new_from_file(temp,NULL);
- return tempbuffer;
- }
-diff -Nur xchat-systray-integration-2.4.5.orig/src/systray.c xchat-systray-integration-2.4.5/src/systray.c
---- xchat-systray-integration-2.4.5.orig/src/systray.c 2004-04-30 12:38:10.000000000 +0000
-+++ xchat-systray-integration-2.4.5/src/systray.c 2005-06-09 16:30:47.170967680 +0000
-@@ -117,7 +117,7 @@
- edit=TRUE;
- go_change=TRUE;
- go_identify=TRUE;
-- strcpy(imagepath,xchat_get_info(ph, "xchatdir"));
-+ strcpy(imagepath, "/usr/share/xchat-systray-integration");
-
- }
- // events handling
-@@ -190,8 +190,8 @@
- char temp[200];
- if (filename && type)
- {
-- if (imagepath) sprintf(temp,"%s/%s/%s", imagepath ,type,filename);
-- else sprintf(temp,"%s/%s/%s", xchat_get_info(ph, "xchatdir"),type,filename);
-+ if (imagepath && 0 == access(imagepath, X_OK)) sprintf(temp,"%s/%s/%s", imagepath ,type,filename);
-+ else sprintf(temp,"/usr/share/xchat-systray-integration/%s/%s", type,filename);
- #ifdef _WIN32_
- tempbuffer= ((HICON)LoadImage( tray_inst, temp, IMAGE_ICON, 16, 16, LR_LOADFROMFILE ));
- #else