25 Commits

Author SHA1 Message Date
Nick Treleaven
638af6cd6d Don't recreate the open files items when DnD reordering tabs, now
that the open files treeview is sorted alphabetically.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1394 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-14 12:11:50 +00:00
Enrico Tröger
90b01daf35 Fixed several compiler warnings (mainly shadowing local variables and unreachable code).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1376 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-03-09 13:52:26 +00:00
Nick Treleaven
806dd5be1d Add descriptions for all .c source files below the file header.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1329 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-02-24 11:41:56 +00:00
Enrico Tröger
7b61ad934d Updated copyright information.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1188 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-14 17:36:42 +00:00
Nick Treleaven
9a34105638 Fix some indent formatting.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1177 ea778897-0a13-0410-b9d1-a72fbfd435f5
2007-01-12 16:56:23 +00:00
Nick Treleaven
1edaaa3d6c Show read-only notebook tabs in green.
Add document_get_status() to get the tab colour for the document.
Use ui_update_tab_status() to update notebook tabs and open files
treeview items.
Avoid using GtkTreeIter struct as treeviews function arguments.
Remove unneeded arguments for treeviews_openfiles_add(),
notebook_new_tab().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1053 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-12-05 10:37:36 +00:00
Nick Treleaven
d5004f43e4 Add some const char* argument modifiers, remove unneeded static from
some local vars.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1029 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-25 12:17:50 +00:00
Nick Treleaven
6bb48f0800 Make tab_count_changed() slightly more efficient.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1024 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-23 16:06:54 +00:00
Nick Treleaven
9cff8504ea Ensure tab DnD is enabled when tabs are added; use
notebook_remove_page() instead of gtk_notebook_remove_page().
Unified notebook_[en|dis]able_dnd_for_dropping_files() in
tab_count_changed().


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1017 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-22 16:07:18 +00:00
Enrico Tröger
4306f9091a Removed DnD handler for the main window (not very useful).
Fixed broken tab reordering by only enabling DnD for dropping files when there are no open file tabs, otherwise disable it and enable DnD for moving file tabs. Dropping files into Geany when file tabs are open still works because then it is handled by the Scintilla widget.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1015 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-21 18:39:23 +00:00
Nick Treleaven
5ac6b8393c Focus the current document after clicking on a tab.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@963 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-11-03 15:03:57 +00:00
Nick Treleaven
a63fc1e40e Moved UI related utils from utils.c to ui_utils.c
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@790 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-09-05 14:24:47 +00:00
Enrico Tröger
ffccef2c68 Enlarged the tab close icon. This should fix some display issues.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@752 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-21 17:07:44 +00:00
Nick Treleaven
a9873e040c Add info to file header text
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@748 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-20 11:54:33 +00:00
Nick Treleaven
0a4e1ff7da Use native tab DnD reordering on GTK+ 2.10; closes #1519650
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@686 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-09 11:14:02 +00:00
Nick Treleaven
badd2b7fd7 Move notebook motion event setup to notebook_init
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@683 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-08 10:52:36 +00:00
Nick Treleaven
58af613d59 Fixed GTK 2.6 workaround for DnD tab reordering so it works on the first attempt
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@682 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-08-08 10:39:18 +00:00
Nick Treleaven
c67bd70d53 Use tab reorder workaround only if GTK runtime <2.8
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@615 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-24 17:30:08 +00:00
Enrico Tröger
285cda8924 Keep the list of open files in sync when reordering notebook tabs.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@606 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-22 14:36:20 +00:00
Enrico Tröger
0e4e014759 Compile notebook_motion_notify_event_cb() only with GTK 2.6 (again).
Made "built on" string translatable.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@583 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-18 22:01:24 +00:00
Enrico Tröger
2e31c57b44 Compile notebook_motion_notify_event_cb() only with GTK 2.6.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@543 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-08 18:23:20 +00:00
Nick Treleaven
be9461a4d2 Don't prevent notebook tab focus because this disables the notebook arrows
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@513 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-07-01 10:22:54 +00:00
Nick Treleaven
93a9a2bd8a Fix close tab button bug introduced in last commit
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@480 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-25 12:48:38 +00:00
Nick Treleaven
efe658834e Enable drag reordering of tabs for GTK+2.8, and a temporary workaround for GTK+2.6. Add notebook_new_tab and update document_create_new_sci to use it; also remove on_tab_close_clicked
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@479 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-25 12:13:35 +00:00
Nick Treleaven
14e6966568 Added currently disabled drag reordering of notebook tabs
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@448 ea778897-0a13-0410-b9d1-a72fbfd435f5
2006-06-16 11:17:52 +00:00