File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -136,11 +136,11 @@ calculate_num_cols (AppResizer * resizer, gint avail_width)
136
136
GtkTable * table = GTK_TABLE (resizer -> cached_tables_list -> data );
137
137
GList * children = gtk_container_get_children (GTK_CONTAINER (table ));
138
138
GtkWidget * table_element = GTK_WIDGET (children -> data );
139
- GtkAllocation allocation ;
139
+ gint natural_width ;
140
140
g_list_free (children );
141
141
142
- gtk_widget_get_allocation (table_element , & allocation );
143
- resizer -> cached_element_width = allocation . width ;
142
+ gtk_widget_get_preferred_width (table_element , NULL , & natural_width );
143
+ resizer -> cached_element_width = natural_width ;
144
144
resizer -> cached_table_spacing = gtk_table_get_default_col_spacing (table );
145
145
}
146
146
You can’t perform that action at this time.
0 commit comments