CodeSlayerMenuItem

CodeSlayerMenuItem — The menu item.

Synopsis

#include <codeslayer/codeslayer-menuitem.h>

struct              CodeSlayerMenuItem;
GtkWidget *         codeslayer_menu_item_new            (void);
GtkWidget *         codeslayer_menu_item_new_with_label (const gchar *label);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkWidget
               +----GtkContainer
                     +----GtkBin
                           +----GtkMenuItem
                                 +----CodeSlayerMenuItem

Implemented Interfaces

CodeSlayerMenuItem implements AtkImplementorIface, GtkBuildable, GtkActivatable and GtkActionable.

Signals

  "projects-menu-selected"                         : No Hooks

Description

This is used for the projects popup menu. Classes that implement this should bind to the projects-menu-selected signal.

Details

struct CodeSlayerMenuItem

struct CodeSlayerMenuItem;

codeslayer_menu_item_new ()

GtkWidget *         codeslayer_menu_item_new            (void);

Creates a new CodeSlayerMenuItem.

Returns :

a new CodeSlayerMenuItem.

codeslayer_menu_item_new_with_label ()

GtkWidget *         codeslayer_menu_item_new_with_label (const gchar *label);

Creates a new CodeSlayerMenuItem.

label :

the text for the menu item

Returns :

a new CodeSlayerMenuItem.

Signal Details

The "projects-menu-selected" signal

void                user_function                      (CodeSlayerMenuItem *menuitem,
                                                        gpointer            selections,
                                                        gpointer            user_data)       : No Hooks

The ::projects-menu-selected signal is a request once the menu item is selected.

menuitem :

the menuitem that received the signal

selections :

the GList of CodeSlayerProjectsSelection objects

user_data :

user data set when the signal handler was connected.