| Top |
| void | close | Action |
| void | focus-document | Action |
| void | item-added | Run First |
| void | item-removed | Run First |
GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── GtkBin ╰── GeditPanel
GtkWidget *
gedit_panel_new (GtkOrientation orientation);
Creates a new GeditPanel with the given orientation
. You shouldn't create
a new panel use gedit_window_get_side_panel() or gedit_window_get_bottom_panel()
instead.
gboolean gedit_panel_add_item (GeditPanel *panel,GtkWidget *item,const gchar *id,const gchar *display_name,GtkWidget *image);
Adds a new item to the panel
.
panel |
||
item |
the GtkWidget to add to the |
|
id |
unique name for the new item |
|
display_name |
the name to be shown in the |
|
image |
the image to be shown in the |
[allow-none] |
gboolean gedit_panel_add_item_with_stock_icon (GeditPanel *panel,GtkWidget *item,const gchar *id,const gchar *display_name,const gchar *stock_id);
Same as gedit_panel_add_item() but using an image from stock.
panel |
||
item |
the GtkWidget to add to the |
|
id |
unique name for the new item |
|
display_name |
the name to be shown in the |
|
stock_id |
a stock id, or |
[allow-none] |
gboolean gedit_panel_remove_item (GeditPanel *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 gedit_panel_activate_item (GeditPanel *panel,GtkWidget *item);
Switches to the page that contains item
.
gboolean gedit_panel_item_is_active (GeditPanel *panel,GtkWidget *item);
Returns whether item
is the active widget in panel
GtkOrientation
gedit_panel_get_orientation (GeditPanel *panel);
Gets the orientation of the panel
.
gint
gedit_panel_get_n_items (GeditPanel *panel);
Gets the number of items in a panel
.
“orientation” property“orientation” GtkOrientation
The panel's orientation.
Flags: Read / Write / Construct Only
Default value: GTK_ORIENTATION_VERTICAL
“focus-document” signalvoid user_function (GeditPanel *geditpanel, gpointer user_data)
Flags: Action
“item-added” signalvoid user_function (GeditPanel *geditpanel, GtkWidget *widget, gpointer user_data)
Flags: Run First
“item-removed” signalvoid user_function (GeditPanel *geditpanel, GtkWidget *widget, gpointer user_data)
Flags: Run First