summaryrefslogtreecommitdiff
path: root/misc/gcolor2/callbacks.c.2.patch
blob: 1c86587163f4bda3aa71c046bb0faa4fb2c5da3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

$FreeBSD: ports/graphics/gcolor2/files/patch-src_callbacks.c,v 1.4 2007/10/24 23:35:51 marcus Exp $

--- src/callbacks.c.orig
+++ src/callbacks.c
@@ -166,9 +166,10 @@
 void on_copy_color_to_clipboard_activate (GtkMenuItem *menuitem, gpointer user_data)
 {
 	gchar* hex;
+	GtkClipboard *cb;
 	
 	hex = hex_value (colorvalue);
-	GtkClipboard *cb = gtk_clipboard_get (gdk_atom_intern ("PRIMARY", FALSE));
+	cb = gtk_clipboard_get (gdk_atom_intern ("PRIMARY", FALSE));
 	gtk_clipboard_set_text (cb, hex, strlen (hex));
 }