diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2010-08-07 15:27:41 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2010-08-07 15:27:41 +0000 |
commit | 45332ad110982aeadf56e7e731397b7e17a452e1 (patch) | |
tree | a640433127eaa4b49aa123cf850e187b0d51a092 /graphics/gcolor2 | |
parent | 7b25f5400e9af5e48ea49f51cdb240ad7e04543b (diff) |
Notes
Diffstat (limited to 'graphics/gcolor2')
-rw-r--r-- | graphics/gcolor2/Makefile | 2 | ||||
-rw-r--r-- | graphics/gcolor2/files/patch-src_callbacks.c | 19 | ||||
-rw-r--r-- | graphics/gcolor2/files/patch-src_main.c | 40 |
3 files changed, 54 insertions, 7 deletions
diff --git a/graphics/gcolor2/Makefile b/graphics/gcolor2/Makefile index 644248c06f3f..e8f8d3bd8f8e 100644 --- a/graphics/gcolor2/Makefile +++ b/graphics/gcolor2/Makefile @@ -7,7 +7,7 @@ PORTNAME= gcolor2 PORTVERSION= 0.4 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= graphics gnome MASTER_SITES= SF diff --git a/graphics/gcolor2/files/patch-src_callbacks.c b/graphics/gcolor2/files/patch-src_callbacks.c index c1982e0631c9..6ec835507a63 100644 --- a/graphics/gcolor2/files/patch-src_callbacks.c +++ b/graphics/gcolor2/files/patch-src_callbacks.c @@ -1,9 +1,16 @@ - -$FreeBSD$ - ---- src/callbacks.c.orig -+++ src/callbacks.c -@@ -166,9 +166,10 @@ +--- src/callbacks.c.orig 2010-06-21 22:33:40.000000000 +0200 ++++ src/callbacks.c 2010-06-21 22:38:00.000000000 +0200 +@@ -9,6 +9,9 @@ + #include "interface.h" + #include "support.h" + ++/* missing headers on original file */ ++#include <string.h> ++#include <glib/gprintf.h> + + GtkWidget *savedialog; + gchar *colorname; +@@ -166,9 +169,10 @@ void on_copy_color_to_clipboard_activate (GtkMenuItem *menuitem, gpointer user_data) { gchar* hex; diff --git a/graphics/gcolor2/files/patch-src_main.c b/graphics/gcolor2/files/patch-src_main.c new file mode 100644 index 000000000000..25b9e509ac73 --- /dev/null +++ b/graphics/gcolor2/files/patch-src_main.c @@ -0,0 +1,40 @@ +--- src/main.c.orig 2010-06-21 22:38:34.000000000 +0200 ++++ src/main.c 2010-06-21 22:36:23.000000000 +0200 +@@ -9,6 +9,11 @@ + #include "support.h" + #include "callbacks.h" + ++/* missing headers on original file */ ++#include <stdlib.h> ++#include <string.h> ++#include <glib/gprintf.h> ++ + GtkListStore *liststore; + GdkWindow *gdkwin; + gchar *user_filename; +@@ -48,8 +53,6 @@ + + void add_list_color (gchar *spec, gchar *name, gchar *type, gboolean is_new_color) + { +- GdkPixmap *pixmap; +- GdkBitmap *mask; + GdkPixbuf *buf; + GtkTreeIter iter; + +@@ -103,7 +106,7 @@ + gchar *name; + gchar buffer[512]; + gchar spec[8]; +- gint r, g, b, lr, lg, lb; ++ gint r, g, b, lr=0, lg=0, lb=0; + + fp = fopen (filename, "r"); + if (!fp) +@@ -140,7 +143,6 @@ + GtkTreeViewColumn *column; + GtkWidget *treeview; + GtkTreeSelection *select; +- gchar *buf; + + #ifdef ENABLE_NLS + bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR); |