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:
Colomban Wendling 2011-06-13 20:43:17 +00:00
parent a465369044
commit ebca594c3c
3 changed files with 8 additions and 15 deletions

View File

@ -5068,8 +5068,7 @@ scrollbars are hidden completely.</td>
</tr> </tr>
<tr><td>show_symbol_list_expanders</td> <tr><td>show_symbol_list_expanders</td>
<td>Whether to show or hide the small expander <td>Whether to show or hide the small expander
icons on the symbol list treeview (only icons on the symbol list treeview.</td>
available with GTK 2.12 or above).</td>
<td>true</td> <td>true</td>
</tr> </tr>
<tr><td>allow_always_save</td> <tr><td>allow_always_save</td>
@ -6573,7 +6572,7 @@ USE OR PERFORMANCE OF THIS SOFTWARE.</p>
<div class="footer"> <div class="footer">
<hr class="footer" /> <hr class="footer" />
<a class="reference external" href="geany.txt">View document source</a>. <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. 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> </div>

View File

@ -4360,8 +4360,7 @@ show_editor_scrollbars Whether to display scrollbars. If set to t
scrollbars are hidden completely. scrollbars are hidden completely.
**Interface related** **Interface related**
show_symbol_list_expanders Whether to show or hide the small expander true show_symbol_list_expanders Whether to show or hide the small expander true
icons on the symbol list treeview (only icons on the symbol list treeview.
available with GTK 2.12 or above).
allow_always_save Whether files can be saved always, even if false allow_always_save Whether files can be saved always, even if false
they don't have any changes. By default, they don't have any changes. By default,
the Save button and menu item are disabled the Save button and menu item are disabled

View File

@ -136,16 +136,11 @@ static void prepare_taglist(GtkWidget *tree, GtkTreeStore *store)
g_signal_connect(tree, "key-press-event", g_signal_connect(tree, "key-press-event",
G_CALLBACK(sidebar_key_press_cb), NULL); G_CALLBACK(sidebar_key_press_cb), NULL);
if (gtk_check_version(2, 12, 0) == NULL) gtk_tree_view_set_show_expanders(tree, interface_prefs.show_symbol_list_expanders);
{ if (! interface_prefs.show_symbol_list_expanders)
g_object_set(tree, "show-expanders", interface_prefs.show_symbol_list_expanders, NULL); gtk_tree_view_set_level_indentation(tree, 10);
if (! interface_prefs.show_symbol_list_expanders) /* Tooltips */
g_object_set(tree, "level-indentation", 10, NULL); gtk_tree_view_set_tooltip_column(tree, SYMBOLS_COLUMN_TOOLTIP);
/* Tooltips */
g_object_set(tree,
"has-tooltip", TRUE,
"tooltip-column", SYMBOLS_COLUMN_TOOLTIP, NULL);
}
/* selection handling */ /* selection handling */
selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(tree)); selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(tree));