diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-03-22 03:24:07 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-03-22 03:24:07 +0800 |
commit | b746a9fcbf504435e9eac1547bfbd8563f5ce957 (patch) | |
tree | ca68d13d9ac94b0d2cd36dfa18aaf246690e8af7 | |
parent | 7d6681d88cd130b641d1db405dc6976d1106926b (diff) | |
download | marcuscom-ports-b746a9fcbf504435e9eac1547bfbd8563f5ce957.tar marcuscom-ports-b746a9fcbf504435e9eac1547bfbd8563f5ce957.tar.gz marcuscom-ports-b746a9fcbf504435e9eac1547bfbd8563f5ce957.tar.bz2 marcuscom-ports-b746a9fcbf504435e9eac1547bfbd8563f5ce957.tar.lz marcuscom-ports-b746a9fcbf504435e9eac1547bfbd8563f5ce957.tar.xz marcuscom-ports-b746a9fcbf504435e9eac1547bfbd8563f5ce957.tar.zst marcuscom-ports-b746a9fcbf504435e9eac1547bfbd8563f5ce957.zip |
Make sure libgtop is initialized before calling its functions.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@12175 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | net/gnome-nettool/Makefile | 3 | ||||
-rw-r--r-- | net/gnome-nettool/files/patch-src_main.c | 20 |
2 files changed, 22 insertions, 1 deletions
diff --git a/net/gnome-nettool/Makefile b/net/gnome-nettool/Makefile index 4bef6d9ae..6a245e29b 100644 --- a/net/gnome-nettool/Makefile +++ b/net/gnome-nettool/Makefile @@ -3,11 +3,12 @@ # Whom: Adam Weinberger <adamw@FreeBSD.org> # # $FreeBSD$ -# $MCom: ports/net/gnome-nettool/Makefile,v 1.47 2009/03/09 23:20:36 mezz Exp $ +# $MCom: ports/net/gnome-nettool/Makefile,v 1.48 2009/03/18 00:40:30 kwm Exp $ # PORTNAME= gnome-nettool PORTVERSION= 2.26.0 +PORTREVISION= 1 CATEGORIES= net gnome MASTER_SITES= GNOME DIST_SUBDIR= gnome2 diff --git a/net/gnome-nettool/files/patch-src_main.c b/net/gnome-nettool/files/patch-src_main.c new file mode 100644 index 000000000..473585c0a --- /dev/null +++ b/net/gnome-nettool/files/patch-src_main.c @@ -0,0 +1,20 @@ +--- src/main.c.orig 2009-03-21 15:21:51.000000000 -0400 ++++ src/main.c 2009-03-21 15:22:02.000000000 -0400 +@@ -120,6 +120,8 @@ main (int argc, char *argv[]) + textdomain (GETTEXT_PACKAGE); + #endif + ++ glibtop_init (); ++ + if (!gtk_init_with_args (&argc, &argv, NULL, options, NULL, &error)) { + g_print ("%s\n\n", error->message); + return -1; +@@ -228,8 +230,6 @@ main (int argc, char *argv[]) + + gtk_widget_show (window); + +- glibtop_init (); +- + gtk_main (); + + glibtop_close (); |