1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-25 10:42:18 -05:00

plugin-tray finally works, disable xtray

This commit is contained in:
berkeviktor@aol.com 2010-05-22 03:45:43 +02:00
parent 44e50a5c1c
commit 989d5b38d0
5 changed files with 30 additions and 66 deletions

View File

@ -21,9 +21,9 @@ nmake -f makefile.mak
::cd ..\tcl ::cd ..\tcl
::nmake -f makefile.mak clean ::nmake -f makefile.mak clean
::nmake -f makefile.mak ::nmake -f makefile.mak
cd ..\xtray ::cd ..\xtray
nmake -f makefile.mak clean ::nmake -f makefile.mak clean
nmake -f makefile.mak ::nmake -f makefile.mak
cd ..\..\build cd ..\..\build
set PATH=%PATH%;c:\mozilla-build\build\xchat-dev32\bin set PATH=%PATH%;c:\mozilla-build\build\xchat-dev32\bin
call compile-po-files.bat call compile-po-files.bat

View File

@ -21,9 +21,9 @@ nmake -f makefile.mak
cd ..\tcl cd ..\tcl
nmake -f makefile.mak clean nmake -f makefile.mak clean
nmake -f makefile.mak nmake -f makefile.mak
cd ..\xtray ::cd ..\xtray
nmake -f makefile.mak clean ::nmake -f makefile.mak clean
nmake -f makefile.mak ::nmake -f makefile.mak
cd ..\..\build cd ..\..\build
call compile-po-files.bat call compile-po-files.bat
cd ..\build cd ..\build

View File

@ -36,6 +36,6 @@ xcopy /S /I ..\plugins\ewc\xcewc.dll %XCHAT_DEST%\plugins\
xcopy /S /I ..\plugins\perl\xcperl.dll %XCHAT_DEST%\plugins\ xcopy /S /I ..\plugins\perl\xcperl.dll %XCHAT_DEST%\plugins\
::xcopy /S /I ..\plugins\python\xcpython.dll %XCHAT_DEST%\plugins\ ::xcopy /S /I ..\plugins\python\xcpython.dll %XCHAT_DEST%\plugins\
::xcopy /S /I ..\plugins\tcl\xctcl.dll %XCHAT_DEST%\plugins\ ::xcopy /S /I ..\plugins\tcl\xctcl.dll %XCHAT_DEST%\plugins\
xcopy /S /I ..\plugins\xtray\xtray.dll %XCHAT_DEST%\plugins\ ::xcopy /S /I ..\plugins\xtray\xtray.dll %XCHAT_DEST%\plugins\
xcopy /S /I ..\po\locale %XCHAT_DEST%\locale xcopy /S /I ..\po\locale %XCHAT_DEST%\locale
xcopy /S /I %GTK_BIN%\..\share\locale %XCHAT_DEST%\share\locale xcopy /S /I %GTK_BIN%\..\share\locale %XCHAT_DEST%\share\locale

View File

@ -36,6 +36,6 @@ xcopy /S /I ..\plugins\ewc\xcewc.dll %XCHAT_DEST%\plugins\
xcopy /S /I ..\plugins\perl\xcperl.dll %XCHAT_DEST%\plugins\ xcopy /S /I ..\plugins\perl\xcperl.dll %XCHAT_DEST%\plugins\
::xcopy /S /I ..\plugins\python\xcpython.dll %XCHAT_DEST%\plugins\ ::xcopy /S /I ..\plugins\python\xcpython.dll %XCHAT_DEST%\plugins\
xcopy /S /I ..\plugins\tcl\xctcl.dll %XCHAT_DEST%\plugins\ xcopy /S /I ..\plugins\tcl\xctcl.dll %XCHAT_DEST%\plugins\
xcopy /S /I ..\plugins\xtray\xtray.dll %XCHAT_DEST%\plugins\ ::xcopy /S /I ..\plugins\xtray\xtray.dll %XCHAT_DEST%\plugins\
xcopy /S /I ..\po\locale %XCHAT_DEST%\locale xcopy /S /I ..\po\locale %XCHAT_DEST%\locale
xcopy /S /I %GTK_BIN%\..\share\locale %XCHAT_DEST%\share\locale xcopy /S /I %GTK_BIN%\..\share\locale %XCHAT_DEST%\share\locale

View File

@ -75,7 +75,7 @@ diff -ruN --strip-trailing-cr xchat-wdk.orig/plugins/tcl/tclplugin.c xchat-wdk/p
#include "xchat-plugin.h" #include "xchat-plugin.h"
diff -ruN --strip-trailing-cr xchat-wdk.orig/src/common/cfgfiles.c xchat-wdk/src/common/cfgfiles.c diff -ruN --strip-trailing-cr xchat-wdk.orig/src/common/cfgfiles.c xchat-wdk/src/common/cfgfiles.c
--- xchat-wdk.orig/src/common/cfgfiles.c 2009-01-02 06:56:12 +0100 --- xchat-wdk.orig/src/common/cfgfiles.c 2009-01-02 06:56:12 +0100
+++ xchat-wdk/src/common/cfgfiles.c 2010-05-21 21:42:51 +0200 +++ xchat-wdk/src/common/cfgfiles.c 2010-05-22 03:42:11 +0200
@@ -17,7 +17,6 @@ @@ -17,7 +17,6 @@
*/ */
@ -84,28 +84,19 @@ diff -ruN --strip-trailing-cr xchat-wdk.orig/src/common/cfgfiles.c xchat-wdk/src
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
@@ -670,14 +669,19 @@ @@ -676,7 +675,12 @@
prefs.autoopendccchatwindow = 1;
prefs.userhost = 1;
prefs.gui_url_mod = 4; /* ctrl */
- prefs.gui_tray = 1;
+ prefs.gui_tray = 0;
prefs.gui_pane_left_size = 100;
prefs.gui_pane_right_size = 100;
prefs.mainwindow_save = 1; prefs.mainwindow_save = 1;
prefs.bantype = 2; prefs.bantype = 2;
prefs.input_balloon_time = 20; prefs.input_balloon_time = 20;
+ /* taskbar alerts crash xchat-wdk only on x86 */ + /* taskbar alerts crash xchat-wdk only on x86 */
+#ifdef _WIN64 +#ifdef _WIN64
prefs.input_flash_priv = prefs.input_flash_hilight = 1; prefs.input_flash_priv = prefs.input_flash_hilight = 1;
- prefs.input_tray_priv = prefs.input_tray_hilight = 1;
+#else +#else
+ prefs.input_flash_priv = prefs.input_flash_hilight = prefs.input_flash_chans = 0; + prefs.input_flash_priv = prefs.input_flash_hilight = prefs.input_flash_chans = 0;
+#endif +#endif
+ prefs.input_tray_priv = prefs.input_tray_hilight = prefs.input_tray_chans = 0; prefs.input_tray_priv = prefs.input_tray_hilight = 1;
prefs.autodccsend = 2; /* browse mode */ prefs.autodccsend = 2; /* browse mode */
#ifdef WIN32 #ifdef WIN32
prefs.identd = 1;
diff -ruN --strip-trailing-cr xchat-wdk.orig/src/common/chanopt.c xchat-wdk/src/common/chanopt.c diff -ruN --strip-trailing-cr xchat-wdk.orig/src/common/chanopt.c xchat-wdk/src/common/chanopt.c
--- xchat-wdk.orig/src/common/chanopt.c 2008-06-15 06:40:29 +0200 --- xchat-wdk.orig/src/common/chanopt.c 2008-06-15 06:40:29 +0200
+++ xchat-wdk/src/common/chanopt.c 2010-05-21 21:42:51 +0200 +++ xchat-wdk/src/common/chanopt.c 2010-05-21 21:42:51 +0200
@ -575,7 +566,7 @@ diff -ruN --strip-trailing-cr xchat-wdk.orig/src/fe-gtk/editlist.c xchat-wdk/src
#include <sys/stat.h> #include <sys/stat.h>
diff -ruN --strip-trailing-cr xchat-wdk.orig/src/fe-gtk/fe-gtk.c xchat-wdk/src/fe-gtk/fe-gtk.c diff -ruN --strip-trailing-cr xchat-wdk.orig/src/fe-gtk/fe-gtk.c xchat-wdk/src/fe-gtk/fe-gtk.c
--- xchat-wdk.orig/src/fe-gtk/fe-gtk.c 2010-05-16 05:20:22 +0200 --- xchat-wdk.orig/src/fe-gtk/fe-gtk.c 2010-05-16 05:20:22 +0200
+++ xchat-wdk/src/fe-gtk/fe-gtk.c 2010-05-21 21:42:51 +0200 +++ xchat-wdk/src/fe-gtk/fe-gtk.c 2010-05-22 03:35:00 +0200
@@ -19,7 +19,6 @@ @@ -19,7 +19,6 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
@ -601,22 +592,20 @@ diff -ruN --strip-trailing-cr xchat-wdk.orig/src/fe-gtk/fe-gtk.c xchat-wdk/src/f
#include "gtkutil.h" #include "gtkutil.h"
#include "maingui.h" #include "maingui.h"
#include "pixmaps.h" #include "pixmaps.h"
@@ -349,6 +351,7 @@ @@ -844,11 +846,11 @@
static int switch (info_type)
fe_idle (gpointer data)
{ {
+ /* disable tray icon case 0: /* native window pointer (for plugins) */
session *sess = sess_list->data; -#ifdef WIN32
+/*#ifdef WIN32
plugin_add (sess, NULL, NULL, tray_plugin_init, tray_plugin_deinit, NULL, FALSE); return GDK_WINDOW_HWND (sess->gui->window->window);
@@ -356,7 +359,7 @@ -#else
if (arg_minimize == 1) +#else*/
gtk_window_iconify (GTK_WINDOW (sess->gui->window)); return sess->gui->window;
else if (arg_minimize == 2) -#endif
- tray_toggle_visibility (FALSE); +/*#endif*/
+ tray_toggle_visibility (FALSE);*/ }
return NULL;
return 0;
} }
diff -ruN --strip-trailing-cr xchat-wdk.orig/src/fe-gtk/fe-gtk.h xchat-wdk/src/fe-gtk/fe-gtk.h diff -ruN --strip-trailing-cr xchat-wdk.orig/src/fe-gtk/fe-gtk.h xchat-wdk/src/fe-gtk/fe-gtk.h
--- xchat-wdk.orig/src/fe-gtk/fe-gtk.h 2008-06-08 09:58:58 +0200 --- xchat-wdk.orig/src/fe-gtk/fe-gtk.h 2008-06-08 09:58:58 +0200
@ -663,24 +652,6 @@ diff -ruN --strip-trailing-cr xchat-wdk.orig/src/fe-gtk/joind.c xchat-wdk/src/fe
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
diff -ruN --strip-trailing-cr xchat-wdk.orig/src/fe-gtk/maingui.c xchat-wdk/src/fe-gtk/maingui.c
--- xchat-wdk.orig/src/fe-gtk/maingui.c 2010-05-16 05:20:22 +0200
+++ xchat-wdk/src/fe-gtk/maingui.c 2010-05-21 21:42:51 +0200
@@ -1327,12 +1327,12 @@
gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1),
GTK_BUTTONBOX_END);
- if (minimize_button)
+ /*if (minimize_button)
{
button = gtk_button_new_with_mnemonic (_("_Minimize to Tray"));
gtk_widget_show (button);
gtk_dialog_add_action_widget (GTK_DIALOG (dialog), button, 1);
- }
+ }*/
button = gtk_button_new_from_stock ("gtk-cancel");
gtk_widget_show (button);
diff -ruN --strip-trailing-cr xchat-wdk.orig/src/fe-gtk/menu.c xchat-wdk/src/fe-gtk/menu.c diff -ruN --strip-trailing-cr xchat-wdk.orig/src/fe-gtk/menu.c xchat-wdk/src/fe-gtk/menu.c
--- xchat-wdk.orig/src/fe-gtk/menu.c 2010-05-16 06:24:24 +0200 --- xchat-wdk.orig/src/fe-gtk/menu.c 2010-05-16 06:24:24 +0200
+++ xchat-wdk/src/fe-gtk/menu.c 2010-05-21 21:42:51 +0200 +++ xchat-wdk/src/fe-gtk/menu.c 2010-05-21 21:42:51 +0200
@ -727,14 +698,11 @@ diff -ruN --strip-trailing-cr xchat-wdk.orig/src/fe-gtk/rawlog.c xchat-wdk/src/f
#include "fe-gtk.h" #include "fe-gtk.h"
diff -ruN --strip-trailing-cr xchat-wdk.orig/src/fe-gtk/setup.c xchat-wdk/src/fe-gtk/setup.c diff -ruN --strip-trailing-cr xchat-wdk.orig/src/fe-gtk/setup.c xchat-wdk/src/fe-gtk/setup.c
--- xchat-wdk.orig/src/fe-gtk/setup.c 2008-02-08 10:04:45 +0100 --- xchat-wdk.orig/src/fe-gtk/setup.c 2008-02-08 10:04:45 +0100
+++ xchat-wdk/src/fe-gtk/setup.c 2010-05-21 21:42:52 +0200 +++ xchat-wdk/src/fe-gtk/setup.c 2010-05-22 03:36:17 +0200
@@ -332,11 +332,16 @@ @@ -333,7 +333,11 @@
#ifndef WIN32
{ST_3OGGLE, N_("Show tray balloons on:"), 0, 0, (void *)balloonlist, 0}, {ST_3OGGLE, N_("Show tray balloons on:"), 0, 0, (void *)balloonlist, 0},
#endif #endif
- {ST_3OGGLE, N_("Blink tray icon on:"), 0, 0, (void *)trayblinklist, 0}, {ST_3OGGLE, N_("Blink tray icon on:"), 0, 0, (void *)trayblinklist, 0},
+ /* we don't use the xchat plugin-tray */
+ /* {ST_3OGGLE, N_("Blink tray icon on:"), 0, 0, (void *)trayblinklist, 0}, */
+ +
+ /* taskbar alerts crash xchat-wdk only on x86 */ + /* taskbar alerts crash xchat-wdk only on x86 */
+#ifdef _WIN64 +#ifdef _WIN64
@ -742,11 +710,7 @@ diff -ruN --strip-trailing-cr xchat-wdk.orig/src/fe-gtk/setup.c xchat-wdk/src/fe
+#endif +#endif
{ST_3OGGLE, N_("Make a beep sound on:"), 0, 0, (void *)beeplist, 0}, {ST_3OGGLE, N_("Make a beep sound on:"), 0, 0, (void *)beeplist, 0},
- {ST_TOGGLE, N_("Enable system tray icon"), P_OFFINTNL(gui_tray), 0, 0, 0}, {ST_TOGGLE, N_("Enable system tray icon"), P_OFFINTNL(gui_tray), 0, 0, 0},
+ /* {ST_TOGGLE, N_("Enable system tray icon"), P_OFFINTNL(gui_tray), 0, 0, 0}, */
{ST_HEADER, N_("Highlighted Messages"),0,0,0},
{ST_LABEL, N_("Highlighted messages are ones where your nickname is mentioned, but also:"), 0, 0, 0, 1},
diff -ruN --strip-trailing-cr xchat-wdk.orig/src/fe-gtk/sexy-spell-entry.c xchat-wdk/src/fe-gtk/sexy-spell-entry.c diff -ruN --strip-trailing-cr xchat-wdk.orig/src/fe-gtk/sexy-spell-entry.c xchat-wdk/src/fe-gtk/sexy-spell-entry.c
--- xchat-wdk.orig/src/fe-gtk/sexy-spell-entry.c 2006-07-17 07:51:02 +0200 --- xchat-wdk.orig/src/fe-gtk/sexy-spell-entry.c 2006-07-17 07:51:02 +0200
+++ xchat-wdk/src/fe-gtk/sexy-spell-entry.c 2010-05-21 21:42:52 +0200 +++ xchat-wdk/src/fe-gtk/sexy-spell-entry.c 2010-05-21 21:42:52 +0200