forked from AuroraMiddleware/gtk
texthandle: Remove knowledge about window borders
We need to expand beyond these if necessary, so don't artificially limit things here.
This commit is contained in:
parent
551931c1c6
commit
5a499ef3e1
@ -373,7 +373,6 @@ _gtk_text_handle_update (GtkTextHandle *handle,
|
|||||||
cairo_rectangle_int_t rect;
|
cairo_rectangle_int_t rect;
|
||||||
gint width, height;
|
gint width, height;
|
||||||
GtkWidget *window;
|
GtkWidget *window;
|
||||||
GtkBorder shadow;
|
|
||||||
GtkAllocation alloc;
|
GtkAllocation alloc;
|
||||||
gint w, h;
|
gint w, h;
|
||||||
|
|
||||||
@ -412,12 +411,7 @@ _gtk_text_handle_update (GtkTextHandle *handle,
|
|||||||
* knowledge about how popover_get_rect() works.
|
* knowledge about how popover_get_rect() works.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
_gtk_window_get_shadow_width (GTK_WINDOW (window), &shadow);
|
|
||||||
gtk_widget_get_allocation (window, &alloc);
|
gtk_widget_get_allocation (window, &alloc);
|
||||||
alloc.x += shadow.left;
|
|
||||||
alloc.y += shadow.top;
|
|
||||||
alloc.width -= shadow.left + shadow.right;
|
|
||||||
alloc.height -= shadow.top + shadow.bottom;
|
|
||||||
|
|
||||||
w = width + border->left + border->right;
|
w = width + border->left + border->right;
|
||||||
h = height + border->top + border->bottom;
|
h = height + border->top + border->bottom;
|
||||||
|
Loading…
Reference in New Issue
Block a user