Missed specifying Gtk3.12 version for set_margin_end

This commit is contained in:
Robert Fewell 2017-07-03 12:33:51 +01:00
parent 54eaf755cc
commit bafbb838f5
2 changed files with 8 additions and 2 deletions

View File

@ -289,8 +289,11 @@ gnc_dense_cal_init(GncDenseCal *dcal)
gtk_box_set_homogeneous (GTK_BOX (hbox), FALSE);
gtk_widget_set_halign (label, GTK_ALIGN_END);
#if GTK_CHECK_VERSION(3,12,0)
gtk_widget_set_margin_end (label, 5);
#else
gtk_widget_set_margin_right (label, 5);
#endif
gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, 0);
gtk_box_pack_start(GTK_BOX(hbox), GTK_WIDGET(dcal->view_options), FALSE, FALSE, 0);

View File

@ -3014,8 +3014,11 @@ gnc_main_window_open_page (GncMainWindow *window,
G_CALLBACK(gnc_main_window_close_page), page);
gtk_box_pack_start (GTK_BOX (tab_hbox), close_button, FALSE, FALSE, 0);
#if GTK_CHECK_VERSION(3,12,0)
gtk_widget_set_margin_end (GTK_WIDGET(close_button), 5);
#else
gtk_widget_set_margin_right (GTK_WIDGET(close_button), 5);
#endif
g_object_set_data (G_OBJECT (page), PLUGIN_PAGE_CLOSE_BUTTON, close_button);
}