Fix ups for dialog-commodity

This commit is contained in:
Robert Fewell 2017-06-18 15:12:11 +01:00
parent 4a81e94b66
commit 84e3b303f4
2 changed files with 26 additions and 7 deletions

View File

@ -992,10 +992,12 @@ gnc_ui_build_commodity_dialog(const char * selected_namespace,
retval->table = GTK_WIDGET(gtk_builder_get_object (builder, "edit_table"));
sec_label = GTK_WIDGET(gtk_builder_get_object (builder, "security_label"));
gtk_container_child_get(GTK_CONTAINER(retval->table), sec_label,
"bottom-attach", &retval->comm_section_top, NULL);
"top-attach", &retval->comm_section_top, NULL);
widget = GTK_WIDGET(gtk_builder_get_object (builder, "quote_label"));
gtk_container_child_get(GTK_CONTAINER(retval->table), widget,
"top-attach", &retval->comm_section_bottom, NULL);
gtk_container_child_get(GTK_CONTAINER(retval->table),
retval->user_symbol_entry, "top-attach",
&retval->comm_symbol_line, NULL);
@ -1029,12 +1031,11 @@ gnc_ui_build_commodity_dialog(const char * selected_namespace,
}
else
{
guint row;
gtk_grid_set_row_spacing(GTK_GRID(retval->table), 0);
widget = GTK_WIDGET(gtk_builder_get_object (builder, "unknown_source_alignment"));
gtk_container_child_get(GTK_CONTAINER(retval->table), widget,
"top-attach", &row, NULL);
gtk_widget_destroy(widget);
widget = GTK_WIDGET(gtk_builder_get_object (builder, "unknown_source_box"));
gtk_widget_destroy(widget);
}
@ -1072,10 +1073,12 @@ gnc_ui_build_commodity_dialog(const char * selected_namespace,
/* Determine the price quote of the dialog */
widget = GTK_WIDGET(gtk_builder_get_object (builder, "fq_warning_alignment"));
gtk_container_child_get(GTK_CONTAINER(retval->table), widget,
"bottom-attach", &retval->fq_section_top, NULL);
widget = GTK_WIDGET(gtk_builder_get_object (builder, "quote_tz_alignment"));
"top-attach", &retval->fq_section_top, NULL);
widget = GTK_WIDGET(gtk_builder_get_object (builder, "bottom_alignment"));
gtk_container_child_get(GTK_CONTAINER(retval->table), widget,
"bottom-attach", &retval->fq_section_bottom, NULL);
"top-attach", &retval->fq_section_bottom, NULL);
gnc_ui_update_fq_info (retval);
}

View File

@ -658,6 +658,22 @@
<property name="top_attach">3</property>
</packing>
</child>
<child>
<object class="GtkAlignment" id="bottom_alignment">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<placeholder/>
</child>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">16</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>