Xfce.GtkMenuItem – libxfce4ui-2 Reference Manual
Packages
libxfce4ui-2
Xfce
GtkMenuItem
CHECK_MENU_ITEM
IMAGE_MENU_ITEM
MENU_ITEM
RADIO_MENU_ITEM
@new
new_from_action_entry
set_accel_label
GtkMenuItem
Description:
[
CCode
( cprefix =
"XFCE_GTK_"
, has_type_id =
false
) ]
public
enum
GtkMenuItem
List of item types which are supported by the
GtkActionEntry
.
To be extended if required.
Namespace:
Xfce
Package:
libxfce4ui-2
Content:
Enum values:
CHECK_MENU_ITEM
-
see
CheckMenuItem
IMAGE_MENU_ITEM
-
see
ImageMenuItem
MENU_ITEM
-
see
MenuItem
RADIO_MENU_ITEM
-
see
RadioMenuItem
Static methods:
public
static
unowned
Widget
@new
(
string
label_text,
string
? tooltip_text,
string
? accel_path,
Callback
? callback,
Object
? callback_param,
MenuShell
? menu_to_append_item)
Convenience method to create a
MenuItem
and preconfigure it with the passed parameters.
public
static
unowned
Widget
?
new_from_action_entry
(
GtkActionEntry
action_entry,
Object
? callback_param,
MenuShell
? menu_to_append_item)
Method to create a menu item from the passed action entry
public
static
void
set_accel_label
(
MenuItem
menu_item,
string
? accel_path)
Use the passed accel_path show the related
AccelLabel
with the correct accelerator on the item.