[libhandy/wip/exalm/leaflet-transltions: 18/32] deck: Remove NONE transition type
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy/wip/exalm/leaflet-transltions: 18/32] deck: Remove NONE transition type
- Date: Wed, 17 Jun 2020 21:22:16 +0000 (UTC)
commit 78be1a38560024a56a39cd938eb13c47eb51de4d
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Thu Jun 4 18:05:06 2020 +0500
deck: Remove NONE transition type
Signed-off-by: Alexander Mikhaylenko <alexm gnome org>
examples/hdy-demo-window.c | 2 --
glade/libhandy.xml | 2 --
src/hdy-deck.c | 10 +---------
src/hdy-deck.h | 1 -
4 files changed, 1 insertion(+), 14 deletions(-)
---
diff --git a/examples/hdy-demo-window.c b/examples/hdy-demo-window.c
index 8d4053f7..22665601 100644
--- a/examples/hdy-demo-window.c
+++ b/examples/hdy-demo-window.c
@@ -178,8 +178,6 @@ deck_transition_name (HdyEnumValueObject *value,
g_return_val_if_fail (HDY_IS_ENUM_VALUE_OBJECT (value), NULL);
switch (hdy_enum_value_object_get_value (value)) {
- case HDY_DECK_TRANSITION_TYPE_NONE:
- return g_strdup (_("None"));
case HDY_DECK_TRANSITION_TYPE_OVER:
return g_strdup (_("Over"));
case HDY_DECK_TRANSITION_TYPE_UNDER:
diff --git a/glade/libhandy.xml b/glade/libhandy.xml
index e71e5fff..0aa5ff49 100644
--- a/glade/libhandy.xml
+++ b/glade/libhandy.xml
@@ -119,8 +119,6 @@
</property>
<property id="transition-type">
<displayable-values>
- <!-- HdyDeckTransitionType enumeration value -->
- <value id="HDY_DECK_TRANSITION_TYPE_NONE" name="None"/>
<!-- HdyDeckTransitionType enumeration value -->
<value id="HDY_DECK_TRANSITION_TYPE_OVER" name="Over"/>
<!-- HdyDeckTransitionType enumeration value -->
diff --git a/src/hdy-deck.c b/src/hdy-deck.c
index e0c18755..cadf9674 100644
--- a/src/hdy-deck.c
+++ b/src/hdy-deck.c
@@ -30,7 +30,6 @@
/**
* HdyDeckTransitionType:
- * @HDY_DECK_TRANSITION_TYPE_NONE: No transition
* @HDY_DECK_TRANSITION_TYPE_OVER: Cover the old page or uncover the new page, sliding from or towards the
end according to orientation, text direction and children order
* @HDY_DECK_TRANSITION_TYPE_UNDER: Uncover the new page or cover the old page, sliding from or towards the
start according to orientation, text direction and children order
* @HDY_DECK_TRANSITION_TYPE_SLIDE: Slide from left, right, up or down according to the orientation, text
direction and the children order
@@ -145,14 +144,11 @@ hdy_deck_get_transition_type (HdyDeck *self)
{
HdyStackableBoxTransitionType type;
- g_return_val_if_fail (HDY_IS_DECK (self), HDY_DECK_TRANSITION_TYPE_NONE);
+ g_return_val_if_fail (HDY_IS_DECK (self), HDY_DECK_TRANSITION_TYPE_OVER);
type = hdy_stackable_box_get_transition_type (HDY_GET_HELPER (self));
switch (type) {
- case HDY_STACKABLE_BOX_TRANSITION_TYPE_NONE:
- return HDY_DECK_TRANSITION_TYPE_NONE;
-
case HDY_STACKABLE_BOX_TRANSITION_TYPE_OVER:
return HDY_DECK_TRANSITION_TYPE_OVER;
@@ -191,10 +187,6 @@ hdy_deck_set_transition_type (HdyDeck *self,
g_return_if_fail (transition <= HDY_DECK_TRANSITION_TYPE_SLIDE);
switch (transition) {
- case HDY_DECK_TRANSITION_TYPE_NONE:
- type = HDY_STACKABLE_BOX_TRANSITION_TYPE_NONE;
- break;
-
case HDY_DECK_TRANSITION_TYPE_OVER:
type = HDY_STACKABLE_BOX_TRANSITION_TYPE_OVER;
break;
diff --git a/src/hdy-deck.h b/src/hdy-deck.h
index 8aa28265..471875fa 100644
--- a/src/hdy-deck.h
+++ b/src/hdy-deck.h
@@ -20,7 +20,6 @@ G_BEGIN_DECLS
G_DECLARE_DERIVABLE_TYPE (HdyDeck, hdy_deck, HDY, DECK, GtkContainer)
typedef enum {
- HDY_DECK_TRANSITION_TYPE_NONE,
HDY_DECK_TRANSITION_TYPE_OVER,
HDY_DECK_TRANSITION_TYPE_UNDER,
HDY_DECK_TRANSITION_TYPE_SLIDE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]