Branch: refs/heads/master
Author: Colomban Wendling <ban(a)herbesfolles.org>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Mon, 19 May 2014 12:31:11 UTC
Commit: df5edd00322e637e2a673f9ea502092f2b4ee2b9
https://github.com/geany/geany/commit/df5edd00322e637e2a673f9ea502092f2b4ee…
Log Message:
-----------
Scintilla: fix missing redraws on GTK < 3.9.2
Also, make the recent redraw fixes depend on the GTK version Scintilla
is running against, rather than built against. This allows for the
same build to work with both GTK < 3.9.2 or >= 3.9.2.
Modified Paths:
--------------
scintilla/gtk/ScintillaGTK.cxx
Modified: scintilla/gtk/ScintillaGTK.cxx
20 lines changed, 15 insertions(+), 5 deletions(-)
===================================================================
@@ -759,9 +759,16 @@ void ScintillaGTK::Initialise() {
#else
g_signal_connect(G_OBJECT(widtxt), "expose_event",
G_CALLBACK(ScintillaGTK::ExposeText), this);
- // Avoid background drawing flash
- gtk_widget_set_double_buffered(widtxt, FALSE);
#endif
+#if GTK_CHECK_VERSION(3,0,0)
+ // we need a runtime check because we don't want double buffering when
+ // running on >= 3.9.2
+ if (gtk_check_version(3,9,2) != NULL /* on < 3.9.2 */)
+#endif
+ {
+ // Avoid background drawing flash/missing redraws
+ gtk_widget_set_double_buffered(widtxt, FALSE);
+ }
gtk_widget_set_events(widtxt, GDK_EXPOSURE_MASK);
gtk_widget_set_size_request(widtxt, 100, 100);
adjustmentv = GTK_ADJUSTMENT(gtk_adjustment_new(0.0, 0.0, 201.0, 1.0, 20.0, 20.0));
@@ -2444,9 +2451,12 @@ gboolean ScintillaGTK::DrawThis(cairo_t *cr) {
// Starting from the following version, the expose event are not propagated
// for double buffered non native windows, so we need to call it ourselves
// or keep the default handler
-#if GTK_CHECK_VERSION(3,9,2)
- gtk_container_propagate_draw(
- GTK_CONTAINER(PWidget(wMain)), PWidget(wText), cr);
+#if GTK_CHECK_VERSION(3,0,0)
+ // we want to forward on any >= 3.9.2 runtime
+ if (gtk_check_version(3,9,2) == NULL) {
+ gtk_container_propagate_draw(
+ GTK_CONTAINER(PWidget(wMain)), PWidget(wText), cr);
+ }
#endif
} catch (...) {
errorStatus = SC_STATUS_FAILURE;
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Colomban Wendling <ban(a)herbesfolles.org>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Thu, 15 May 2014 01:13:11 UTC
Commit: f3d96ef91db976a81b48f34a37ffd7c856dc7527
https://github.com/geany/geany/commit/f3d96ef91db976a81b48f34a37ffd7c856dc7…
Log Message:
-----------
Re-generate with Glade 3.8.5
3.8.5 is supposed to fix the unstable file output, hopefully making
further edits generate small diffs, not rearranging the whole file for
no good reason.
Note that this commit may introduce UI problems if the output actually
isn't equivalent, the diff making it nearly impossible to review
manually. Keep an eye open for such problems.
Modified Paths:
--------------
data/geany.glade
Modified: data/geany.glade
6601 lines changed, 3144 insertions(+), 3457 deletions(-)
===================================================================
No diff available, check online
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Colomban Wendling <ban(a)herbesfolles.org>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Wed, 07 May 2014 14:00:49 UTC
Commit: a6b1433e6673d4cdb159818187233f0cde3245e8
https://github.com/geany/geany/commit/a6b1433e6673d4cdb159818187233f0cde324…
Log Message:
-----------
Fix modulo by zero, resulting in FPE
Fix modulo zero error resulting in floating point exception, and then
crash. This was introduced in fd6ce2da11e9f2d20cb96236753662c23feaecb4.
Closes #265.
Modified Paths:
--------------
src/keyfile.c
Modified: src/keyfile.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -1203,7 +1203,7 @@ void configuration_open_files(void)
gint target_page = session_notebook_page >= 0 ? session_notebook_page : cur_page;
/* if target page is current page, switch to another page first to really trigger an event */
- if (target_page == cur_page)
+ if (target_page == cur_page && n_pages > 0)
gtk_notebook_set_current_page(GTK_NOTEBOOK(main_widgets.notebook), (cur_page + 1) % n_pages);
main_status.opening_session_files = FALSE;
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).