Matthew Brush
77a900b976
Revert "Use a sane default window size if config is missing"
...
This reverts commit 00473dff4e95c6d1b128edfc26038f4e98cbddf8.
2011-12-11 13:01:19 -08:00
Matthew Brush
36498ddfae
Revert "Ensure Geany's default size takes effect (oops)"
...
This reverts commit d090e7dd854e5eec99c8176aacb6759081e9a4d4.
2011-12-11 13:00:49 -08:00
Matthew Brush
d090e7dd85
Ensure Geany's default size takes effect (oops)
2011-12-10 19:52:55 -08:00
Matthew Brush
00473dff4e
Use a sane default window size if config is missing
2011-12-10 19:28:23 -08:00
Matthew Brush
2d41ee941b
Merge branch 'gtkbuilder'
2011-12-10 15:50:05 -08:00
Nick Treleaven
d7f53f7f83
Fix offscreen window after quitting when minimized
...
Fixes #3421282 .
Occurred with Windows e.g. Vista, 7.
2011-12-08 16:35:29 +00:00
Matthew Brush
088b0bc362
Merge branch 'master' into gtkbuilder
...
Conflicts:
geany.glade
src/Makefile.am
src/callbacks.c
2011-12-05 20:52:00 -08:00
Dimitar Zhekov
6738d43dee
--read-only cleanup
...
Use the global variable only when needed and add an initializer for it
in the default options.
2011-11-21 21:48:32 +01:00
Thomas Martitz
8f280ed884
New --read-only commandline option
...
This adds a new commandline option --read-only (or -r). It's implemented
according to the behavior agreed on on the mailing list:
--read-only applies to all files on the command line
irrespective of positioning and has no effect on any other files
opened by session or menu (...)
Current behaviour on attempting to re-open a file with different
read-only status is that nothing happens, the already open
file is raised but not changed. (...)
2011-11-17 16:41:51 +01:00
Matthew Brush
0a16ec7520
Merge branch 'master' into gtkbuilder
...
Conflicts:
src/interface.c
src/vte.c
2011-11-06 23:44:24 -08:00
Colomban Wendling
b55a30c2bf
Build recent data for GTK ourselves
...
This prevents GTK of trying to fetch the necessary information like
MIME-type itself, which leads to a significant speedup (> 30%), as
well as using the real MIME-type we use rather than the GIO-guessed
one.
2011-11-04 00:11:21 +01:00
Enrico Tröger
3fd7e9f68e
Wait for user input in the debug console
...
This way, Geany's standard out and error can be read if started in verbose
mode until a key is pressed which makes debugging of command line
actions easier.
2011-10-23 16:32:22 +02:00
Matthew Brush
72e856947e
Rework GtkBuilder code to behave more like old Glade 2 code
...
* Put back ui_hookup_widget and ui_lookup_widget functions
* Put back lookup_widget code in stash.c
* Emulate old create_*() functions from interface.[ch].
* Hookup all the GtkBuilder widget's to their top widgets like Glade 2
generated code would've done.
* Misc changes to accomodate the above.
2011-10-19 00:44:35 -07:00
Nick Treleaven
02da53d711
Fix focusing editor after startup on Windows
2011-10-13 13:26:57 +01:00
Matthew Brush
af093c2ddf
Remove interface.c/h files and put code into ui_utils.c/h.
2011-10-10 15:20:15 -07:00
Matthew Brush
cfedadae27
Remove lingering Glade 2 create_*() functions.
...
Add interface.h includes in prefs.c, project.c, stash.c and ui_utils.c.
2011-10-10 13:56:37 -07:00
Matthew Brush
fa6c666c2c
Make sure interface is finalized after the rest of Geany is done with it's objects.
2011-10-10 13:56:26 -07:00
Matthew Brush
7c9430884f
Cleanup code, comments and refactor a bit.
2011-10-10 13:17:55 -07:00
Colomban Wendling
d06e9f4575
Remove $Id$ and $Date$ SVN keywords
2011-10-09 22:57:35 +02:00
Colomban Wendling
69313263e7
Check for Git revision rather than SVN one
2011-10-09 20:46:02 +02:00
Colomban Wendling
ddb4ad5fa5
Fix some whitespace style errors
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5886 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-06 18:34:14 +00:00
Frank Lanitz
a9f4dcfbbb
Adding a hint to prevent double usage of main_local_init() also to function documentation and correct word order.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5881 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-08-01 19:31:56 +00:00
Colomban Wendling
e9e3f6a8ab
Remove most of the checks for GIO
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5852 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-17 22:51:17 +00:00
Colomban Wendling
acc1ad557c
Enable GTK printing support unconditionally
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5841 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-13 20:42:31 +00:00
Colomban Wendling
f856ac782d
Always destroy open and save dialog after use
...
Create and destroy the file open/save dialogs on each call rather than
keeping the same dialog around. This avoids letting GTK monitor the
displayed directory for changes, thus probably reducing overhead and
works around GTK monitoring bugs.
This refactors the code a bit now it works a little differently.
Also fixes a bug that made dialogs_show_save_as() wrongly return the
first user response rather than the one that is actually used to make
the decision. It happened for example when the user first selected an
non-writable location, or was asked whether to override a file and
answered "no".
Closes/references:
https://sourceforge.net/tracker/?func=detail&aid=3311687&group_id=153444&atid=787793
https://sourceforge.net/tracker/?func=detail&aid=3311258&group_id=153444&atid=787791
https://sourceforge.net/tracker/?func=detail&aid=3304273&group_id=153444&atid=787791
https://sourceforge.net/tracker/?func=detail&aid=3201050&group_id=153444&atid=787791
https://sourceforge.net/tracker/?func=detail&aid=3163742&group_id=153444&atid=787791
https://sourceforge.net/tracker/?func=detail&aid=3153120&group_id=153444&atid=787791
https://sourceforge.net/tracker/?func=detail&aid=2985896&group_id=153444&atid=787791
https://bugs.launchpad.net/ubuntu/+source/geany/+bug/754577
Dialog state restoration based on a patch by Matthew Brush, thanks.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5837 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-06-10 22:13:29 +00:00
Nick Treleaven
b36ebf0a6b
Save filetype build commands straight after editing them instead of
...
at shutdown (patch by Dimitar Zhekov, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5758 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-05-03 16:08:23 +00:00
Nick Treleaven
05394fdf27
Make filetype groups configurable using [Groups] in
...
filetype_extensions.conf.
Read filetype_extensions.conf when calling filetypes_init_types(),
don't require doclist initialization.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5740 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-26 15:01:04 +00:00
Colomban Wendling
a009c2b48e
Fix loading and updating menu accelerators for custom commands
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5679 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-04-03 15:53:48 +00:00
Nick Treleaven
22038400cc
Add filetypes_get_sorted_by_name() to API.
...
Fix --ft-names sorting to print in name order, not title order.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5649 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-29 18:06:26 +00:00
Enrico Tröger
5521c67983
Initialize GLib's Gthread system early at startup in case any plugins need it.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5637 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-27 15:04:58 +00:00
Colomban Wendling
7698bf60a7
Improve usage of G_(UN)?LIKELY()
...
G_(UN)?LIKELY() should be only used on whole conditional expressions,
and only if the branching is very highly predictable, not if it is only
more probable.
These macros should be used with care because a wrong prediction may
be a lot worst than what a good prediction can give.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5625 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-24 22:00:18 +00:00
Nick Treleaven
70005af1d6
Make --ft-names list filetypes alphabetically.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5615 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-03-22 17:09:48 +00:00
Enrico Tröger
bf4067f910
Rename utils_is_file_writeable() into utils_is_file_writable().
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5539 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-02-06 16:47:18 +00:00
Enrico Tröger
6ac2623208
Update copyright information.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5528 ea778897-0a13-0410-b9d1-a72fbfd435f5
2011-01-19 19:39:09 +00:00
Nick Treleaven
b595c0a3d8
Disable 'Send Selection to Terminal' item when not available
...
instead of removing it to avoid trailing separator.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5472 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-12-07 13:25:11 +00:00
Nick Treleaven
d65d3adcc4
Fix segfaults when using 'Send Selection to Terminal' and the VTE
...
is not loaded, and when using Ctrl-A after enabling the 'Load VTE'
pref (patch by Dimitar Zhekov, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5470 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-12-07 13:02:46 +00:00
Nick Treleaven
14daa797d0
Fix auto-displaying of sidebar tab bar when sidebar is reshown.
...
Only auto-display symbols and documents tabs when showing the
sidebar if there are no plugin tabs.
Don't hide the sidebar on startup if only plugin tabs are visible
(fixes #3101867 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5422 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-22 13:49:38 +00:00
Nick Treleaven
76a6ad8a93
Show GIO/built-in regex support in startup debug message as well as
...
for --version.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5378 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-07 17:09:09 +00:00
Nick Treleaven
95a0e1acc2
Add startup debug messages to show app->datadir and app->configdir.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5377 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-07 16:39:49 +00:00
Nick Treleaven
e5fefb576d
Print "GIO" and "built-in regex" if enabled with --version.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5360 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-02 17:39:46 +00:00
Nick Treleaven
92d9221042
Remove trailing directory separator for app->datadir and
...
app->docdir for consistency with the other directory fields.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5348 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-11-01 15:17:22 +00:00
Nick Treleaven
8b6bcf6d68
Add main_widgets.project_menu to API (patch by Jiřà Techet, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5236 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-16 15:18:56 +00:00
Nick Treleaven
55ebfc0d61
Ignore directories passed on the command-line (based on patch by
...
Erik de Castro Lopo, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5226 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-14 11:29:42 +00:00
Nick Treleaven
7e8c863298
Add GeanyMainWidgets::message_window_notebook for plugins to append
...
a new notebook page (#3061342 ).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5204 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-09-08 12:36:01 +00:00
Nick Treleaven
ae4d82b7f1
Use Stash to save statusbar_template setting, instead of the
...
load/save-settings signal.
Add ui_init_prefs().
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5101 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-07-09 17:15:16 +00:00
Nick Treleaven
2b771854ae
Add ui_finalize(), free string (patch by Dimitar Zhekov, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5097 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-07-08 16:59:11 +00:00
Nick Treleaven
2265fe283a
Don't unnecessarily test G_FILE_TEST_IS_SYMLINK when testing
...
G_FILE_TEST_IS_REGULAR (patch by Dimitar Zhekov, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5089 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-07-05 12:03:27 +00:00
Nick Treleaven
148975afa3
Move plugin signals docs to pluginsignals.c, using function
...
pointer syntax instead of @signaldef as this puts a summary of
the signal names at the top of the page and sorts alphabetically.
(Note: the syntax is similar to Vala signal syntax).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5065 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-06-25 16:50:27 +00:00
Enrico Tröger
373a4d32c3
Print locale information in debug output.
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4957 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-29 18:35:51 +00:00
Enrico Tröger
fdd451f0d4
Add preference to add new document tabs beside the current one (patch by Colomban Wendling, thanks).
...
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4928 ea778897-0a13-0410-b9d1-a72fbfd435f5
2010-05-16 17:45:39 +00:00