Closed
Bug 877609
Opened 11 years ago
Closed 11 years ago
Port GTK2 to GTK3 - widget padding
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
RESOLVED
FIXED
mozilla25
People
(Reporter: stransky, Assigned: stransky)
References
Details
Attachments
(1 file, 1 obsolete file)
5.19 KB,
patch
|
stransky
:
review+
RyanVM
:
checkin+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #627699 +++ GTK+ 3.0 and GNOME 3 are approaching and we should get Firefox ready for them. This bug is for correct widget padding, see: https://bugzilla.mozilla.org/show_bug.cgi?id=627699#c251 https://bugzilla.mozilla.org/show_bug.cgi?id=627699#c262 https://bug627699.bugzilla.mozilla.org/attachment.cgi?id=727638
Assignee | ||
Comment 1•11 years ago
|
||
First part of the padding patch, reflects comments from https://bugzilla.mozilla.org/show_bug.cgi?id=627699#c262
Attachment #755892 -
Flags: review?(karlt)
Comment 2•11 years ago
|
||
Comment on attachment 755892 [details] [diff] [review] part1 > gtk_style_context_add_class(style, GTK_STYLE_CLASS_SCALE); >- gtk_style_context_get_border(style, state_flags, &border); > > if (flags == GTK_ORIENTATION_HORIZONTAL) { >- x = border.left; >+ x = gtk_widget_get_margin_left(widget); > y++; > } > else { > x++; >- y = border.top; >+ y = gtk_widget_get_margin_top(widget); > } It seems there is a margin on the GtkWidget and a margin on the GtkStyleContext. gtk_range_draw uses the margin from the style context and I can't see that the margin on the widget is related, so I think this code should also use the margin from the style context.
Attachment #755892 -
Flags: review?(karlt) → review+
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Whiteboard: [leave open for remaining patches][check linux try build before requesting checkin] → [leave open for remaining patches]
Assignee | ||
Updated•11 years ago
|
Attachment #768244 -
Flags: checkin?
Updated•11 years ago
|
Attachment #755892 -
Attachment is obsolete: true
Updated•11 years ago
|
Attachment #768244 -
Flags: checkin? → checkin+
Comment 4•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/9fc02d074c69
Keywords: checkin-needed
Comment 5•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/9fc02d074c69
Assignee | ||
Comment 6•11 years ago
|
||
Padding in GtkTree is addressed in Bug 897404 and I don't see any other bugs.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [leave open for remaining patches]
Updated•11 years ago
|
Target Milestone: --- → mozilla25
You need to log in
before you can comment on or make changes to this bug.
Description
•