Commit f8525bab authored by Morten Welinder's avatar Morten Welinder

Gui: use a proper GtkSeparatorMenuItem

Using an empty item was probably a remnant from gtk 1.2 or thereabouts.
parent cd2a8b61
2018-11-17 Morten Welinder <terra@gnome.org>
* src/gui-util.c (gnm_create_popup_menu): Use a
GtkSeparatorMenuItem instead of an empty item.
* src/func.c (gnm_func_set_varargs): Correctly signal a vararg
function by setting max argumnets to maxint.
......
......@@ -690,8 +690,7 @@ gnm_create_popup_menu (GnmPopupMenuElement const *elements,
}
} else if (elements->index >= 0) {
/* separator */
item = gtk_menu_item_new ();
gtk_widget_set_sensitive (item, FALSE);
item = gtk_separator_menu_item_new ();
}
if (elements->index > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment