Do not allow 'Save All' even if 'allow_always_save' is set (patch by Dimitar Zhekov, thanks).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5815 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Enrico Tröger 2011-05-22 10:32:31 +00:00
parent ef0a297d9b
commit 243ddcb671
4 changed files with 17 additions and 14 deletions

View File

@ -4,6 +4,9 @@
Remove unused variables (patch by Eugene Arshinov, thanks).
* src/stash.c:
Remove unused variables (suggested by Eugene Arshinov).
* src/ui_utils.c, doc/geany.txt, doc/geany.html:
Do not allow 'Save All' even if 'allow_always_save' is set
(patch by Dimitar Zhekov, thanks).
2011-05-12 Colomban Wendling <colomban(at)geany(dot)org>

View File

@ -6,7 +6,7 @@
<meta name="generator" content="Docutils 0.7: http://docutils.sourceforge.net/" />
<title>Geany</title>
<meta name="authors" content="Enrico Tröger Nick Treleaven Frank Lanitz" />
<meta name="date" content="$Date$" />
<meta name="date" content="2011-05-03" />
<style type="text/css">
/*
@ -139,7 +139,7 @@ Stylesheet for Geany's documentation based on a version of John Gabriele.
<br />Nick Treleaven
<br />Frank Lanitz</td></tr>
<tr><th class="docinfo-name">Date:</th>
<td>$Date$</td></tr>
<td>2011-05-03</td></tr>
<tr><th class="docinfo-name">Version:</th>
<td>0.21</td></tr>
</tbody>
@ -5082,11 +5082,11 @@ available with GTK 2.12 or above).</td>
<tr><td>allow_always_save</td>
<td>Whether files can be saved always, even if
they don't have any changes. By default,
the Save buttons and menu items are
disabled when a file is unchanged. When
setting this option to true, the Save
buttons and menu items are always active
and files can be saved.</td>
the Save button and menu item are disabled
when a file is unchanged. When setting
this option to true, the Save button and
menu item are always active and files can
be saved.</td>
<td>false</td>
</tr>
<tr><td>compiler_tab_autoscroll</td>
@ -6580,7 +6580,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-05-03 18:39 UTC.
Generated on: 2011-05-22 10:30 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>

View File

@ -4373,11 +4373,11 @@ show_symbol_list_expanders Whether to show or hide the small expander t
available with GTK 2.12 or above).
allow_always_save Whether files can be saved always, even if false
they don't have any changes. By default,
the Save buttons and menu items are
disabled when a file is unchanged. When
setting this option to true, the Save
buttons and menu items are always active
and files can be saved.
the Save button and menu item are disabled
when a file is unchanged. When setting
this option to true, the Save button and
menu item are always active and files can
be saved.
compiler_tab_autoscroll Whether to automatically scroll to the true
last line of the output in the Compiler
tab.

View File

@ -661,7 +661,7 @@ void ui_save_buttons_toggle(gboolean enable)
gboolean dirty_tabs = FALSE;
if (ui_prefs.allow_always_save)
return;
enable = gtk_notebook_get_n_pages(GTK_NOTEBOOK(main_widgets.notebook)) > 0 ? TRUE : FALSE;
ui_widget_set_sensitive(widgets.save_buttons[0], enable);
ui_widget_set_sensitive(widgets.save_buttons[1], enable);