Example #1
0
/*
 * Adds menu items to a context menu which is just about to appear!
 * Add commands to aid in editing a GtkListItem, with signals pointing to
 * other functions in this file.
 */
static void
gb_list_item_create_popup_menu (GtkWidget * widget,
				GbWidgetCreateMenuData * data)
{
  /* Add command to remove child label. */
  gb_widget_create_child_label_popup_menu (widget, data);
}
Example #2
0
/*
 * Adds menu items to a context menu which is just about to appear!
 * Add commands to aid in editing a GtkRadioButton, with signals pointing to
 * other functions in this file.
 */
static void
gb_radio_button_create_popup_menu (GtkWidget * widget, GbWidgetCreateMenuData
				   * data)
{
  /* Add command to remove child label. */
  gb_widget_create_child_label_popup_menu (widget, data);

  /* Add commands for toolbar buttons. */
  gb_toolbar_create_toolbar_button_popup_menu (widget, data);
}