rpms/ngspice/devel ngspice-18-help.patch, NONE, 1.1 import.log, 1.1, 1.2 ngspice.spec, 1.15, 1.16
Chitlesh GOORAH
chitlesh at fedoraproject.org
Sat Feb 21 23:55:20 UTC 2009
- Previous message (by thread): rpms/kernel/F-9 linux-2.6-ext4-ENOSPC-debug.patch, NONE, 1.1.2.1 config-x86-generic, 1.38.2.1, 1.38.2.2 kernel.spec, 1.891.2.27, 1.891.2.28
- Next message (by thread): rpms/kernel/F-10 linux-2.6-ext4-ENOSPC-debug.patch, NONE, 1.1.2.2 config-x86-generic, 1.55.2.1, 1.55.2.2 kernel.spec, 1.1206.2.31, 1.1206.2.32
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: chitlesh
Update of /cvs/pkgs/rpms/ngspice/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv22087/devel
Modified Files:
import.log ngspice.spec
Added Files:
ngspice-18-help.patch
Log Message:
help window creash fix
ngspice-18-help.patch:
--- NEW FILE ngspice-18-help.patch ---
--- src/frontend/help/x11disp.c 2005-09-06 22:21:09.000000000 +0200
+++ x11disp.c 2009-02-21 18:58:58.000000000 +0100
@@ -2,7 +2,7 @@
Copyright 1990 Regents of the University of California. All rights reserved.
Author: Jeffrey M. Hsu
Modified 1999 Emmanuel Rouat
-$Id: x11disp.c,v 1.3 2005/09/06 20:21:09 sjborley Exp $
+$Id: x11disp.c,v 1.4 2009/02/20 18:25:21 h_vogt Exp $
**********/
#include <config.h>
@@ -25,6 +25,24 @@
static topic *topics = NULL;
void newtopic(Widget w, caddr_t client_data, caddr_t call_data), delete(Widget w, caddr_t client_data, caddr_t call_data), quit(Widget w, caddr_t client_data, caddr_t call_data);
static void sputline(char *buf, char *s);
+/* atoms for catching window delet by WM x-button */
+static Atom atom_wm_delete_window;
+static Atom atom_wm_protocols;
+static Display *display;
+
+/* callback function for catching window deletion by WM x-button */
+static void handle_wm_messages(Widget w, XtPointer client_data, XEvent *event, Boolean *cont) {
+ topic *top = (topic *) client_data;
+
+ if (event->type == ClientMessage
+ && event->xclient.message_type == atom_wm_protocols
+ && event->xclient.data.l[0] == atom_wm_delete_window)
+ {
+ hlp_killfamily(top);
+ hlp_fixchildren(top);
+ }
+}
+
/* Create a new window... */
bool
@@ -191,6 +209,14 @@
top->winlink = topics;
topics = top;
+
+ /* WM_DELETE_WINDOW protocol */
+ display = XtDisplay(top->shellwidget);
+ atom_wm_protocols = XInternAtom(display, "WM_PROTOCOLS", False);
+ atom_wm_delete_window = XInternAtom(display, "WM_DELETE_WINDOW", False);
+ XtAddEventHandler(top->shellwidget, NoEventMask, True, handle_wm_messages, top);
+ XSetWMProtocols(display, XtWindow(top->shellwidget), &atom_wm_delete_window, 1);
+
return (TRUE);
}
Index: import.log
===================================================================
RCS file: /cvs/pkgs/rpms/ngspice/devel/import.log,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- import.log 11 Jan 2009 22:45:15 -0000 1.1
+++ import.log 21 Feb 2009 23:54:48 -0000 1.2
@@ -1 +1,2 @@
ngspice-18-1_fc10:HEAD:ngspice-18-1.fc10.src.rpm:1231713849
+ngspice-18-2_fc10:HEAD:ngspice-18-2.fc10.src.rpm:1235260319
Index: ngspice.spec
===================================================================
RCS file: /cvs/pkgs/rpms/ngspice/devel/ngspice.spec,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- ngspice.spec 11 Jan 2009 22:45:15 -0000 1.15
+++ ngspice.spec 21 Feb 2009 23:54:49 -0000 1.16
@@ -1,6 +1,6 @@
Name: ngspice
Version: 18
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A mixed level/signal circuit simulator
License: BSD
@@ -10,6 +10,8 @@
Source0: http://ovh.dl.sourceforge.net/sourceforge/%{name}/ng-spice-rework-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Patch0: ngspice-18-help.patch
+
BuildRequires: readline-devel, libXext-devel, libpng-devel, libICE-devel
BuildRequires: libXaw-devel, mesa-libGL-devel, libXt-devel
@@ -51,6 +53,7 @@
%prep
%setup -q -n ng-spice-rework-%{version}
+%patch0 -p0 -b .help
%build
%ifarch x86_64 sparc64 ppc64 amd64
@@ -64,6 +67,8 @@
> src/spinit.in
%endif
+./autogen.sh
+
%configure \
--enable-xgraph \
--enable-xspice \
@@ -130,6 +135,9 @@
%doc Stuarts_Poly_Notes FAQ DEVICES ANALYSES
%Changelog
+* Sat Feb 21 2009 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> 18-2
+- x11 windows (help and plot) fixes #RHBZ 481525
+
* Sat Jan 10 2009 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> 18-1
- new upstream release
- Previous message (by thread): rpms/kernel/F-9 linux-2.6-ext4-ENOSPC-debug.patch, NONE, 1.1.2.1 config-x86-generic, 1.38.2.1, 1.38.2.2 kernel.spec, 1.891.2.27, 1.891.2.28
- Next message (by thread): rpms/kernel/F-10 linux-2.6-ext4-ENOSPC-debug.patch, NONE, 1.1.2.2 config-x86-generic, 1.55.2.1, 1.55.2.2 kernel.spec, 1.1206.2.31, 1.1206.2.32
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list