New package: gcolor2-0.4

This commit is contained in:
Christian Neukirchen 2015-01-17 16:05:58 +01:00
parent 6152200911
commit 93a3fa6451
2 changed files with 62 additions and 0 deletions

View file

@ -0,0 +1,44 @@
--- src/callbacks.c 2005-07-12 14:06:12.000000000 -0400
+++ src/callbacks.c 2007-02-17 19:19:38.000000000 -0500
@@ -4,6 +4,9 @@
#include <gtk/gtk.h>
#include <stdio.h>
+#include <string.h>
+#include <glib.h>
+#include <glib/gprintf.h>
#include "callbacks.h"
#include "interface.h"
@@ -172,6 +175,9 @@ void on_copy_color_to_clipboard_activate
gtk_clipboard_set_text (cb, hex, strlen (hex));
}
+void add_rgb_file (gchar *filename, gchar *type);
+gchar* get_system_file (void);
+
void on_show_system_colors_activate (GtkMenuItem *menuitem, gpointer user_data)
{
if (gtk_check_menu_item_get_active (GTK_CHECK_MENU_ITEM (menuitem)))
@@ -266,6 +272,8 @@ void on_save_button_clicked (GtkButton *
gtk_widget_destroy (savedialog);
}
+void add_list_color (gchar *spec, gchar *name, gchar *type, gboolean is_new_color);
+
void add_color_to_treeview ()
{
GtkTreeView *treeview;
--- src/main.c 2005-07-11 10:55:49.000000000 -0400
+++ src/main.c 2007-02-17 19:18:23.000000000 -0500
@@ -4,6 +4,10 @@
#include <gtk/gtk.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <glib.h>
+#include <glib/gprintf.h>
#include "interface.h"
#include "support.h"

18
srcpkgs/gcolor2/template Normal file
View file

@ -0,0 +1,18 @@
# Template file for 'gcolor2'
pkgname=gcolor2
version=0.4
revision=1
build_style=gnu-configure
hostmakedepends="pkg-config perl-XML-Parser"
makedepends="gtk+-devel"
depends=""
short_desc="A simple GTK+2 color selector"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-2"
homepage="http://downloads.sourceforge.net/sourceforge/gcolor2/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=89bd6c6d27ba5a679ec60057de8497855072f520515b490e5986fc3509774f23
post_extract() {
sed -i 's/\[:space:\]/[&]/g' configure
}