summaryrefslogtreecommitdiff
path: root/gtk/gtkmenuitem.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2015-12-29 17:40:30 -0800
committerCosimo Cecchi <cosimoc@gnome.org>2016-01-03 00:42:51 -0800
commit0740f23c77c499810c716f61591818371fa4211e (patch)
treeaf0b22903a137a1a4beaa3f7cc8b68df19df907b /gtk/gtkmenuitem.c
parenteff8865ab1332324bbb486b57e60ebd957e5a661 (diff)
downloadgtk+-0740f23c77c499810c716f61591818371fa4211e.tar.gz
menuitem: don't read wide-separators or separator-height
Separators inside menus are working completely through CSS since GtkMenuItem has been ported to use a gadget. Remove this unused code from here.
Diffstat (limited to 'gtk/gtkmenuitem.c')
-rw-r--r--gtk/gtkmenuitem.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c
index c3a9713e43..c931e5290c 100644
--- a/gtk/gtkmenuitem.c
+++ b/gtk/gtkmenuitem.c
@@ -556,32 +556,6 @@ gtk_menu_item_real_get_height (GtkWidget *widget,
min_height = MAX (min_height, arrow_size);
nat_height = MAX (nat_height, arrow_size);
}
- else /* separator item */
- {
- gboolean wide_separators;
- gint separator_height;
-
- gtk_widget_style_get (widget,
- "wide-separators", &wide_separators,
- "separator-height", &separator_height,
- NULL);
-
- if (wide_separators)
- {
- min_height += separator_height;
- nat_height += separator_height;
- }
- else
- {
- /* force odd, so that we can have the same space above and
- * below the line.
- */
- if (min_height % 2 == 0)
- min_height += 1;
- if (nat_height % 2 == 0)
- nat_height += 1;
- }
- }
accel_width = 0;
gtk_container_foreach (GTK_CONTAINER (menu_item),