#include <gtk/gtk.h>
int main(int argc, char* argv[]) {
  gtk_init(&argc, &argv);
  gtk_rc_parse_string(
      "style \"link-color-redefine\" {"
      "  GtkWidget::link-color = shade (0.5, @fg_color)\n"
      "}\n"
      "class \"GtkWidget\" style \"link-color-redefine\"");

  GtkWidget* widget = gtk_window_new(GTK_WINDOW_TOPLEVEL);
  gtk_widget_show(widget);

  const GdkColor* link_color = NULL;
  gtk_widget_style_get(widget, "link-color", &link_color, NULL);
  printf("Parsed color: %s\n", gdk_color_to_string(link_color));
  return 0;
}
