rpms/xchat-gnome/devel xchat-gnome-fix_away_command.patch, NONE, 1.1 xchat-gnome.spec, 1.45, 1.46

Brian Pepple (bpepple) fedora-extras-commits at redhat.com
Sun Nov 18 00:27:28 UTC 2007


Author: bpepple

Update of /cvs/pkgs/rpms/xchat-gnome/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv11605

Modified Files:
	xchat-gnome.spec 
Added Files:
	xchat-gnome-fix_away_command.patch 
Log Message:
* Sat Nov 17 2007 Brian Pepple <bpepple at fedoraproject.org> - 0.18-6
- Add patch to fix away/back command.


xchat-gnome-fix_away_command.patch:

--- NEW FILE xchat-gnome-fix_away_command.patch ---
--- trunk/src/fe-gnome/main-window.c	2007/09/09 22:34:50	2560
+++ trunk/src/fe-gnome/main-window.c	2007/09/09 22:56:32	2561
@@ -532,11 +532,20 @@
 		g_free (buf);
 
 		/* Away */
-		if (current_sess->server->is_away != gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (away))) {
-			if (all) {
-				handle_command (current_sess, "allserv away", FALSE);
+		gboolean away = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (away));
+		if (current_sess->server->is_away != away) {
+			if (away) {
+				if (all) {
+					handle_command (current_sess, "allserv away", FALSE);
+				} else {
+					handle_command (current_sess, "away", FALSE);
+				}
 			} else {
-				handle_command (current_sess, "away", FALSE);	
+				if (all) {
+					handle_command (current_sess, "allserv back", FALSE);
+				} else {
+					handle_command (current_sess, "back", FALSE);
+				}
 			}
 		}
 	}


Index: xchat-gnome.spec
===================================================================
RCS file: /cvs/pkgs/rpms/xchat-gnome/devel/xchat-gnome.spec,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -r1.45 -r1.46
--- xchat-gnome.spec	14 Sep 2007 01:15:03 -0000	1.45
+++ xchat-gnome.spec	18 Nov 2007 00:26:55 -0000	1.46
@@ -1,6 +1,6 @@
 Name:           xchat-gnome
 Version:        0.18
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        GNOME front-end to xchat
 
 Group:          Applications/Internet
@@ -9,6 +9,7 @@
 Source0:        http://flapjack.navi.cx/releases/%{name}/%{name}-%{version}.tar.bz2
 Patch0:		%{name}-%{version}-config.patch
 Patch1:		%{name}-%{version}-reconnect.patch
+Patch2:		%{name}-fix_away_command.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:	openssl-devel
@@ -43,6 +44,7 @@
 %setup -q -n %{name}-%{version}
 %patch0 -p1 -b .config
 %patch1 -p1 -b .reconnect
+%patch2 -p1 -b .away
 
 
 %build
@@ -128,6 +130,9 @@
 
 
 %changelog
+* Sat Nov 17 2007 Brian Pepple <bpepple at fedoraproject.org> - 0.18-6
+- Add patch to fix away/back command.
+
 * Thu Sep 13 2007 Brian Pepple <bpepple at fedoraproject.org> - 0.18-5
 - Add patch to fix reconnect bug. (#225408)
 




More information about the fedora-extras-commits mailing list