## CcGrayBar

CcGrayBar — A title bar

## Synopsis

                        CcGrayBarPrivate;
    struct              CcGrayBar;
    GtkWidget *         cc_gray_bar_new                     (const gchar *label);
    const gchar *       cc_gray_bar_get_text                (CcGrayBar *bar);
    void                cc_gray_bar_set_text                (CcGrayBar *bar,
                                                             const gchar *text);
    void                cc_gray_bar_set_icon_from_pixbuf    (CcGrayBar *bar,
                                                             GdkPixbuf *pixbuf);
    void                cc_gray_bar_set_icon_from_file      (CcGrayBar *bar,
                                                             const gchar *file);
    void                cc_gray_bar_set_icon_from_stock     (CcGrayBar *bar,
                                                             const gchar *stock_id,
                                                             GtkIconSize size);
    void                cc_gray_bar_set_show_icon           (CcGrayBar *bar,
                                                             gboolean show);
    gboolean            cc_gray_bar_get_show_icon           (CcGrayBar *bar);

## Object Hierarchy

      GObject
       +----GInitiallyUnowned
             +----GtkObject
                   +----GtkWidget
                         +----GtkContainer
                               +----GtkBin
                                     +----CcGrayBar

## Implemented Interfaces

CcGrayBar implements AtkImplementorIface and GtkBuildable.

## Properties

      "show-icon"                gboolean              : Read / Write
      "text"                     gchar*                : Read / Write

## Description

The CcGrayBar widget is a styled title bar used in the GdaBrowser.

## Details

### CcGrayBarPrivate

    typedef struct _CcGrayBarPrivate CcGrayBarPrivate;

### struct CcGrayBar

    struct CcGrayBar;

### cc_gray_bar_new ()

    GtkWidget *         cc_gray_bar_new                     (const gchar *label);

Creates a new CcGrayBar with a single label.

`label` : | a string label
Returns : | a new widget

### cc_gray_bar_get_text ()

    const gchar *       cc_gray_bar_get_text                (CcGrayBar *bar);

Get the text being displayed in the given gray bar widget. This does not include any embedded underlines indicating mnemonics or Pango markup.

`bar` : | a CcGrayBar widget.
Returns : | the text in the widget.

### cc_gray_bar_set_text ()

    void                cc_gray_bar_set_text                (CcGrayBar *bar,
                                                             const gchar *text);

Set the text displayed in the given gray bar widget. This can include embedded underlines indicating mnemonics or Pango markup.

`bar` : | a CcGrayBar widget
`text` : | a string

### cc_gray_bar_set_icon_from_pixbuf ()

    void                cc_gray_bar_set_icon_from_pixbuf    (CcGrayBar *bar,
                                                             GdkPixbuf *pixbuf);

### cc_gray_bar_set_icon_from_file ()

    void                cc_gray_bar_set_icon_from_file      (CcGrayBar *bar,
                                                             const gchar *file);

### cc_gray_bar_set_icon_from_stock ()

    void                cc_gray_bar_set_icon_from_stock     (CcGrayBar *bar,
                                                             const gchar *stock_id,
                                                             GtkIconSize size);

### cc_gray_bar_set_show_icon ()

    void                cc_gray_bar_set_show_icon           (CcGrayBar *bar,
                                                             gboolean show);

Set the icon displaying mode for the given grid.

`bar` : | a CcGrayBar widget.
`show` : | whether to show the icon or not.

### cc_gray_bar_get_show_icon ()

    gboolean            cc_gray_bar_get_show_icon           (CcGrayBar *bar);

Get whether the icon is being shown for the given gray bar.

`bar` : | a CcGrayBar widget.
Returns : | TRUE if the icon is shown, FALSE if not.

## Property Details

### The `"show-icon"` property

      "show-icon"                gboolean              : Read / Write

Default value: FALSE

### The `"text"` property

      "text"                     gchar*                : Read / Write

Text showed inside the widget.

Default value: NULL