Date: Mon, 26 Oct 1998 00:31:09 -0800 (PST) From: Nakai@technologist.com To: freebsd-gnats-submit@FreeBSD.ORG Subject: ports/8455: Fixed port: gtkicq Message-ID: <199810260831.AAA17072@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 8455 >Category: ports >Synopsis: Fixed port: gtkicq >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Oct 26 00:40:01 PST 1998 >Last-Modified: >Originator: Yukihiro Nakai >Organization: Apricot Computer, Japan >Release: 2.2.7 >Environment: >Description: >How-To-Repeat: I fixed the gtkicq port to show window properly. I add patch to fix to set pointer null and avoid SIGFPE. Yukihiro Nakai -------------- diff -ruN gtkicq.orig/patches/patch-ad gtkicq/patches/patch-ad --- gtkicq.orig/patches/patch-ad Thu Jan 1 09:00:00 1970 +++ gtkicq/patches/patch-ad Mon Oct 26 17:23:54 1998 @@ -0,0 +1,61 @@ +--- src/gtkicq.c.orig Mon Oct 19 00:40:41 1998 ++++ src/gtkicq.c Mon Oct 26 17:20:32 1998 +@@ -45,6 +45,10 @@ + #include "applet.h" + #endif + ++#ifdef __FreeBSD__ ++#include <floatingpoint.h> ++#endif ++ + #include "xpms/gtkicq-blank.xpm" + #include "xpms/gtkicq-message.xpm" + #include "xpms/gtkicq-url.xpm" +@@ -995,6 +999,10 @@ + + char *sys[2] = { "", "System" }; + ++#ifdef __FreeBSD__ ++ fpsetmask(fpgetmask() & ~(FP_X_DZ|FP_X_INV)); ++#endif ++ + sal.online = 0; + sal.offline = 0; + +@@ -1006,6 +1014,9 @@ + gtk_init( &argc, &argv ); + #else + ++ sal.lb_userwin = NULL; ++ sal.lb_syswin = NULL; ++ sal.window = NULL; + make_applet( argc, argv, &sal ); + + if( applet_toggle == FALSE ) +@@ -1055,6 +1066,7 @@ + + gtk_window_set_title(GTK_WINDOW ( main_window ), "GtkICQ"); + ++ printf("gtk_widget_show\n"); + gtk_widget_show( main_window ); + + menubar = main_menu( &sal ); +@@ -1141,6 +1153,7 @@ + #endif + + /* Initialize the XPMs */ ++ printf("gtkicq.c: gtk_widget_get_style\n"); + style = gtk_widget_get_style( sal.lb_userwin ); + icon_blank_pixmap = gdk_pixmap_create_from_xpm_d( main_window->window, + &icon_blank_bitmap, +@@ -1368,5 +1381,10 @@ + gtk_main(); + + Quit_ICQ( sal.sok ); ++ ++#ifdef __FreeBSD__ ++ fpresetsticky(FP_X_DZ|FP_X_INV); ++ fpsetmask(FP_X_DZ|FP_X_INV); ++#endif + return 0; + } >Fix: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810260831.AAA17072>