Mercurial > dwindows
comparison gtk3/dw.c @ 1921:bc70b3e9dbb1
Fix building with MDI on earlier than GTK 3.12.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 29 Sep 2016 00:18:19 +0000 |
parents | 78a65391dbcb |
children | 3c60066cb16f |
comparison
equal
deleted
inserted
replaced
1920:31179c5a3c5a | 1921:bc70b3e9dbb1 |
---|---|
404 GdkCursor *cursor; | 404 GdkCursor *cursor; |
405 GdkPixbuf *pixbuf; | 405 GdkPixbuf *pixbuf; |
406 | 406 |
407 child_box = gtk_event_box_new (); | 407 child_box = gtk_event_box_new (); |
408 child_widget_box = gtk_event_box_new (); | 408 child_widget_box = gtk_event_box_new (); |
409 #if GTK_CHECK_VERSION(3,12,0) | |
409 gtk_widget_set_margin_start(child_widget_box, 2); | 410 gtk_widget_set_margin_start(child_widget_box, 2); |
411 #else | |
412 gtk_widget_set_margin_left(child_widget_box, 2); | |
413 #endif | |
410 top_event_box = gtk_event_box_new (); | 414 top_event_box = gtk_event_box_new (); |
411 bottom_event_box = gtk_event_box_new (); | 415 bottom_event_box = gtk_event_box_new (); |
412 grid = gtk_grid_new (); | 416 grid = gtk_grid_new (); |
413 gtk_grid_set_row_spacing(GTK_GRID(grid), 1); | 417 gtk_grid_set_row_spacing(GTK_GRID(grid), 1); |
414 gtk_grid_set_column_spacing(GTK_GRID(grid), 1); | 418 gtk_grid_set_column_spacing(GTK_GRID(grid), 1); |