#include <gtk/gtk.h>

int main (int argv, char * argc[])
{
  GtkWidget *window;
  GtkWidget *frame;
  GtkWidget *label;
  GtkCssProvider *css;
  GtkStyleContext *context;
  GError *error;

  gtk_init (&argv, &argc);

  window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  frame = gtk_frame_new ("Label");
  gtk_widget_set_name (frame, "myframe");
  label = gtk_label_new ("Another label");
  gtk_container_add (GTK_CONTAINER (frame), label);
  gtk_container_add (GTK_CONTAINER (window), frame);

  css = gtk_css_provider_new ();
  gtk_css_provider_load_from_data (css, "GtkFrame#myframe { -GtkFrame-label-pad: 0; -GtkFrame-label-side-pad: 0; padding: 0; }", -1, &error);

  gtk_style_context_add_provider_for_screen (gdk_screen_get_default(), GTK_STYLE_PROVIDER (css), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
  context = gtk_widget_get_style_context (frame);

  gtk_widget_show_all (window);

  g_signal_connect (window, "delete_event", gtk_main_quit, NULL);

  gtk_main ();

  return 0;
}
