EinaWindow

EinaWindow — Eina main window widget

Synopsis

                    EinaWindow;
                    EinaWindowClass;
GtkActionGroup *    eina_window_get_action_group        (EinaWindow *self);
gboolean            eina_window_get_persistant          (EinaWindow *self);
GtkUIManager *      eina_window_get_ui_manager          (EinaWindow *self);
EinaWindow *        eina_window_new                     (void);
void                eina_window_set_persistant          (EinaWindow *self,
                                                         gboolean persistant);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkWidget
               +----GtkContainer
                     +----GtkBin
                           +----GtkWindow
                                 +----EinaWindow

Implemented Interfaces

EinaWindow implements AtkImplementorIface and GtkBuildable.

Properties

  "persistant"               gboolean              : Read / Write

Signals

  "action-activate"                                : Run Last

Description

EinaWindow is the widget used for the main Eina's window. It's a regular GtkWindow plus a GtkUIManager and the associated GtkActionGroup. Aditionaly EinaWindow can be persistant, this is the ability to automatically do hide-on-delete.

If you want to add menus to main window use eina_window_get_ui_manager() and eina_window_get_action_group(). For persistance features see "persistant" property

See also: GtkWindow

Details

EinaWindow

typedef struct _EinaWindow EinaWindow;

EinaWindowClass

typedef struct {
	GtkWindowClass parent_class;
	gboolean (*action_activate) (EinaWindow *self, GtkAction *action);
} EinaWindowClass;

eina_window_get_action_group ()

GtkActionGroup *    eina_window_get_action_group        (EinaWindow *self);

Gets the GtkActionGroup for the main window

self :

the EinaWindow

Returns :

GtkActionGroup for default window of EinaWindow. [transfer none]

eina_window_get_persistant ()

gboolean            eina_window_get_persistant          (EinaWindow *self);

Gets the ::persistant property

self :

An EinaWindow

Returns :

Value for the ::persistant property

eina_window_get_ui_manager ()

GtkUIManager *      eina_window_get_ui_manager          (EinaWindow *self);

Gets the GtkUIManager for the main window

self :

the EinaWindow

Returns :

A GtkUIManager. [transfer none]

eina_window_new ()

EinaWindow *        eina_window_new                     (void);

Creates a new EinaWindow

Returns :

The EinaWindow. [transfer full]

eina_window_set_persistant ()

void                eina_window_set_persistant          (EinaWindow *self,
                                                         gboolean persistant);

Sets the "persistant" property

self :

An EinaWindow

persistant :

Value for the 'persistant' property

Property Details

The "persistant" property

  "persistant"               gboolean              : Read / Write

Tell window if must be hide on delete-event or just hide

Default value: FALSE

Signal Details

The "action-activate" signal

gboolean            user_function                      (EinaWindow *window,
                                                        GObject    *action,
                                                        gpointer    user_data)      : Run Last

Emitted if some action is activated

window :

The EinaWindow

action :

GtkAction that has been activated

user_data :

user data set when the signal handler was connected.

Returns :

TRUE if action was handed by callback and stop processing, FALSE if default handler need to be called.