Kaydet (Commit) 6db843b0 authored tarafından Enrico Tröger's avatar Enrico Tröger

added commandline option to use an alternate way to draw the text, could improve…

added commandline option to use an alternate way to draw the text, could improve scrolling, has to be tested

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@323 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 7a6efd06
......@@ -250,6 +250,12 @@ gint document_create_new_sci(const gchar *filename)
pango_font_description_free(pfd);
g_free(fname);
// this is only for testing, should be tested seriously, could speed up scrolling
if (alternative_scrolling)
{
SSM(sci, SCI_SETBUFFEREDDRAW, 0, 0);
SSM(sci, SCI_SETTWOPHASEDRAW, 0, 0);
}
this.tabmenu_label = gtk_label_new(title);
if (app->tab_order_ltr)
......@@ -573,8 +579,6 @@ void document_open_file(gint idx, const gchar *filename, gint pos, gboolean read
utf8_filename, gtk_notebook_get_n_pages(GTK_NOTEBOOK(app->notebook)),
(readonly) ? _(", read-only") : "");
}
//utils_update_tag_list(idx, TRUE);
document_update_tag_list(idx, FALSE);
document_set_text_changed(idx);
#if defined(HAVE_MMAP) && defined(HAVE_MUNMAP) && defined(HAVE_FCNTL_H)
......
......@@ -215,7 +215,7 @@ typedef struct MyApp
MyApp *app;
gboolean alternative_scrolling;
// small struct to track tag name and type together
typedef struct GeanySymbol
......
......@@ -78,6 +78,7 @@ static GOptionEntry entries[] =
{ "vte-lib", 'l', 0, G_OPTION_ARG_FILENAME, &lib_vte, "filename of libvte.so", NULL },
#endif
{ "version", 'v', 0, G_OPTION_ARG_NONE, &show_version, "show version and exit", NULL },
{ "alt-scroll", 's', 0, G_OPTION_ARG_NONE, &alternative_scrolling, "use alternative scrolling, only for testing purposes", NULL },
{ NULL, 0, 0, 0, NULL, NULL, NULL }
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment