#include <gtk/gtk.h>

void
main (int argc, char **argv)
{
  GtkWidget *window;
  GdkScreen *screen;
  GtkCssProvider *provider;
  GtkStyleContext *context;
  GdkColor *link;
  GdkColor *link_visited;

  gtk_init (&argc, &argv);


  provider = gtk_css_provider_new ();
  gtk_css_provider_load_from_data (provider,
                                   "@define-color _link_color #00ff00;\
                                   * {\
                                   -GtkWidget-link-color: @_link_color;\
                                   }", -1, NULL);
  screen = gdk_screen_get_default ();
  gtk_style_context_add_provider_for_screen (screen,
                                             GTK_STYLE_PROVIDER (provider), GTK_STYLE_PROVIDER_PRIORITY_USER);

  window = gtk_window_new (GTK_WINDOW_TOPLEVEL);

  context = gtk_widget_get_style_context (window);
  gtk_style_context_get_style (context, "link-color", &link, NULL);

  gtk_widget_show_all (window);
  gtk_main ();
}
