虚拟方法

GioMenuModeliterate_item_attributes

自: 2.32

声明 [src]

GMenuAttributeIter*
iterate_item_attributes (
  GMenuModel* model,
  gint item_index
)

描述 [src]

创建一个 GMenuAttributeIter 以遍历 model 中位置为 item_index 的项目的属性。

操作完成后,必须使用 g_object_unref() 释放迭代器。

自 2.32 起可用

参数

item_index

类型: gint

项目的索引。

返回值

类型: GMenuAttributeIter

一个新的 GMenuAttributeIter

方法调用者负责管理返回的数据,包括释放它。