Revision: 2630
http://geany.svn.sourceforge.net/geany/?rev=2630&view=rev
Author: ntrel
Date: 2008-05-30 07:45:17 -0700 (Fri, 30 May 2008)
Log Message:
-----------
Handle non-Scintilla GUI updates after SCN_PAINTED instead of
SCN_UPDATEUI to hopefully appear more responsive to typing.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/editor.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-05-30 14:25:22 UTC (rev 2629)
+++ trunk/ChangeLog 2008-05-30 14:45:17 UTC (rev 2630)
@@ -4,6 +4,9 @@
Add deprecated macro for doc_array.
* src/editor.c:
Allow line breaking after typing any character, not just wordchars.
+ * src/editor.c:
+ Handle non-Scintilla GUI updates after SCN_PAINTED instead of
+ SCN_UPDATEUI to hopefully appear more responsive to typing.
2008-05-29 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/src/editor.c
===================================================================
--- trunk/src/editor.c 2008-05-30 14:25:22 UTC (rev 2629)
+++ trunk/src/editor.c 2008-05-30 14:45:17 UTC (rev 2630)
@@ -170,19 +170,15 @@
}
+/* Note: Any GUI updates that don't affect scintilla should be done in on_painted(). */
static void on_update_ui(gint idx, G_GNUC_UNUSED SCNotification *nt)
{
ScintillaObject *sci = documents[idx]->sci;
gint pos = sci_get_current_position(sci);
- /* undo / redo menu update */
- ui_update_popup_reundo_items(idx);
-
/* brace highlighting */
editor_highlight_braces(sci, pos);
- ui_update_statusbar(idx, pos);
-
/* Visible lines are only laid out accurately once [SCN_UPDATEUI] is sent,
* so we need to only call sci_scroll_to_line here, because the document
* may have line wrapping and folding enabled.
@@ -209,6 +205,20 @@
}
+/* Any GUI updates that don't affect scintilla should be done here to
+ * appear more responsive to typing. */
+static void on_painted(gint idx, G_GNUC_UNUSED SCNotification *nt)
+{
+ ScintillaObject *sci = documents[idx]->sci;
+ gint pos = sci_get_current_position(sci);
+
+ /* undo / redo menu update */
+ ui_update_popup_reundo_items(idx);
+
+ ui_update_statusbar(idx, pos);
+}
+
+
static void check_line_breaking(gint idx, gint pos, gchar c)
{
GeanyDocument *doc = documents[idx];
@@ -455,6 +465,10 @@
on_update_ui(idx, nt);
break;
+ case SCN_PAINTED:
+ on_painted(idx, nt);
+ break;
+
case SCN_MODIFIED:
{
if (nt->modificationType & SC_STARTACTION && ! ignore_callback)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 2629
http://geany.svn.sourceforge.net/geany/?rev=2629&view=rev
Author: ntrel
Date: 2008-05-30 07:25:22 -0700 (Fri, 30 May 2008)
Log Message:
-----------
Allow line breaking after typing any character, not just wordchars.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/editor.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-05-30 14:18:43 UTC (rev 2628)
+++ trunk/ChangeLog 2008-05-30 14:25:22 UTC (rev 2629)
@@ -2,6 +2,8 @@
* src/plugindata.h:
Add deprecated macro for doc_array.
+ * src/editor.c:
+ Allow line breaking after typing any character, not just wordchars.
2008-05-29 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/src/editor.c
===================================================================
--- trunk/src/editor.c 2008-05-30 14:18:43 UTC (rev 2628)
+++ trunk/src/editor.c 2008-05-30 14:25:22 UTC (rev 2629)
@@ -219,10 +219,7 @@
return;
if (c == GDK_space)
- pos--; /* Use previous space, not new one */
- else
- if (strchr(GEANY_WORDCHARS, c) == NULL)
- return;
+ pos--; /* Look for previous space, not the new one */
line = sci_get_current_line(sci);
lstart = sci_get_position_from_line(sci, line);
@@ -230,7 +227,7 @@
if (pos - lstart < editor_prefs.line_break_column)
return;
- /* look for the last space before editor_prefs.line_break_column */
+ /* look for the last space before line_break_column */
pos = MIN(pos, lstart + editor_prefs.line_break_column);
while (pos > lstart)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 2627
http://geany.svn.sourceforge.net/geany/?rev=2627&view=rev
Author: eht16
Date: 2008-05-29 11:07:18 -0700 (Thu, 29 May 2008)
Log Message:
-----------
Remove code that should not have been comitted. Oops.
Modified Paths:
--------------
trunk/src/printing.c
Modified: trunk/src/printing.c
===================================================================
--- trunk/src/printing.c 2008-05-29 18:02:20 UTC (rev 2626)
+++ trunk/src/printing.c 2008-05-29 18:07:18 UTC (rev 2627)
@@ -409,24 +409,12 @@
{
DocInfo *dinfo = user_data;
PangoFontDescription *desc;
- GtkPrintSettings *lsettings;
- GtkPageRange range;
gint i;
gint style_max;
if (dinfo == NULL)
return;
- /* printing a range of pages or only the current page is not yet supported, so force printing
- * of all pages */
- lsettings = gtk_print_operation_get_print_settings(operation);
- gtk_print_settings_set_print_pages(lsettings, GTK_PRINT_PAGES_ALL);
- gtk_print_settings_set_page_set(lsettings, GTK_PAGE_SET_ALL);
- range.start = 0;
- range.end = dinfo->n_pages;
- gtk_print_settings_set_page_ranges(lsettings, &range, 1);
- gtk_print_operation_set_print_settings(operation, lsettings);
-
desc = pango_font_description_from_string(interface_prefs.editor_font);
/* init dinfo fields */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 2623
http://geany.svn.sourceforge.net/geany/?rev=2623&view=rev
Author: eht16
Date: 2008-05-28 09:09:16 -0700 (Wed, 28 May 2008)
Log Message:
-----------
Add again all GTK libraries to linker flags for each plugin.
Modified Paths:
--------------
trunk/ChangeLog
trunk/plugins/Makefile.am
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2008-05-28 15:35:27 UTC (rev 2622)
+++ trunk/ChangeLog 2008-05-28 16:09:16 UTC (rev 2623)
@@ -3,6 +3,8 @@
* doc/geany.css, doc/geany.html:
Add media types for screen and print to have a clean version
of the manual for printing.
+ * plugins/Makefile.am:
+ Add again all GTK libraries to linker flags for each plugin.
2008-05-28 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/plugins/Makefile.am
===================================================================
--- trunk/plugins/Makefile.am 2008-05-28 15:35:27 UTC (rev 2622)
+++ trunk/plugins/Makefile.am 2008-05-28 16:09:16 UTC (rev 2623)
@@ -41,13 +41,14 @@
filebrowser_la_SOURCES = filebrowser.c
# instead of linking against all in $(GTK_LIBS), we link only against needed libs
-#~ demoplugin_la_LIBADD = $(GTK_LIBS)
-classbuilder_la_LIBADD = -lgtk-x11-2.0 -lgobject-2.0 -lglib-2.0
-htmlchars_la_LIBADD = -lgtk-x11-2.0 -lgobject-2.0 -lglib-2.0
-export_la_LIBADD = -lgtk-x11-2.0 -lm -lpango-1.0 -lgobject-2.0 -lglib-2.0
-vcdiff_la_LIBADD = -lgtk-x11-2.0 -lgobject-2.0 -lglib-2.0
-autosave_la_LIBADD = -lgtk-x11-2.0 -lgobject-2.0 -lglib-2.0
-filebrowser_la_LIBADD = -lgtk-x11-2.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0
+demoplugin_la_LIBADD = $(GTK_LIBS)
+classbuilder_la_LIBADD = $(GTK_LIBS)
+htmlchars_la_LIBADD = $(GTK_LIBS)
+export_la_LIBADD = $(GTK_LIBS)
+vcdiff_la_LIBADD = $(GTK_LIBS)
+autosave_la_LIBADD = $(GTK_LIBS)
+filebrowser_la_LIBADD = $(GTK_LIBS)
+
endif # PLUGINS
AM_CPPFLAGS = \
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.