mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-20 11:48:30 -06:00
Change dialog-trans-assoc.glade
Make the association column to be the one that expands and also set the ellipsize to the start for the renderer.
This commit is contained in:
parent
63dfd18111
commit
0c667822cc
@ -525,7 +525,6 @@ gnc_assoc_dialog_create (GtkWindow *parent, AssocDialog *assoc_dialog)
|
||||
gtk_tree_view_column_set_title (tree_column, _("Relative"));
|
||||
gtk_tree_view_append_column (GTK_TREE_VIEW(assoc_dialog->view), tree_column);
|
||||
gtk_tree_view_column_set_alignment (tree_column, 0.5);
|
||||
gtk_tree_view_column_set_expand (tree_column, TRUE);
|
||||
cr = gtk_cell_renderer_pixbuf_new();
|
||||
gtk_tree_view_column_pack_start (tree_column, cr, TRUE);
|
||||
// connect 'active' and set 'xalign' property of the cell renderer
|
||||
@ -535,6 +534,10 @@ gnc_assoc_dialog_create (GtkWindow *parent, AssocDialog *assoc_dialog)
|
||||
g_signal_connect (assoc_dialog->view, "row-activated",
|
||||
G_CALLBACK(row_selected_cb), (gpointer)assoc_dialog);
|
||||
|
||||
// set the Associate column to be the one that expands
|
||||
tree_column = GTK_TREE_VIEW_COLUMN(gtk_builder_get_object (builder, "uri-entry"));
|
||||
gtk_tree_view_column_set_expand (tree_column, TRUE);
|
||||
|
||||
// Set grid lines option to preference
|
||||
gtk_tree_view_set_grid_lines (GTK_TREE_VIEW(assoc_dialog->view), gnc_tree_view_get_grid_lines_pref ());
|
||||
|
||||
|
@ -152,7 +152,9 @@
|
||||
<property name="title" translatable="yes">Association</property>
|
||||
<property name="alignment">0.5</property>
|
||||
<child>
|
||||
<object class="GtkCellRendererText" id="cellrenderertext3"/>
|
||||
<object class="GtkCellRendererText" id="cellrenderertext3">
|
||||
<property name="ellipsize">start</property>
|
||||
</object>
|
||||
<attributes>
|
||||
<attribute name="text">2</attribute>
|
||||
</attributes>
|
||||
|
Loading…
Reference in New Issue
Block a user