Remove GTK version check for setting show_symbol_list_expanders
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5843 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
a465369044
commit
ebca594c3c
@ -5068,8 +5068,7 @@ scrollbars are hidden completely.</td>
|
||||
</tr>
|
||||
<tr><td>show_symbol_list_expanders</td>
|
||||
<td>Whether to show or hide the small expander
|
||||
icons on the symbol list treeview (only
|
||||
available with GTK 2.12 or above).</td>
|
||||
icons on the symbol list treeview.</td>
|
||||
<td>true</td>
|
||||
</tr>
|
||||
<tr><td>allow_always_save</td>
|
||||
@ -6573,7 +6572,7 @@ USE OR PERFORMANCE OF THIS SOFTWARE.</p>
|
||||
<div class="footer">
|
||||
<hr class="footer" />
|
||||
<a class="reference external" href="geany.txt">View document source</a>.
|
||||
Generated on: 2011-06-13 20:17 UTC.
|
||||
Generated on: 2011-06-13 20:23 UTC.
|
||||
Generated by <a class="reference external" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference external" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source.
|
||||
|
||||
</div>
|
||||
|
@ -4360,8 +4360,7 @@ show_editor_scrollbars Whether to display scrollbars. If set to t
|
||||
scrollbars are hidden completely.
|
||||
**Interface related**
|
||||
show_symbol_list_expanders Whether to show or hide the small expander true
|
||||
icons on the symbol list treeview (only
|
||||
available with GTK 2.12 or above).
|
||||
icons on the symbol list treeview.
|
||||
allow_always_save Whether files can be saved always, even if false
|
||||
they don't have any changes. By default,
|
||||
the Save button and menu item are disabled
|
||||
|
@ -136,16 +136,11 @@ static void prepare_taglist(GtkWidget *tree, GtkTreeStore *store)
|
||||
g_signal_connect(tree, "key-press-event",
|
||||
G_CALLBACK(sidebar_key_press_cb), NULL);
|
||||
|
||||
if (gtk_check_version(2, 12, 0) == NULL)
|
||||
{
|
||||
g_object_set(tree, "show-expanders", interface_prefs.show_symbol_list_expanders, NULL);
|
||||
if (! interface_prefs.show_symbol_list_expanders)
|
||||
g_object_set(tree, "level-indentation", 10, NULL);
|
||||
/* Tooltips */
|
||||
g_object_set(tree,
|
||||
"has-tooltip", TRUE,
|
||||
"tooltip-column", SYMBOLS_COLUMN_TOOLTIP, NULL);
|
||||
}
|
||||
gtk_tree_view_set_show_expanders(tree, interface_prefs.show_symbol_list_expanders);
|
||||
if (! interface_prefs.show_symbol_list_expanders)
|
||||
gtk_tree_view_set_level_indentation(tree, 10);
|
||||
/* Tooltips */
|
||||
gtk_tree_view_set_tooltip_column(tree, SYMBOLS_COLUMN_TOOLTIP);
|
||||
|
||||
/* selection handling */
|
||||
selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(tree));
|
||||
|
Loading…
x
Reference in New Issue
Block a user