Kaydet (Commit) 8e6ed990 authored tarafından Enrico Tröger's avatar Enrico Tröger

Reset cursors when Scintilla widget is realized (Backport from Scintilla HG,…

Reset cursors when Scintilla widget is realized (Backport from Scintilla HG, original patch by Matthew Brush).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5693 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst 938477a0
...@@ -2,8 +2,10 @@ ...@@ -2,8 +2,10 @@
* scintilla/gtk/ScintillaGTK.cxx: * scintilla/gtk/ScintillaGTK.cxx:
Fix X PRIMARY selection issue when Scintilla widget is Fix X PRIMARY selection issue when Scintilla widget is
unrealized/re-realized unrealized/re-realized (Backport from Scintilla HG,
(Backport from Scintilla HG, original patch by Matthew Brush). original patch by Matthew Brush).
Reset cursors when Scintilla widget is realized (Backport from
Scintilla HG, original patch by Matthew Brush).
2011-04-04 Colomban Wendling <colomban(at)geany(dot)org> 2011-04-04 Colomban Wendling <colomban(at)geany(dot)org>
......
...@@ -421,6 +421,18 @@ void ScintillaGTK::RealizeThis(GtkWidget *widget) { ...@@ -421,6 +421,18 @@ void ScintillaGTK::RealizeThis(GtkWidget *widget) {
gtk_widget_realize(PWidget(scrollbarv)); gtk_widget_realize(PWidget(scrollbarv));
gtk_widget_realize(PWidget(scrollbarh)); gtk_widget_realize(PWidget(scrollbarh));
cursor = gdk_cursor_new(GDK_XTERM);
gdk_window_set_cursor(PWidget(wText)->window, cursor);
gdk_cursor_unref(cursor);
cursor = gdk_cursor_new(GDK_LEFT_PTR);
gdk_window_set_cursor(PWidget(scrollbarv)->window, cursor);
gdk_cursor_unref(cursor);
cursor = gdk_cursor_new(GDK_LEFT_PTR);
gdk_window_set_cursor(PWidget(scrollbarh)->window, cursor);
gdk_cursor_unref(cursor);
gtk_selection_add_targets(widget, GDK_SELECTION_PRIMARY, gtk_selection_add_targets(widget, GDK_SELECTION_PRIMARY,
clipboardCopyTargets, nClipboardCopyTargets); clipboardCopyTargets, nClipboardCopyTargets);
......
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