<object class="GtkLabel" id="bc_be_label">
<property name="visible">True</property>
<property name="xalign">0</property>
- <property name="label" translatable="yes">Backend engine:</property>
+ <property name="label" translatable="yes">Backend:</property>
</object>
<packing>
<property name="x_options">GTK_FILL</property>
<object class="GtkSizeGroup" id="page_sizegroup">
<property name="mode">both</property>
<widgets>
- <widget name="shadow_page_vbox"/>
- <widget name="lsize_page_vbox"/>
- <widget name="size_page_vbox"/>
- <widget name="bc_page_vbox"/>
- <widget name="data_page_vbox"/>
- <widget name="img_page_vbox"/>
- <widget name="fill_page_vbox"/>
- <widget name="line_page_vbox"/>
- <widget name="text_page_vbox"/>
<widget name="edit_page_vbox"/>
+ <widget name="text_page_vbox"/>
+ <widget name="line_page_vbox"/>
+ <widget name="fill_page_vbox"/>
+ <widget name="img_page_vbox"/>
+ <widget name="data_page_vbox"/>
+ <widget name="bc_page_vbox"/>
+ <widget name="size_page_vbox"/>
+ <widget name="lsize_page_vbox"/>
+ <widget name="shadow_page_vbox"/>
</widgets>
</object>
<object class="GtkSizeGroup" id="width_sizegroup">
<widgets>
- <widget name="notebook"/>
<widget name="title_hbox"/>
+ <widget name="notebook"/>
</widgets>
</object>
</interface>
gl_object_editor_prepare_bc_page (glObjectEditor *editor)
{
GList *backends = NULL;
+ GList *p;
gl_debug (DEBUG_EDITOR, "START");
backends = gl_barcode_backends_get_backend_list ();
gl_combo_util_set_strings (GTK_COMBO_BOX(editor->priv->bc_backend_combo),
backends);
+
+ /* Kludge: Load styles for each backend once, so that when they are loaded for real the size of
+ * of the widget has already been established and does't cause the sidebar to change size. */
+ for ( p = backends; p != NULL; p=p->next )
+ {
+ gl_object_editor_load_bc_styles (editor, gl_barcode_backends_backend_name_to_id ((gchar *)p->data));
+ }
+
gl_barcode_backends_free_backend_list (backends);
/* Modify widgets */
editor->priv->stop_signals = TRUE;
styles = gl_barcode_backends_get_styles_list (backend_id);
- gl_combo_util_set_strings (GTK_COMBO_BOX(editor->priv->bc_style_combo),
- styles);
+ gl_combo_util_set_strings (GTK_COMBO_BOX(editor->priv->bc_style_combo), styles);
gl_barcode_backends_free_styles_list (styles);
editor->priv->stop_signals = FALSE;