7200 Commits

Author SHA1 Message Date
Colomban Wendling
ab3b7ce496 Use the appropriate prototype for the window's delete-event callback 2014-06-24 18:11:34 +02:00
Colomban Wendling
2113537e93 Add two missing Glade-only prototypes 2014-06-24 18:07:29 +02:00
Colomban Wendling
a398b087da Remove redundant toolbar-specific callbacks 2014-06-24 18:04:11 +02:00
Colomban Wendling
517bf5f960 Move Glade-only callbacks out of callbacks.h
There is no need to expose the Glade-only callbacks in the header as
nobody uses them directly anyway;  and not having them makes the header
a little less bloated.
2014-06-24 17:53:55 +02:00
Colomban Wendling
3b1fbc16e5 Normalize callbacks prototypes 2014-06-24 16:53:07 +02:00
Colomban Wendling
220545d988 Don't export callbacks not used from Glade 2014-06-24 16:44:10 +02:00
Colomban Wendling
69a44997ad Remove prototypes of non-existing callbacks 2014-06-24 16:43:11 +02:00
Colomban Wendling
d6382e443f VTE: avoid exporting callbacks that are only used internally 2014-06-24 15:04:37 +02:00
Colomban Wendling
2490df9b45 Avoid passing non-literals to string formatting functions
Having a string literal allows the compiler to check the arguments
match the format, so avoid passing non-literal whenever possible.
2014-06-24 15:02:31 +02:00
Thomas Martitz
135b60d25e callbacks: Refactor on_reload_as_activate() as document_reload_prompt()
The callback wasn't used from glade but is useful for some other places so
it's worth moving into document.c. This also fixes a bug where reload via sidebar
always reloads the current document instead of the actually clicked one.
2014-06-24 15:01:42 +02:00
Colomban Wendling
d6c980f2fc Printing: properly claim ownership of the printing Scintilla widget
This avoids a GObject warning about unref-ing a floating object on
print termination.
2014-06-23 18:38:59 +02:00
Enrico Tröger
881ca4fa02 Fix typo in generated geany.pc 2014-06-22 14:09:04 +02:00
Colomban Wendling
ec7071062c Fix GTK frame clock warnings with our about dialog
We used to set the widget's style in a style-set handler, and despite
guarding ourselves from recursive invocations, the GTK frame clock
introduced by GTK 3.8 didn't like it very much.

So, replace the manual color modification by a simpler global widget
state modification, making the code simpler and smaller, yet achieving
the same result (or so I hope and see).
2014-06-21 18:35:17 +02:00
Frank Lanitz
40662e4c01 SQL: Adding uniqueidentifier as keyword
uniqueidentifier is a data type e.g. used on SAP/Sybase SQLAnywhere
2014-06-19 14:20:16 +02:00
Frank Lanitz
d5fd29baab Update of Slovenian translation 2014-06-12 18:49:06 +02:00
Frank Lanitz
d3b9628315 Update of Italian translation 2014-06-12 18:49:06 +02:00
Colomban Wendling
c79c983364 Fix build with GLib < 2.32
Second part of #1047.
2014-06-04 14:31:12 +02:00
Colomban Wendling
ea6ebaf48f Fix build with GTK < 2.24
Part of #1047.
2014-06-04 14:16:39 +02:00
Enrico Tröger
01cf9a9fdc Do not use backward slashes in geany.pc on Windows
And explicitly convert backward slashes in the global
prefix to forward slashes as tools like pkg-config or
gcc could interpret the backward slashes as escape
sequences.
2014-05-29 17:47:37 +02:00
Colomban Wendling
147167cfa5 infobars: Use wrap labels to avoid cropped infobars
Since the infobar is backed in a GtkPaned that allows "shrink", if the
content is too wide, it's far end will just get cropped.  Also, wrap
labels are nicer to display possibly long texts as it flows naturally.
2014-05-28 18:01:23 +02:00
Colomban Wendling
d6e9e40ccc Fix a few missing/extra includes 2014-05-27 20:25:04 +02:00
Colomban Wendling
7a4b524661 Avoid code duplication in document_get_current() 2014-05-27 18:00:56 +02:00
Colomban Wendling
46f01bff59 Properly mirror document_get_from_page() in document_get_notebook_page()
Now document_get_from_page() supports arbitrary nesting inside the
notebook page, update document_get_notebook_page() to support it also,
by searching up for the direct notebook child rather than assuming it
is the ScintillaWidget's direct parent.
2014-05-27 17:55:00 +02:00
Colomban Wendling
d399957471 Fix an inverted check 2014-05-27 16:02:59 +02:00
Colomban Wendling
4adbd50880 Remove some empty table rows and columns from the Glade file
Cleanup some useless placeholders, and replace some one-column tables
with vertical boxes.

No UI changes.
2014-05-27 15:53:32 +02:00
Colomban Wendling
73a1589618 Remove empty table rows in the Glade file
This avoids glade from emitting some useless placeholders.
No UI changes.
2014-05-26 18:11:58 +02:00
Colomban Wendling
e9795732b6 Merge PR#113 2014-05-26 16:45:25 +02:00
Colomban Wendling
2b9ecc2e4f Remove unused variables and avoid variable shadowing 2014-05-26 16:24:24 +02:00
Colomban Wendling
6e58ef3755 Don't use the notebook page widget for tab popup
Directly use the GeanyDocument rather than pass the notebook page
widget and get the document from that.  This makes the code more future
proof and less weird.
2014-05-26 16:21:16 +02:00
Thomas Marititz
54724ee2ad notebook: Fix crash on tab close
Since infobars notebook_tab_close_clicked_cb() wants a GeanyDocument as userdata.
show_tab_bar_popup_menu() on the other hand wants the actual GtkNotebook child.
2014-05-26 11:43:57 +02:00
Matthew Brush
8ea54993c5 Merge branch 'kugel/document-messages2'
This is an extension of the long-lived `document-messages` branch.

It is mostly adjusted according to the feedback on the mailing list.
There might existing some usability issues to be resolved, but this
is the first step towards non-modal document notifications.
2014-05-25 18:55:07 -07:00
Thomas Martitz
19e24fb5ee infobars: Dismiss the info bar when reloading via toolbar button/keybinding. 2014-05-24 19:42:46 +02:00
Thomas Martitz
b96daf6fc0 infobars: Do not use GeanyWrapLabel for now, it has problems on gtk3. 2014-05-24 16:32:58 +02:00
Thomas Martitz
100e0e1bf1 infobars: Intercept some keys when the info bar is shown to allow interacting with it using the keyboard only.
When the info bar is shown tab/shift+tab and escape are intercepted.
* tab/shift+tab change the focus to the info bar buttons which can then be
  cycled through with more tab presses
* escape closes the info bar (same as clicking cancel)

Both keys aren't needed for the document because it's read-only. Other keys,
such arrow/page up/down, remain to the document for navigating.
2014-05-24 15:05:33 +02:00
Thomas Martitz
1dc96f1e50 infobars: Cancel "reload file" dialog when spawning the "resave file" one.
When the file was deleted from disk the message that the file is newer on
disk has become out of date and irrelevent.
2014-05-24 15:05:15 +02:00
Thomas Martitz
b487d8dea3 infobars: Do not show reload and resave messages more than once since only the
last one (respectively) is significant to the user.
2014-05-24 15:05:14 +02:00
Thomas Martitz
5117940ff6 infobars: Make document read-only while infobar is shown.
This avoids accidental changes the file until the infobar is ackowledged. The
document can still be viewed and scrolled through but modifications and saving
are disabled. Of course ignoring the document by changing to another one is
also possible.
2014-05-24 15:05:14 +02:00
Matthew Brush
43bff93046 Make locate_sci_in_container() search recursively
Supports changes to the widget heirarchy in the future.
2014-05-24 15:05:14 +02:00
Matthew Brush
e469aa6acc Use document_show_message() when a file is removed from disk
The close button is removed from the dialog also since the user can easily
choose to close the document normally.

Setting default response removed since it's not working yet.
2014-05-24 15:05:08 +02:00
Matthew Brush
667c35a004 Use document_show_message() when a file is externally modified
Two other related changes are that document_set_text_changed() is used to
indicate that the buffer is different from what's on disk and also that
the 'Close' button has been removed from the dialog since the user can easily
just close the document themselves the normal way.
2014-05-24 14:47:57 +02:00
Matthew Brush
a6bbea53c8 Add new function document_show_message() 2014-05-24 14:47:57 +02:00
Matthew Brush
9f587e9c26 Pack Scintilla widgets into a GtkVBox and use it as the notebook page.
This is to allow stacking widgets such as GtkInfoBar above the Scintilla
widget in each tab.

notebook.c need to be changed because the document isn't the direct widget
anymore which was assumed for tab closing.
2014-05-24 14:46:49 +02:00
Enrico Tröger
f3ac7480c5 Re-order header includes and cleanup unused imports 2014-05-24 13:33:27 +02:00
Enrico Tröger
34de4b655e Merge pull request #276 from codebrainz/win32-includes
Re-order win32.[ch] includes a little bit to unbreak build
2014-05-24 13:15:39 +02:00
Matthew Brush
238ab56279 Re-order win32.[ch] includes a little bit to unbreak build 2014-05-24 04:01:09 -07:00
Enrico Tröger
1bacf869e0 Extend use of os.path.join() to construct platform compliant paths 2014-05-24 11:32:45 +02:00
Colomban Wendling
46affaf19e Update Scintilla to 3.4.2 final release
No code changes.
2014-05-22 03:34:09 +02:00
Matthew Brush
4d22aa4850 Merge branch 'header-cleanup'
Closes #272
2014-05-21 15:43:40 -07:00
Matthew Brush
50feb0e05c Improve support of compiling without gettext
* If GETTEXT_PACKAGE is not defined (ex. by build system/user) then
  define it to NULL. Most GLib gettext-functions allow passing NULL
  to use the domain set with textdomain().
* Improve the ngettext() wrapper macro.
* Improve/fix bind_textdomain_codeset() wrapper macro.
* Fix argument in bindtextdomain()
* Cast bind*textdomain*() results with (void) to get rid of compiler
  warnings when building without GETTEXT_PACKAGE defined.
2014-05-21 15:38:16 -07:00
Matthew Brush
34888d6baf Add some info about header includes to HACKING file 2014-05-21 15:38:16 -07:00