[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Colour Browser



On Fri, 2004-04-23 at 17:44 +0100, Iain Mac Donald wrote:

> Now there is no applet that I know of in gnome 2.4 nor is there one
> coming in 2.6 that can do the same thing. Unless someone knows
> otherwise?

I'm not aware of an applet. If you use Screem for your CSS then it has a
color selector that can grab colours from anywhere.

Alternatively build the attached source with

gcc -o colorsel color.c `pkg-config gtk+-2.0 --cflags --libs`

and you will have a nice simple colour selector.



David

-- 
Make your website SCREEM - Site Creating & Editing EnvironMent

URL:  http://www.screem.org/
Mail: david@screem.org

#include <gtk/gtk.h>

int main()
{
	GtkDialog *dialog;
	GtkWidget *sel;
	
	gtk_init( NULL, NULL );

	dialog = GTK_DIALOG( gtk_dialog_new_with_buttons( "Pick a Color",
			NULL, 0, GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
			NULL ) );
	sel = gtk_color_selection_new();
	gtk_box_pack_start( GTK_BOX( dialog->vbox ), sel, TRUE, TRUE, 6 );
	g_signal_connect( G_OBJECT( dialog ), "response",
			G_CALLBACK( gtk_main_quit ), NULL );

	gtk_widget_show_all( GTK_WIDGET( dialog ) );

	gtk_main();

	return 0;
}

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: