| 50 context = gtk_widget_get_style_context(window); |
50 context = gtk_widget_get_style_context(window); |
| 51 |
51 |
| 52 gtk_style_context_get(context, GTK_STATE_FLAG_NORMAL, |
52 gtk_style_context_get(context, GTK_STATE_FLAG_NORMAL, |
| 53 GTK_STYLE_PROPERTY_BACKGROUND_COLOR, &bg, |
53 GTK_STYLE_PROPERTY_BACKGROUND_COLOR, &bg, |
| 54 NULL); |
54 NULL); |
| 55 g_object_unref(G_OBJECT(window)); |
55 gtk_widget_destroy(window); |
| 56 |
56 |
| 57 g_once_init_leave(&background, bg); |
57 g_once_init_leave(&background, bg); |
| 58 } |
58 } |
| 59 |
59 |
| 60 *color = *background; |
60 *color = *background; |