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:
parent
ef0a297d9b
commit
243ddcb671
@ -4,6 +4,9 @@
|
|||||||
Remove unused variables (patch by Eugene Arshinov, thanks).
|
Remove unused variables (patch by Eugene Arshinov, thanks).
|
||||||
* src/stash.c:
|
* src/stash.c:
|
||||||
Remove unused variables (suggested by Eugene Arshinov).
|
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>
|
2011-05-12 Colomban Wendling <colomban(at)geany(dot)org>
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<meta name="generator" content="Docutils 0.7: http://docutils.sourceforge.net/" />
|
<meta name="generator" content="Docutils 0.7: http://docutils.sourceforge.net/" />
|
||||||
<title>Geany</title>
|
<title>Geany</title>
|
||||||
<meta name="authors" content="Enrico Tröger Nick Treleaven Frank Lanitz" />
|
<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">
|
<style type="text/css">
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -139,7 +139,7 @@ Stylesheet for Geany's documentation based on a version of John Gabriele.
|
|||||||
<br />Nick Treleaven
|
<br />Nick Treleaven
|
||||||
<br />Frank Lanitz</td></tr>
|
<br />Frank Lanitz</td></tr>
|
||||||
<tr><th class="docinfo-name">Date:</th>
|
<tr><th class="docinfo-name">Date:</th>
|
||||||
<td>$Date$</td></tr>
|
<td>2011-05-03</td></tr>
|
||||||
<tr><th class="docinfo-name">Version:</th>
|
<tr><th class="docinfo-name">Version:</th>
|
||||||
<td>0.21</td></tr>
|
<td>0.21</td></tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
@ -5082,11 +5082,11 @@ available with GTK 2.12 or above).</td>
|
|||||||
<tr><td>allow_always_save</td>
|
<tr><td>allow_always_save</td>
|
||||||
<td>Whether files can be saved always, even if
|
<td>Whether files can be saved always, even if
|
||||||
they don't have any changes. By default,
|
they don't have any changes. By default,
|
||||||
the Save buttons and menu items are
|
the Save button and menu item are disabled
|
||||||
disabled when a file is unchanged. When
|
when a file is unchanged. When setting
|
||||||
setting this option to true, the Save
|
this option to true, the Save button and
|
||||||
buttons and menu items are always active
|
menu item are always active and files can
|
||||||
and files can be saved.</td>
|
be saved.</td>
|
||||||
<td>false</td>
|
<td>false</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td>compiler_tab_autoscroll</td>
|
<tr><td>compiler_tab_autoscroll</td>
|
||||||
@ -6580,7 +6580,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-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.
|
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>
|
||||||
|
@ -4373,11 +4373,11 @@ show_symbol_list_expanders Whether to show or hide the small expander t
|
|||||||
available with GTK 2.12 or above).
|
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 buttons and menu items are
|
the Save button and menu item are disabled
|
||||||
disabled when a file is unchanged. When
|
when a file is unchanged. When setting
|
||||||
setting this option to true, the Save
|
this option to true, the Save button and
|
||||||
buttons and menu items are always active
|
menu item are always active and files can
|
||||||
and files can be saved.
|
be saved.
|
||||||
compiler_tab_autoscroll Whether to automatically scroll to the true
|
compiler_tab_autoscroll Whether to automatically scroll to the true
|
||||||
last line of the output in the Compiler
|
last line of the output in the Compiler
|
||||||
tab.
|
tab.
|
||||||
|
@ -661,7 +661,7 @@ void ui_save_buttons_toggle(gboolean enable)
|
|||||||
gboolean dirty_tabs = FALSE;
|
gboolean dirty_tabs = FALSE;
|
||||||
|
|
||||||
if (ui_prefs.allow_always_save)
|
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[0], enable);
|
||||||
ui_widget_set_sensitive(widgets.save_buttons[1], enable);
|
ui_widget_set_sensitive(widgets.save_buttons[1], enable);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user