Closed Bug 1410885 Opened 7 years ago Closed 7 years ago

Implement border/padding helpers

Categories

(Core :: Widget: Gtk, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
mozilla58
Tracking Status
firefox57 --- wontfix
firefox58 --- fixed

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()
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()
We actually have the border/padding getters here so let's commit the helpers at least.
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.
Attachment #8921041 - Flags: review?(jhorak) → review+
Attachment #8921041 - Attachment is obsolete: true
Summary: Use border helpers for MOZ_GTK_HEADER_BAR* widgets at moz_gtk_get_widget_border() → Implement border/padding helpers
Attachment #8921040 - Flags: review?(jhorak) → review+
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/autoland/rev/89dfd44fcfd4 Implement border/padding helpers, r=jhorak
Keywords: checkin-needed
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.

Attachment

General

Created:
Updated:
Size: