[maemo-commits] [maemo-commits] r17353 - in projects/haf/trunk/gtk+: . gtk

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Feb 3 14:47:20 EET 2009
Author: kris
Date: 2009-02-03 14:47:06 +0200 (Tue, 03 Feb 2009)
New Revision: 17353

Modified:
   projects/haf/trunk/gtk+/ChangeLog
   projects/haf/trunk/gtk+/gtk/gtktextview.c
Log:
2009-02-03  Kristian Rietveld  <kris at imendio.com>

	Fixes: NB#99830 - Panned area panns back to the cursor and
	doesn't stays where it is panned to

	* gtk/gtktextview.c (gtk_text_view_size_allocate): remove
	Maemo-specific patch that scrolls to cursor on each size
	allocation.



Modified: projects/haf/trunk/gtk+/ChangeLog
===================================================================
--- projects/haf/trunk/gtk+/ChangeLog	2009-02-03 08:38:32 UTC (rev 17352)
+++ projects/haf/trunk/gtk+/ChangeLog	2009-02-03 12:47:06 UTC (rev 17353)
@@ -1,3 +1,12 @@
+2009-02-03  Kristian Rietveld  <kris at imendio.com>
+
+	Fixes: NB#99830 - Panned area panns back to the cursor and
+	doesn't stays where it is panned to
+
+	* gtk/gtktextview.c (gtk_text_view_size_allocate): remove
+	Maemo-specific patch that scrolls to cursor on each size
+	allocation.
+
 2009-01-27  Kristian Rietveld  <kris at imendio.com>
 
 	Fixes: NB#93725 - Finish theming of GtkTreeView and GtkIconView

Modified: projects/haf/trunk/gtk+/gtk/gtktextview.c
===================================================================
--- projects/haf/trunk/gtk+/gtk/gtktextview.c	2009-02-03 08:38:32 UTC (rev 17352)
+++ projects/haf/trunk/gtk+/gtk/gtktextview.c	2009-02-03 12:47:06 UTC (rev 17353)
@@ -3416,20 +3416,7 @@
    * be invalidated
    */
   if (size_changed && GTK_WIDGET_REALIZED (widget))
-    {
-      gdk_window_invalidate_rect (widget->window, NULL, FALSE);
-
-#ifdef MAEMO_CHANGES
-      /* Keep cursor visible (when IM opens, for instance), but
-       * only if the cursor is not hidden.
-       */
-      if (text_view->cursor_visible)
-        gtk_text_view_scroll_to_mark (text_view,
-                                      gtk_text_buffer_get_mark (get_buffer (text_view),
-                                                                "insert"),
-                                      0.0, FALSE, 0.0, 0.0);
-#endif /* MAEMO_CHANGES */
-    }
+    gdk_window_invalidate_rect (widget->window, NULL, FALSE);
 }
 
 static void


More information about the maemo-commits mailing list