[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 1.9.4 tab-hilight patch
> i will submit updated patch for 1.9.4
>
> Nehal
actually it is changed quite a bit and after looking at 1.9.4 source
i realized the old patch would definitely not work, due to some
minor changes
i just assumed it would patch though.... my bad...
anyways, im attaching an updated version
it should patch fine, this is actually a little cleaner
than the one i submitted for 1.8.4
give feedback, thx
Nehal
diff -ur -x po xchat-1.9.4/src/common/inbound.c xchat-modified/src/common/inbound.c
--- xchat-1.9.4/src/common/inbound.c 2002-10-08 20:50:41.000000000 -0700
+++ xchat-modified/src/common/inbound.c 2002-11-07 21:55:09.000000000 -0800
@@ -288,6 +288,11 @@
return;
sess->highlight_tab = TRUE;
+ if (sess != current_tab)
+ {
+ sess->msg_said = TRUE;
+ sess->new_data = FALSE;
+ }
user = find_name (sess, from);
if (user)
diff -ur -x po xchat-1.9.4/src/common/xchat.h xchat-modified/src/common/xchat.h
--- xchat-1.9.4/src/common/xchat.h 2002-11-02 22:27:47.000000000 -0800
+++ xchat-modified/src/common/xchat.h 2002-11-07 21:57:18.000000000 -0800
@@ -306,8 +306,9 @@
int userlisthidden;
int type;
- int new_data:1; /* new data avail? (red tab) */
+ int new_data:1; /* new data avail? (purple tab) */
int nick_said:1; /* your nick mentioned? (blue tab) */
+ int msg_said:1; /* new msg available? (red tab) */
int ignore_date:1;
int ignore_mode:1;
int ignore_names:1;
diff -ur -x po xchat-1.9.4/src/fe-gtk/fe-gtk.c xchat-modified/src/fe-gtk/fe-gtk.c
--- xchat-1.9.4/src/fe-gtk/fe-gtk.c 2002-11-04 19:53:53.000000000 -0800
+++ xchat-modified/src/fe-gtk/fe-gtk.c 2002-11-07 20:41:37.000000000 -0800
@@ -565,7 +565,11 @@
sess->gui->is_tab && !sess->nick_said)
{
sess->new_data = TRUE;
- tab_style (sess->gui->tab, red_style);
+ if (sess->msg_said) {
+ tab_style (sess->gui->tab, red_style);
+ } else {
+ tab_style (sess->gui->tab, purple_style);
+ }
}
}
diff -ur -x po xchat-1.9.4/src/fe-gtk/maingui.c xchat-modified/src/fe-gtk/maingui.c
--- xchat-1.9.4/src/fe-gtk/maingui.c 2002-10-23 04:52:56.000000000 -0700
+++ xchat-modified/src/fe-gtk/maingui.c 2002-11-07 20:41:37.000000000 -0800
@@ -70,6 +70,7 @@
GtkStyle *red_style = NULL;
GtkStyle *blue_style;
+GtkStyle *purple_style;
GtkStyle *input_style;
@@ -84,6 +85,9 @@
blue_style = gtk_style_copy (style);
blue_style->fg[0] = colors[12];
+
+ purple_style = gtk_style_copy (style);
+ purple_style->fg[0] = colors[6];
}
/* change the little icon to the left of your nickname */
@@ -230,9 +234,10 @@
sess->server->server_session = sess;
}
- if (sess->new_data || sess->nick_said)
+ if (sess->new_data || sess->nick_said || sess->msg_said)
{
sess->nick_said = FALSE;
+ sess->msg_said = FALSE;
sess->new_data = FALSE;
tab_style (sess->gui->tab, NULL);
}
diff -ur -x po xchat-1.9.4/src/fe-gtk/maingui.h xchat-modified/src/fe-gtk/maingui.h
--- xchat-1.9.4/src/fe-gtk/maingui.h 2002-06-30 08:21:28.000000000 -0700
+++ xchat-modified/src/fe-gtk/maingui.h 2002-11-07 20:41:37.000000000 -0800
@@ -1,5 +1,6 @@
extern GtkStyle *red_style;
extern GtkStyle *blue_style;
+extern GtkStyle *purple_style;
extern GtkStyle *input_style;
extern GtkWidget *main_menu;