summaryrefslogtreecommitdiff
path: root/mate-panel/button-widget.c
diff options
context:
space:
mode:
authorLaurent Napias <[email protected]>2019-06-29 11:54:59 +0200
committerZenWalker <[email protected]>2019-07-05 17:09:27 +0200
commit188846cecfda3b8f19e45ca37a60d817bff2afed (patch)
tree571ae1908573dd88f390482faf1a8c75ea61cc68 /mate-panel/button-widget.c
parent96ceed2717780188bc0eb84565d91617783d7192 (diff)
downloadmate-panel-188846cecfda3b8f19e45ca37a60d817bff2afed.tar.bz2
mate-panel-188846cecfda3b8f19e45ca37a60d817bff2afed.tar.xz
Remove trailing whitespaces
Diffstat (limited to 'mate-panel/button-widget.c')
-rw-r--r--mate-panel/button-widget.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/mate-panel/button-widget.c b/mate-panel/button-widget.c
index d2e25400..1f3abb0c 100644
--- a/mate-panel/button-widget.c
+++ b/mate-panel/button-widget.c
@@ -309,7 +309,7 @@ calc_arrow (PanelOrientation orientation,
if (button_height > 50)
button_height = 50;
}
-
+
*size = ((orientation & PANEL_HORIZONTAL_MASK) ? button_width : button_height) / 2;
*angle = 0;
@@ -454,7 +454,7 @@ button_widget_get_preferred_width (GtkWidget *widget,
/* should get this value (50) from gsettings, user defined value in properties of the panel (max_icon_size) OR use 48*/
if ( size > 50 )
- size = 50;
+ size = 50;
} else
size = gtk_widget_get_allocated_width (parent);
@@ -477,11 +477,11 @@ button_widget_get_preferred_height (GtkWidget *widget,
size = gtk_widget_get_allocated_height (parent);
else {
size = gtk_widget_get_allocated_width (parent);
-
+
/* should get this value (50) from gsettings, user defined value in properties of the panel (max_icon_size) OR use 48*/
if ( size > 50 )
- size = 50;
-
+ size = 50;
+
}
*minimal_height = *natural_height = size;
@@ -497,14 +497,14 @@ button_widget_size_allocate (GtkWidget *widget,
/* should get this value (50) from gsettings, user defined value in properties of the panel (max_icon_size) OR use 48?*/
if (button_widget->priv->orientation & PANEL_HORIZONTAL_MASK) {
if ( allocation->height > 50 ) {
- allocation->width = 50;
+ allocation->width = 50;
}
} else {
if ( allocation->width > 50 ) {
- allocation->height = 50;
+ allocation->height = 50;
}
}
-
+
GTK_WIDGET_CLASS (button_widget_parent_class)->size_allocate (widget, allocation);
if (button_widget->priv->orientation & PANEL_HORIZONTAL_MASK)
@@ -710,7 +710,7 @@ button_widget_new (const char *filename,
"orientation", orientation,
"icon-name", filename,
NULL);
-
+
return retval;
}