Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
GIMP
Commits
53f34ebc
Commit
53f34ebc
authored
Sep 09, 2016
by
Timm Bäder
🤔
Committed by
Michael Natterer
Sep 09, 2016
Browse files
Chain up in some size-allocate implementations
The default implementation does just the right thing for most widgets.
parent
64a93c60
Changes
7
Hide whitespace changes
Inline
Side-by-side
app/widgets/gimpcircle.c
View file @
53f34ebc
...
...
@@ -334,7 +334,7 @@ gimp_circle_size_allocate (GtkWidget *widget,
{
GimpCircle
*
circle
=
GIMP_CIRCLE
(
widget
);
gtk_widget_set
_allocat
ion
(
widget
,
allocation
);
GTK_WIDGET_CLASS
(
parent_class
)
->
size
_allocat
e
(
widget
,
allocation
);
if
(
gtk_widget_get_realized
(
widget
))
gdk_window_move_resize
(
circle
->
priv
->
event_window
,
...
...
app/widgets/gimpoverlaybox.c
View file @
53f34ebc
...
...
@@ -210,14 +210,7 @@ gimp_overlay_box_size_allocate (GtkWidget *widget,
GimpOverlayBox
*
box
=
GIMP_OVERLAY_BOX
(
widget
);
GList
*
list
;
gtk_widget_set_allocation
(
widget
,
allocation
);
if
(
gtk_widget_get_realized
(
widget
))
gdk_window_move_resize
(
gtk_widget_get_window
(
widget
),
allocation
->
x
,
allocation
->
y
,
allocation
->
width
,
allocation
->
height
);
GTK_WIDGET_CLASS
(
parent_class
)
->
size_allocate
(
widget
,
allocation
);
for
(
list
=
box
->
children
;
list
;
list
=
g_list_next
(
list
))
gimp_overlay_child_size_allocate
(
box
,
list
->
data
);
...
...
app/widgets/gimpview.c
View file @
53f34ebc
...
...
@@ -376,7 +376,7 @@ gimp_view_size_allocate (GtkWidget *widget,
allocation
->
width
=
width
;
allocation
->
height
=
height
;
gtk_widget_set
_allocat
ion
(
widget
,
allocation
);
GTK_WIDGET_CLASS
(
parent_class
)
->
size
_allocat
e
(
widget
,
allocation
);
if
(
gtk_widget_get_realized
(
widget
))
gdk_window_move_resize
(
view
->
event_window
,
...
...
libgimpwidgets/gimpcolorarea.c
View file @
53f34ebc
...
...
@@ -343,8 +343,7 @@ gimp_color_area_size_allocate (GtkWidget *widget,
{
GimpColorArea
*
area
=
GIMP_COLOR_AREA
(
widget
);
if
(
GTK_WIDGET_CLASS
(
parent_class
)
->
size_allocate
)
GTK_WIDGET_CLASS
(
parent_class
)
->
size_allocate
(
widget
,
allocation
);
GTK_WIDGET_CLASS
(
parent_class
)
->
size_allocate
(
widget
,
allocation
);
if
(
allocation
->
width
!=
area
->
width
||
allocation
->
height
!=
area
->
height
)
...
...
libgimpwidgets/gimpframe.c
View file @
53f34ebc
...
...
@@ -149,7 +149,7 @@ gimp_frame_size_allocate (GtkWidget *widget,
GtkWidget
*
child
=
gtk_bin_get_child
(
GTK_BIN
(
widget
));
GtkAllocation
child_allocation
;
gtk_widget_set
_allocat
ion
(
widget
,
allocation
);
GTK_WIDGET_CLASS
(
parent_class
)
->
size
_allocat
e
(
widget
,
allocation
);
gimp_frame_child_allocate
(
frame
,
&
child_allocation
);
...
...
libgimpwidgets/gimpruler.c
View file @
53f34ebc
...
...
@@ -863,7 +863,7 @@ gimp_ruler_size_allocate (GtkWidget *widget,
resized
=
(
widget_allocation
.
width
!=
allocation
->
width
||
widget_allocation
.
height
!=
allocation
->
height
);
gtk_widget_set
_allocat
ion
(
widget
,
allocation
);
GTK_WIDGET_CLASS
(
parent_class
)
->
size
_allocat
e
(
widget
,
allocation
);
if
(
gtk_widget_get_realized
(
widget
))
{
...
...
modules/gimpcolorwheel.c
View file @
53f34ebc
...
...
@@ -353,7 +353,7 @@ gimp_color_wheel_size_allocate (GtkWidget *widget,
gint
focus_width
;
gint
focus_pad
;
gtk_widget_set
_allocat
ion
(
widget
,
allocation
);
GTK_WIDGET_CLASS
(
parent_class
)
->
size
_allocat
e
(
widget
,
allocation
);
gtk_widget_style_get
(
widget
,
"focus-line-width"
,
&
focus_width
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment