Disabling the debug info of GtkColorSelection with palette
- From: "George Panagopoulos" <panagopoulosalexandrou hotmail com>
- To: gtk-app-devel-list gnome org
- Subject: Disabling the debug info of GtkColorSelection with palette
- Date: Mon, 08 May 2006 15:50:30 +0300
Hi list, when I use GtkColorSelection with palette = TRUE and the user
clicks on a color on the palette some debug (or whatever) info appears on
the terminal.
Code:
void
on_color1_activate(GtkMenuItem *menuitem,
gpointer user_data)
{
GtkColorSelection *colorsel;
GtkWidget *colorseldlg;
int response;
colorseldlg = gtk_color_selection_dialog_new("Select Color");
colorsel = GTK_COLOR_SELECTION(GTK_COLOR_SELECTION_DIALOG(colorseldlg)->
colorsel);
gtk_color_selection_set_has_palette(colorsel, TRUE);
gtk_color_selection_set_current_color(colorsel, &color_of_textview1);
g_signal_connect(G_OBJECT(colorsel), "color_changed",
G_CALLBACK(on_color_changed), (gpointer) colorsel);
gtk_window_set_transient_for(GTK_WINDOW(colorseldlg),
GTK_WINDOW(window1));
response = gtk_dialog_run(GTK_DIALOG(colorseldlg));
if(response == GTK_RESPONSE_OK)
gtk_color_selection_get_current_color(colorsel, &color_of_textview1);
else
gtk_widget_modify_text(textview1, GTK_STATE_NORMAL,
&color_of_textview1);
gtk_widget_destroy(colorseldlg);
}
void on_color_changed(GtkWidget *widget, GtkColorSelection *colorsel)
{
GdkColor color;
gtk_color_selection_get_current_color(colorsel, &color);
gtk_widget_modify_text(textview1, GTK_STATE_NORMAL, &color);
}
How can I disable it?
Thanks,
George.
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]