Closed
Bug 1410885
Opened 7 years ago
Closed 7 years ago
Implement border/padding helpers
Categories
(Core :: Widget: Gtk, enhancement, P1)
Core
Widget: Gtk
Tracking
()
RESOLVED
FIXED
mozilla58
People
(Reporter: stransky, Assigned: stransky)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
Add MOZ_GTK_HEADER_BAR* widgets tp moz_gtk_get_widget_border()
Assignee | ||
Updated•7 years ago
|
Summary: Implement moz_gtk_get_widget_border() for MOZ_GTK_HEADER_BAR* widgets → Use border helpers for MOZ_GTK_HEADER_BAR* widgets at moz_gtk_get_widget_border()
Assignee | ||
Comment 1•7 years ago
|
||
We actually have the border/padding getters here so let's commit the helpers at least.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 4•7 years ago
|
||
mozreview-review |
Comment on attachment 8921040 [details]
Bug 1410885 - Implement border/padding helpers,
https://reviewboard.mozilla.org/r/192000/#review197212
r+ with that fixed.
::: widget/gtk/gtk3drawing.cpp:57
(Diff revision 1)
> +static void moz_gtk_add_margin_border_padding(GtkStyleContext *style,
> + gint* left, gint* top,
> + gint* right, gint* bottom);
> +static void moz_gtk_add_border_padding(GtkStyleContext *style,
> + gint* left, gint* top,
> + gint* right, gint* bottom);
Instead of using declaration please move the implementation here.
::: widget/gtk/gtk3drawing.cpp:2208
(Diff revision 1)
>
> *left = *top = *right = *bottom = gtk_container_get_border_width(GTK_CONTAINER(w));
> - moz_gtk_add_style_border(style,
> + moz_gtk_add_border_padding(style,
> - left, top, right, bottom);
> - moz_gtk_add_style_padding(style,
> - left, top, right, bottom);
> + left, top, right, bottom);
nit: when touching this, this can stay on the same line with moz_gtk_add_border_padding. It's still in the 80 chars per line.
Comment 5•7 years ago
|
||
mozreview-review |
Comment on attachment 8921041 [details]
Bug 1410885 - Use helpers for MOZ_GTK_HEADER_BAR* widgets,
https://reviewboard.mozilla.org/r/192002/#review197230
Attachment #8921041 -
Flags: review?(jhorak) → review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Attachment #8921041 -
Attachment is obsolete: true
Assignee | ||
Updated•7 years ago
|
Summary: Use border helpers for MOZ_GTK_HEADER_BAR* widgets at moz_gtk_get_widget_border() → Implement border/padding helpers
Comment 7•7 years ago
|
||
mozreview-review |
Comment on attachment 8921040 [details]
Bug 1410885 - Implement border/padding helpers,
https://reviewboard.mozilla.org/r/192000/#review198138
Thank you!
Attachment #8921040 -
Flags: review?(jhorak) → review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Updated•7 years ago
|
status-firefox57:
--- → wontfix
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/89dfd44fcfd4
Implement border/padding helpers, r=jhorak
Keywords: checkin-needed
Comment 9•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
You need to log in
before you can comment on or make changes to this bug.
Description
•