Temporary Fix #207:Symlink doesn't show in Sort Manager
authorColin Clark <colin.clark@cclark.uk>
Fri, 19 May 2017 18:22:55 +0000 (19:22 +0100)
committerColin Clark <colin.clark@cclark.uk>
Fri, 19 May 2017 18:22:55 +0000 (19:22 +0100)
https://github.com/BestImageViewer/geeqie/issues/207

This fix simply delays showing the sort manager until the user opens it,
by which time setup has been completed.

src/rcfile.c

index e6663f9..3fc9c59 100644 (file)
@@ -1063,12 +1063,17 @@ static void options_parse_layout(GQParserData *parser_data, GMarkupParseContext
 
                options_parse_func_push(parser_data, options_parse_bar, NULL, lw->bar);
                }
+#if 0
+/* FIXME: The sort manager and desktop files are set up in the idle loop.
+ * Setup is not yet completed when the layout is first displayed.
+ */
        else if (g_ascii_strcasecmp(element_name, "bar_sort") == 0)
                {
                GtkWidget *bar = bar_sort_new_from_config(lw, attribute_names, attribute_values);
                layout_bar_sort_set(lw, bar);
                options_parse_func_push(parser_data, options_parse_leaf, NULL, NULL);
                }
+#endif
        else if (g_ascii_strcasecmp(element_name, "toolbar") == 0)
                {
                options_parse_func_push(parser_data, options_parse_toolbar_and_statusbar, NULL, NULL);