Top | ![]() |
![]() |
![]() |
![]() |
GtkWidget * | xed_panel_new () |
void | xed_panel_add_item () |
gboolean | xed_panel_remove_item () |
gboolean | xed_panel_activate_item () |
gboolean | xed_panel_item_is_active () |
GtkOrientation | xed_panel_get_orientation () |
gint | xed_panel_get_n_items () |
void | close | Action |
void | focus-document | Action |
void | item-added | Run First |
void | item-removed | Run First |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── XedPanel
GtkWidget *
xed_panel_new (GtkOrientation orientation
);
Creates a new XedPanel with the given orientation
. You shouldn't create
a new panel use xed_window_get_side_panel()
or xed_window_get_bottom_panel()
instead.
void xed_panel_add_item (XedPanel *panel
,GtkWidget *item
,const gchar *name
,const gchar *icon_name
);
Adds a new item to the panel
.
panel |
a XedPanel |
|
item |
the GtkWidget to add to the |
|
name |
the name to be shown in the |
|
icon_name |
the name of the icon to be shown in the |
gboolean xed_panel_remove_item (XedPanel *panel
,GtkWidget *item
);
Removes the widget item
from the panel if it is in the panel
and returns
TRUE
if there was not any problem.
gboolean xed_panel_activate_item (XedPanel *panel
,GtkWidget *item
);
Switches to the page that contains item
.
gboolean xed_panel_item_is_active (XedPanel *panel
,GtkWidget *item
);
Returns whether item
is the active widget in panel
GtkOrientation
xed_panel_get_orientation (XedPanel *panel
);
Gets the orientation of the panel
.
“focus-document”
signalvoid user_function (XedPanel *xedpanel, gpointer user_data)
Flags: Action
“item-added”
signalvoid user_function (XedPanel *xedpanel, GtkWidget *widget, gpointer user_data)
Flags: Run First
“item-removed”
signalvoid user_function (XedPanel *xedpanel, GtkWidget *widget, gpointer user_data)
Flags: Run First