Re: gtk_widget_modify_bg - does not work
- From: kuba <kuba linux pl>
- To: gtk-app-devel-list gnome org
- Subject: Re: gtk_widget_modify_bg - does not work
- Date: Wed, 16 Oct 2013 09:18:38 +0200
In function main:
int main(int argc, char** argv)
{
gtk_init(&argc,&argv);
....
....
return 0;
}
what am I doing wrong in Following Code
GtkWidget *button1;
void click_button1(GtkWidget *widget, gpointer data)
{
GdkColor color;
color.red = 27000;
color.green = 30325;
color.blue = 34181;
gtk_widget_modify_bg(GTK_WIDGET(widget), GTK_STATE_NORMAL, &color);
}
some_callback_func()
{ ....
gtk_button_clicked(GTK_BUTTON(button1));
..... }
main()
{
button1 = gtk_button_new_with_label ("button1");
g_signal_connect(G_OBJECT(button1), "clicked", G_CALLBACK(click_button1), NULL);
gtk_widget_show_all (window);
gtk_main();
return 0;
}
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]