GarconMenuItem

## GarconMenuItem GarconMenuItem |

## Synopsis

    struct              GarconMenuItemClass;
    GarconMenuItem *    garcon_menu_item_new                (GFile *file);
    GarconMenuItem *    garcon_menu_item_new_for_path       (const gchar *filename);
    GarconMenuItem *    garcon_menu_item_new_for_uri        (const gchar *uri);
    gboolean            garcon_menu_item_reload             (GarconMenuItem *item,
                                                             gboolean *affects_the_outside,
                                                             GError **error);
    gboolean            garcon_menu_item_reload_from_file   (GarconMenuItem *item,
                                                             GFile *file,
                                                             gboolean *affects_the_outside,
                                                             GError **error);
    GFile *             garcon_menu_item_get_file           (GarconMenuItem *item);
    gchar *             garcon_menu_item_get_uri            (GarconMenuItem *item);
    const gchar *       garcon_menu_item_get_desktop_id     (GarconMenuItem *item);
    void                garcon_menu_item_set_desktop_id     (GarconMenuItem *item,
                                                             const gchar *desktop_id);
    const gchar *       garcon_menu_item_get_command        (GarconMenuItem *item);
    void                garcon_menu_item_set_command        (GarconMenuItem *item,
                                                             const gchar *command);
    const gchar *       garcon_menu_item_get_try_exec       (GarconMenuItem *item);
    void                garcon_menu_item_set_try_exec       (GarconMenuItem *item,
                                                             const gchar *try_exec);
    const gchar *       garcon_menu_item_get_name           (GarconMenuItem *item);
    void                garcon_menu_item_set_name           (GarconMenuItem *item,
                                                             const gchar *name);
    const gchar *       garcon_menu_item_get_generic_name   (GarconMenuItem *item);
    void                garcon_menu_item_set_generic_name   (GarconMenuItem *item,
                                                             const gchar *generic_name);
    const gchar *       garcon_menu_item_get_comment        (GarconMenuItem *item);
    void                garcon_menu_item_set_comment        (GarconMenuItem *item,
                                                             const gchar *comment);
    const gchar *       garcon_menu_item_get_icon_name      (GarconMenuItem *item);
    void                garcon_menu_item_set_icon_name      (GarconMenuItem *item,
                                                             const gchar *icon_name);
    const gchar *       garcon_menu_item_get_path           (GarconMenuItem *item);
    void                garcon_menu_item_set_path           (GarconMenuItem *item,
                                                             const gchar *path);
    gboolean            garcon_menu_item_get_hidden         (GarconMenuItem *item);
    void                garcon_menu_item_set_hidden         (GarconMenuItem *item,
                                                             gboolean hidden);
    gboolean            garcon_menu_item_requires_terminal  (GarconMenuItem *item);
    void                garcon_menu_item_set_requires_terminal
                                                            (GarconMenuItem *item,
                                                             gboolean requires_terminal);
    gboolean            garcon_menu_item_get_no_display     (GarconMenuItem *item);
    void                garcon_menu_item_set_no_display     (GarconMenuItem *item,
                                                             gboolean no_display);
    gboolean            garcon_menu_item_supports_startup_notification
                                                            (GarconMenuItem *item);
    void                garcon_menu_item_set_supports_startup_notification
                                                            (GarconMenuItem *item,
                                                             gboolean supports_startup_notification);
    GList *             garcon_menu_item_get_categories     (GarconMenuItem *item);
    void                garcon_menu_item_set_categories     (GarconMenuItem *item,
                                                             GList *categories);
    gboolean            garcon_menu_item_has_category       (GarconMenuItem *item,
                                                             const gchar *category);
    gboolean            garcon_menu_item_get_show_in_environment
                                                            (GarconMenuItem *item);
    gboolean            garcon_menu_item_only_show_in_environment
                                                            (GarconMenuItem *item);
    void                garcon_menu_item_ref                (GarconMenuItem *item);
    void                garcon_menu_item_unref              (GarconMenuItem *item);
    gint                garcon_menu_item_get_allocated      (GarconMenuItem *item);
    void                garcon_menu_item_increment_allocated
                                                            (GarconMenuItem *item);
    void                garcon_menu_item_decrement_allocated
                                                            (GarconMenuItem *item);
                        GarconMenuItemPrivate;

## Description

## Details

### struct GarconMenuItemClass

    struct GarconMenuItemClass {
      GObjectClass __parent__;

      /* signals */
      void (*changed) (GarconMenuItem *item);
    };

### garcon_menu_item_new ()

    GarconMenuItem *    garcon_menu_item_new                (GFile *file);

### garcon_menu_item_new_for_path ()

    GarconMenuItem *    garcon_menu_item_new_for_path       (const gchar *filename);

### garcon_menu_item_new_for_uri ()

    GarconMenuItem *    garcon_menu_item_new_for_uri        (const gchar *uri);

### garcon_menu_item_reload ()

    gboolean            garcon_menu_item_reload             (GarconMenuItem *item,
                                                             gboolean *affects_the_outside,
                                                             GError **error);

### garcon_menu_item_reload_from_file ()

    gboolean            garcon_menu_item_reload_from_file   (GarconMenuItem *item,
                                                             GFile *file,
                                                             gboolean *affects_the_outside,
                                                             GError **error);

### garcon_menu_item_get_file ()

    GFile *             garcon_menu_item_get_file           (GarconMenuItem *item);

Get the file for `item`.

Returns : | a GFile. The returned object should be unreffed with `g_object_unref()` when no longer needed.

### garcon_menu_item_get_uri ()

    gchar *             garcon_menu_item_get_uri            (GarconMenuItem *item);

### garcon_menu_item_get_desktop_id ()

    const gchar *       garcon_menu_item_get_desktop_id     (GarconMenuItem *item);

### garcon_menu_item_set_desktop_id ()

    void                garcon_menu_item_set_desktop_id     (GarconMenuItem *item,
                                                             const gchar *desktop_id);

### garcon_menu_item_get_command ()

    const gchar *       garcon_menu_item_get_command        (GarconMenuItem *item);

### garcon_menu_item_set_command ()

    void                garcon_menu_item_set_command        (GarconMenuItem *item,
                                                             const gchar *command);

### garcon_menu_item_get_try_exec ()

    const gchar *       garcon_menu_item_get_try_exec       (GarconMenuItem *item);

### garcon_menu_item_set_try_exec ()

    void                garcon_menu_item_set_try_exec       (GarconMenuItem *item,
                                                             const gchar *try_exec);

### garcon_menu_item_get_name ()

    const gchar *       garcon_menu_item_get_name           (GarconMenuItem *item);

### garcon_menu_item_set_name ()

    void                garcon_menu_item_set_name           (GarconMenuItem *item,
                                                             const gchar *name);

### garcon_menu_item_get_generic_name ()

    const gchar *       garcon_menu_item_get_generic_name   (GarconMenuItem *item);

### garcon_menu_item_set_generic_name ()

    void                garcon_menu_item_set_generic_name   (GarconMenuItem *item,
                                                             const gchar *generic_name);

### garcon_menu_item_get_comment ()

    const gchar *       garcon_menu_item_get_comment        (GarconMenuItem *item);

### garcon_menu_item_set_comment ()

    void                garcon_menu_item_set_comment        (GarconMenuItem *item,
                                                             const gchar *comment);

### garcon_menu_item_get_icon_name ()

    const gchar *       garcon_menu_item_get_icon_name      (GarconMenuItem *item);

### garcon_menu_item_set_icon_name ()

    void                garcon_menu_item_set_icon_name      (GarconMenuItem *item,
                                                             const gchar *icon_name);

### garcon_menu_item_get_path ()

    const gchar *       garcon_menu_item_get_path           (GarconMenuItem *item);

### garcon_menu_item_set_path ()

    void                garcon_menu_item_set_path           (GarconMenuItem *item,
                                                             const gchar *path);

### garcon_menu_item_get_hidden ()

    gboolean            garcon_menu_item_get_hidden         (GarconMenuItem *item);

### garcon_menu_item_set_hidden ()

    void                garcon_menu_item_set_hidden         (GarconMenuItem *item,
                                                             gboolean hidden);

### garcon_menu_item_requires_terminal ()

    gboolean            garcon_menu_item_requires_terminal  (GarconMenuItem *item);

### garcon_menu_item_set_requires_terminal ()

    void                garcon_menu_item_set_requires_terminal
                                                            (GarconMenuItem *item,
                                                             gboolean requires_terminal);

### garcon_menu_item_get_no_display ()

    gboolean            garcon_menu_item_get_no_display     (GarconMenuItem *item);

### garcon_menu_item_set_no_display ()

    void                garcon_menu_item_set_no_display     (GarconMenuItem *item,
                                                             gboolean no_display);

### garcon_menu_item_supports_startup_notification ()

    gboolean            garcon_menu_item_supports_startup_notification
                                                            (GarconMenuItem *item);

### garcon_menu_item_set_supports_startup_notification ()

    void                garcon_menu_item_set_supports_startup_notification
                                                            (GarconMenuItem *item,
                                                             gboolean supports_startup_notification);

### garcon_menu_item_get_categories ()

    GList *             garcon_menu_item_get_categories     (GarconMenuItem *item);

### garcon_menu_item_set_categories ()

    void                garcon_menu_item_set_categories     (GarconMenuItem *item,
                                                             GList *categories);

### garcon_menu_item_has_category ()

    gboolean            garcon_menu_item_has_category       (GarconMenuItem *item,
                                                             const gchar *category);

### garcon_menu_item_get_show_in_environment ()

    gboolean            garcon_menu_item_get_show_in_environment
                                                            (GarconMenuItem *item);

### garcon_menu_item_only_show_in_environment ()

    gboolean            garcon_menu_item_only_show_in_environment
                                                            (GarconMenuItem *item);

### garcon_menu_item_ref ()

    void                garcon_menu_item_ref                (GarconMenuItem *item);

### garcon_menu_item_unref ()

    void                garcon_menu_item_unref              (GarconMenuItem *item);

### garcon_menu_item_get_allocated ()

    gint                garcon_menu_item_get_allocated      (GarconMenuItem *item);

### garcon_menu_item_increment_allocated ()

    void                garcon_menu_item_increment_allocated
                                                            (GarconMenuItem *item);

### garcon_menu_item_decrement_allocated ()

    void                garcon_menu_item_decrement_allocated
                                                            (GarconMenuItem *item);

### GarconMenuItemPrivate

    typedef struct _GarconMenuItemPrivate GarconMenuItemPrivate;