[gtk/popover-menu-position] Drop GtkPopoverMenu::position
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/popover-menu-position] Drop GtkPopoverMenu::position
- Date: Mon, 4 Feb 2019 15:48:50 +0000 (UTC)
commit 268fcbb838bd548ddf4ee3b87f00453b40b9688f
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Feb 4 10:47:18 2019 -0500
Drop GtkPopoverMenu::position
This is another unnecessary position child property.
gtk/gtkpopovermenu.c | 25 -------------------------
1 file changed, 25 deletions(-)
---
diff --git a/gtk/gtkpopovermenu.c b/gtk/gtkpopovermenu.c
index 9f6f5564c5..b5e0d47a2e 100644
--- a/gtk/gtkpopovermenu.c
+++ b/gtk/gtkpopovermenu.c
@@ -116,7 +116,6 @@ enum {
enum {
CHILD_PROP_SUBMENU = 1,
- CHILD_PROP_POSITION
};
G_DEFINE_TYPE (GtkPopoverMenu, gtk_popover_menu, GTK_TYPE_POPOVER)
@@ -224,14 +223,6 @@ gtk_popover_menu_get_child_property (GtkContainer *container,
}
break;
- case CHILD_PROP_POSITION:
- {
- gint position;
- gtk_container_child_get (GTK_CONTAINER (stack), child, "position", &position, NULL);
- g_value_set_int (value, position);
- }
- break;
-
default:
GTK_CONTAINER_WARN_INVALID_CHILD_PROPERTY_ID (container, property_id, pspec);
break;
@@ -262,14 +253,6 @@ gtk_popover_menu_set_child_property (GtkContainer *container,
}
break;
- case CHILD_PROP_POSITION:
- {
- gint position;
- position = g_value_get_int (value);
- gtk_container_child_set (GTK_CONTAINER (stack), child, "position", position, NULL);
- }
- break;
-
default:
GTK_CONTAINER_WARN_INVALID_CHILD_PROPERTY_ID (container, property_id, pspec);
break;
@@ -360,14 +343,6 @@ gtk_popover_menu_class_init (GtkPopoverMenuClass *klass)
P_("The name of the submenu"),
NULL,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
-
- gtk_container_class_install_child_property (container_class,
- CHILD_PROP_POSITION,
- g_param_spec_int ("position",
- P_("Position"),
- P_("The index of the child in the parent"),
- -1, G_MAXINT, 0,
- G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]