change button-color



Hi,
can someone tell my why I'm not able to change the color of my button
???

    gc = gdk_gc_new(Logoffbutton->window);
    gdk_gc_set_background (gc, &color);
    gdk_gc_set_foreground (gc, &color);
    gtk_widget_show( Logoffbutton );
    gdk_gc_destroy(gc);

--
Mit freundlichen Grüßen
Oliver Bücker

 Forschungszentrum Juelich
      52425 Juelich





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