Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 153265 Details for
Bug 187565
Evolution miscalculates thread expander location, aborts with BadAlloc error
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Bad patch
draw-expander.patch (text/plain), 1.46 KB, created by
Matthew Barnes
on 2007-04-23 05:29:41 UTC
(
hide
)
Description:
Bad patch
Filename:
MIME Type:
Creator:
Matthew Barnes
Created:
2007-04-23 05:29:41 UTC
Size:
1.46 KB
patch
obsolete
>Index: widgets/table/e-cell-tree.c >=================================================================== >--- widgets/table/e-cell-tree.c (revision 33440) >+++ widgets/table/e-cell-tree.c (working copy) >@@ -229,13 +229,30 @@ draw_retro_expander (ECellTreeView *ectv > } > > static void >-draw_expander (ECellTreeView *ectv, GdkDrawable *drawable, GtkExpanderStyle expander_style, GtkStateType state, GdkRectangle *rect) >+draw_expander (ECellTreeView *ectv, GdkDrawable *drawable, >+ GtkExpanderStyle expander_style, GtkStateType state, >+ GdkRectangle *rect) > { > GtkWidget *tree = GTK_WIDGET (ectv->canvas)->parent; >- gint exp_size; >- gtk_widget_style_get (tree, "expander_size", &exp_size, NULL); >+ gint exp_size, x, y; > >- gtk_paint_expander (tree->style, drawable, state, rect, tree, "treeview", rect->x + rect->width - exp_size / 2, rect->y + rect->height / 2, expander_style); >+ gtk_widget_style_get (tree, "expander-size", &exp_size, NULL); >+ >+ /* Calculate the center of the right-justified expander. */ >+ x = rect->x + rect->width - exp_size / 2; >+ y = rect->y + rect->height / 2; >+ >+ /* XXX Drawable is actually a GdkPixbuf, not a GdkWindow. >+ * But the begin_paint / end_paint functions still seem to >+ * improve the situation. I don't understand why. */ >+ >+ gdk_window_begin_paint_rect (drawable, rect); >+ >+ gtk_paint_expander ( >+ tree->style, drawable, state, rect, tree, >+ "treeview", x, y, expander_style); >+ >+ gdk_window_end_paint (drawable); > } > > /*
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 187565
:
137833
| 153265