]> Pileus Git - ~andy/gtk/commitdiff
parent_class variable was GtkObjectClass instead of GObjectClass
authorHavoc Pennington <hp@pobox.com>
Mon, 25 Feb 2002 02:47:19 +0000 (02:47 +0000)
committerHavoc Pennington <hp@src.gnome.org>
Mon, 25 Feb 2002 02:47:19 +0000 (02:47 +0000)
2002-02-24  Havoc Pennington  <hp@pobox.com>

* gtk/gtktextbuffer.c (parent_class): parent_class variable was
GtkObjectClass instead of GObjectClass

* gtk/gtktextview.c (widget_to_buffer): fix this the way
buffer_to_widget was fixed, to avoid duplicating
the code that computes text_window->allocation.x/y

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktextbuffer.c
gtk/gtktextview.c

index 9c6c9719c543404b13f3e404ebb120bcc1d8c39e..b69e42d6d19207aadaeb4fbff0ea98ac409ac22f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2002-02-24  Havoc Pennington  <hp@pobox.com>
+
+       * gtk/gtktextbuffer.c (parent_class): parent_class variable was
+       GtkObjectClass instead of GObjectClass
+
+       * gtk/gtktextview.c (widget_to_buffer): fix this the way 
+       buffer_to_widget was fixed, to avoid duplicating 
+       the code that computes text_window->allocation.x/y
+
 Sun Feb 24 21:18:20 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtksocket.c (gtk_socket_end_embedding): Fix
index 9c6c9719c543404b13f3e404ebb120bcc1d8c39e..b69e42d6d19207aadaeb4fbff0ea98ac409ac22f 100644 (file)
@@ -1,3 +1,12 @@
+2002-02-24  Havoc Pennington  <hp@pobox.com>
+
+       * gtk/gtktextbuffer.c (parent_class): parent_class variable was
+       GtkObjectClass instead of GObjectClass
+
+       * gtk/gtktextview.c (widget_to_buffer): fix this the way 
+       buffer_to_widget was fixed, to avoid duplicating 
+       the code that computes text_window->allocation.x/y
+
 Sun Feb 24 21:18:20 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtksocket.c (gtk_socket_end_embedding): Fix
index 9c6c9719c543404b13f3e404ebb120bcc1d8c39e..b69e42d6d19207aadaeb4fbff0ea98ac409ac22f 100644 (file)
@@ -1,3 +1,12 @@
+2002-02-24  Havoc Pennington  <hp@pobox.com>
+
+       * gtk/gtktextbuffer.c (parent_class): parent_class variable was
+       GtkObjectClass instead of GObjectClass
+
+       * gtk/gtktextview.c (widget_to_buffer): fix this the way 
+       buffer_to_widget was fixed, to avoid duplicating 
+       the code that computes text_window->allocation.x/y
+
 Sun Feb 24 21:18:20 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtksocket.c (gtk_socket_end_embedding): Fix
index 9c6c9719c543404b13f3e404ebb120bcc1d8c39e..b69e42d6d19207aadaeb4fbff0ea98ac409ac22f 100644 (file)
@@ -1,3 +1,12 @@
+2002-02-24  Havoc Pennington  <hp@pobox.com>
+
+       * gtk/gtktextbuffer.c (parent_class): parent_class variable was
+       GtkObjectClass instead of GObjectClass
+
+       * gtk/gtktextview.c (widget_to_buffer): fix this the way 
+       buffer_to_widget was fixed, to avoid duplicating 
+       the code that computes text_window->allocation.x/y
+
 Sun Feb 24 21:18:20 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtksocket.c (gtk_socket_end_embedding): Fix
index 9c6c9719c543404b13f3e404ebb120bcc1d8c39e..b69e42d6d19207aadaeb4fbff0ea98ac409ac22f 100644 (file)
@@ -1,3 +1,12 @@
+2002-02-24  Havoc Pennington  <hp@pobox.com>
+
+       * gtk/gtktextbuffer.c (parent_class): parent_class variable was
+       GtkObjectClass instead of GObjectClass
+
+       * gtk/gtktextview.c (widget_to_buffer): fix this the way 
+       buffer_to_widget was fixed, to avoid duplicating 
+       the code that computes text_window->allocation.x/y
+
 Sun Feb 24 21:18:20 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtksocket.c (gtk_socket_end_embedding): Fix
index 9c6c9719c543404b13f3e404ebb120bcc1d8c39e..b69e42d6d19207aadaeb4fbff0ea98ac409ac22f 100644 (file)
@@ -1,3 +1,12 @@
+2002-02-24  Havoc Pennington  <hp@pobox.com>
+
+       * gtk/gtktextbuffer.c (parent_class): parent_class variable was
+       GtkObjectClass instead of GObjectClass
+
+       * gtk/gtktextview.c (widget_to_buffer): fix this the way 
+       buffer_to_widget was fixed, to avoid duplicating 
+       the code that computes text_window->allocation.x/y
+
 Sun Feb 24 21:18:20 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtksocket.c (gtk_socket_end_embedding): Fix
index 9c6c9719c543404b13f3e404ebb120bcc1d8c39e..b69e42d6d19207aadaeb4fbff0ea98ac409ac22f 100644 (file)
@@ -1,3 +1,12 @@
+2002-02-24  Havoc Pennington  <hp@pobox.com>
+
+       * gtk/gtktextbuffer.c (parent_class): parent_class variable was
+       GtkObjectClass instead of GObjectClass
+
+       * gtk/gtktextview.c (widget_to_buffer): fix this the way 
+       buffer_to_widget was fixed, to avoid duplicating 
+       the code that computes text_window->allocation.x/y
+
 Sun Feb 24 21:18:20 2002  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtksocket.c (gtk_socket_end_embedding): Fix
index a2814a749f76c031fd20bafe96d7cd50c64e6208..69deec9714eeb0cbcb20d3801e722f726f05d61a 100644 (file)
@@ -113,7 +113,7 @@ static void remove_all_clipboard_contents_buffers (GtkTextBuffer *buffer);
 static void remove_all_selection_clipboards       (GtkTextBuffer *buffer);
 static void update_selection_clipboards           (GtkTextBuffer *buffer);
 
-static GtkObjectClass *parent_class = NULL;
+static GObjectClass *parent_class = NULL;
 static guint signals[LAST_SIGNAL] = { 0 };
 
 GType
index 9e9c164fce23b0058ddb8ed790914a5e0164f6fc..1b5faf23b5bb5acb9125439438a308f3ca78cf91 100644 (file)
@@ -6844,34 +6844,17 @@ widget_to_buffer (GtkTextView *text_view,
                   gint         widget_y,
                   gint        *buffer_x,
                   gint        *buffer_y)
-{
-  gint focus_edge_width;
-  gboolean interior_focus;
-  gint focus_width;
-  gint border_width = GTK_CONTAINER (text_view)->border_width;
-  
-  gtk_widget_style_get (GTK_WIDGET (text_view),
-                       "interior_focus", &interior_focus,
-                       "focus_line_width", &focus_width,
-                       NULL);
-
-  if (interior_focus)
-    focus_edge_width = 0;
-  else
-    focus_edge_width = focus_width;
-  
+{  
   if (buffer_x)
     {
-      *buffer_x = widget_x - focus_edge_width - border_width + text_view->xoffset;
-      if (text_view->left_window)
-        *buffer_x -= text_view->left_window->allocation.width;
+      *buffer_x = widget_x + text_view->xoffset;
+      *buffer_x -= text_view->text_window->allocation.x;
     }
 
   if (buffer_y)
     {
-      *buffer_y = widget_y - focus_edge_width - border_width + text_view->yoffset;
-      if (text_view->top_window)
-        *buffer_y -= text_view->top_window->allocation.height;
+      *buffer_y = widget_y + text_view->yoffset;
+      *buffer_y -= text_view->text_window->allocation.y;
     }
 }