## GladeClipboard

GladeClipboard — A list of GladeWidget objects not in any GladeProject.

## Synopsis

                        GladeClipboard;
    GladeClipboard *    glade_clipboard_new                 (void);
    void                glade_clipboard_add                 (GladeClipboard *clipboard,
                                                             GList *widgets);
    void                glade_clipboard_remove              (GladeClipboard *clipboard,
                                                             GList *widgets);
    void                glade_clipboard_selection_add       (GladeClipboard *clipboard,
                                                             GladeWidget *widget);
    void                glade_clipboard_selection_remove    (GladeClipboard *clipboard,
                                                             GladeWidget *widget);
    void                glade_clipboard_selection_clear     (GladeClipboard *clipboard);
    gboolean            glade_clipboard_get_has_selection   (GladeClipboard *clipboard);

## Object Hierarchy

      GObject
       +----GladeClipboard

## Properties

      "has-selection"            gboolean              : Read

## Description

The GladeClipboard is a singleton and is an accumulative shelf of all cut or copied GladeWidget in the application. A GladeWidget can be cut from one GladeProject and pasted to another.

## Details

### GladeClipboard

    typedef struct _GladeClipboard GladeClipboard;

### glade_clipboard_new ()

    GladeClipboard *    glade_clipboard_new                 (void);

Returns : | a new GladeClipboard object

### glade_clipboard_add ()

    void                glade_clipboard_add                 (GladeClipboard *clipboard,
                                                             GList *widgets);

Adds `widgets` to `clipboard`. This increases the reference count of each GladeWidget in `widgets`.

`clipboard` : | a GladeClipboard
`widgets` : | a GList of GladeWidgets

### glade_clipboard_remove ()

    void                glade_clipboard_remove              (GladeClipboard *clipboard,
                                                             GList *widgets);

Removes `widgets` from `clipboard`.

`clipboard` : | a GladeClipboard
`widgets` : | a GList of GladeWidgets

### glade_clipboard_selection_add ()

    void                glade_clipboard_selection_add       (GladeClipboard *clipboard,
                                                             GladeWidget *widget);

### glade_clipboard_selection_remove ()

    void                glade_clipboard_selection_remove    (GladeClipboard *clipboard,
                                                             GladeWidget *widget);

### glade_clipboard_selection_clear ()

    void                glade_clipboard_selection_clear     (GladeClipboard *clipboard);

### glade_clipboard_get_has_selection ()

    gboolean            glade_clipboard_get_has_selection   (GladeClipboard *clipboard);

`clipboard` : | a GladeClipboard
Returns : | TRUE if this clipboard has selected items to paste.

## Property Details

### The `"has-selection"` property

      "has-selection"            gboolean              : Read

Whether clipboard has a selection of items to paste.

Default value: FALSE