[libhandy/wip/haecker-felix/flap-widget: 108/138] Miscellaneous fixes
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy/wip/haecker-felix/flap-widget: 108/138] Miscellaneous fixes
- Date: Mon, 16 Nov 2020 21:55:16 +0000 (UTC)
commit 06deb6ac12612f8172fd6ce516e012923d562ff0
Author: Felix Häcker <haeckerfelix gnome org>
Date: Mon Jul 27 14:54:43 2020 +0200
Miscellaneous fixes
src/hdy-flap.c | 28 +++++++++++++---------------
1 file changed, 13 insertions(+), 15 deletions(-)
---
diff --git a/src/hdy-flap.c b/src/hdy-flap.c
index dc5a3668..7384643d 100644
--- a/src/hdy-flap.c
+++ b/src/hdy-flap.c
@@ -240,12 +240,6 @@ hdy_flap_class_init (HdyFlapClass *klass)
widget_class->get_preferred_height_for_width = hdy_flap_get_preferred_height_for_width;
widget_class->size_allocate = hdy_flap_size_allocate;
- gtk_container_class_handle_border_width (container_class);
-
- g_object_class_override_property (object_class,
- PROP_ORIENTATION,
- "orientation");
-
/**
* HdyFlap:flap:
*
@@ -336,6 +330,10 @@ hdy_flap_class_init (HdyFlapClass *klass)
g_object_class_install_properties (object_class, LAST_PROP, props);
+ g_object_class_override_property (object_class,
+ PROP_ORIENTATION,
+ "orientation");
+
gtk_widget_class_set_css_name (widget_class, "flap");
}
@@ -411,7 +409,7 @@ hdy_flap_set_flap (HdyFlap *self,
HdyFlapMode
hdy_flap_get_flap_mode (HdyFlap *self)
{
- g_return_val_if_fail (HDY_IS_FLAP (self), FALSE);
+ g_return_val_if_fail (HDY_IS_FLAP (self), HDY_FLAP_MODE_NON_OVERLAY);
return self->flap_mode;
}
@@ -424,8 +422,8 @@ hdy_flap_get_flap_mode (HdyFlap *self)
* Since: 1.0
*/
void
-hdy_flap_set_flap_mode (HdyFlap *self,
- HdyFlapMode flap_mode)
+hdy_flap_set_flap_mode (HdyFlap *self,
+ HdyFlapMode flap_mode)
{
g_return_if_fail (HDY_IS_FLAP (self));
@@ -461,8 +459,8 @@ hdy_flap_get_flap_position (HdyFlap *self)
* Since: 1.0
*/
void
-hdy_flap_set_flap_position (HdyFlap *self,
- GtkPackType flap_position)
+hdy_flap_set_flap_position (HdyFlap *self,
+ GtkPackType flap_position)
{
g_return_if_fail (HDY_IS_FLAP (self));
@@ -498,8 +496,8 @@ hdy_flap_get_reveal_flap (HdyFlap *self)
* Since: 1.0
*/
void
-hdy_flap_set_reveal_flap (HdyFlap *self,
- gboolean reveal_flap)
+hdy_flap_set_reveal_flap (HdyFlap *self,
+ gboolean reveal_flap)
{
g_return_if_fail (HDY_IS_FLAP (self));
@@ -552,7 +550,7 @@ hdy_flap_get_overlay_duration (HdyFlap *self)
*/
void
hdy_flap_set_overlay_duration (HdyFlap *self,
- gint overlay_duration)
+ gint overlay_duration)
{
g_return_if_fail (HDY_IS_FLAP (self));
@@ -589,7 +587,7 @@ hdy_flap_get_reveal_duration (HdyFlap *self)
*/
void
hdy_flap_set_reveal_duration (HdyFlap *self,
- gint reveal_duration)
+ gint reveal_duration)
{
g_return_if_fail (HDY_IS_FLAP (self));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]