|  |  |  | gedit Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Properties | Signals | ||||
GeditPanelPrivate; GeditPanel; GtkWidget * gedit_panel_new (GtkOrientation orientation); void gedit_panel_add_item (GeditPanel *panel,GtkWidget *item,const gchar *name,GtkWidget *image); void gedit_panel_add_item_with_stock_icon (GeditPanel *panel,GtkWidget *item,const gchar *name,const gchar *stock_id); gboolean gedit_panel_remove_item (GeditPanel *panel,GtkWidget *item); gboolean gedit_panel_activate_item (GeditPanel *panel,GtkWidget *item); gboolean gedit_panel_item_is_active (GeditPanel *panel,GtkWidget *item); GtkOrientation gedit_panel_get_orientation (GeditPanel *panel); gint gedit_panel_get_n_items (GeditPanel *panel);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBox +----GtkVBox +----GeditPanel
"close" : Run Last / Action "focus-document" : Run Last / Action "item-added" : Run First "item-removed" : Run First
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.
| 
 | a GtkOrientation | 
| Returns : | a new GeditPanel object. | 
void gedit_panel_add_item (GeditPanel *panel,GtkWidget *item,const gchar *name,GtkWidget *image);
Adds a new item to the panel.
| 
 | a GeditPanel | 
| 
 | the GtkWidget to add to the panel | 
| 
 | the name to be shown in the panel | 
| 
 | the image to be shown in the panel | 
void gedit_panel_add_item_with_stock_icon (GeditPanel *panel,GtkWidget *item,const gchar *name,const gchar *stock_id);
Same as gedit_panel_add_item() but using an image from stock.
| 
 | a GeditPanel | 
| 
 | the GtkWidget to add to the panel | 
| 
 | the name to be shown in the panel | 
| 
 | a stock id | 
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.
| 
 | a GeditPanel | 
| 
 | the item to be removed from the panel | 
| Returns : | TRUE if it was well removed. | 
gboolean gedit_panel_activate_item (GeditPanel *panel,GtkWidget *item);
Switches to the page that contains item.
| 
 | a GeditPanel | 
| 
 | the item to be activated | 
| Returns : | TRUE if it was activated | 
gboolean gedit_panel_item_is_active (GeditPanel *panel,GtkWidget *item);
Wheter item is the one current active in panel
| 
 | a GeditPanel | 
| 
 | a widget contained in GeditPanel | 
| Returns : | TRUE if the widget is active | 
GtkOrientation      gedit_panel_get_orientation         (GeditPanel *panel);
Gets the orientation of the panel.
| 
 | a GeditPanel | 
| Returns : | the GtkOrientation of GeditPanel | 
gint                gedit_panel_get_n_items             (GeditPanel *panel);
Gets the number of items in a panel.
| 
 | a GeditPanel | 
| Returns : | the number of items contained in GeditPanel | 
"orientation" property"orientation" GtkOrientation : Read / Write / Construct Only
The panel's orientation.
Default value: GTK_ORIENTATION_VERTICAL
"close" signalvoid user_function (GeditPanel *geditpanel, gpointer user_data) : Run Last / Action
"focus-document" signalvoid user_function (GeditPanel *geditpanel, gpointer user_data) : Run Last / Action
"item-added" signalvoid user_function (GeditPanel *geditpanel, GtkWidget *widget, gpointer user_data) : Run First
"item-removed" signalvoid user_function (GeditPanel *geditpanel, GtkWidget *widget, gpointer user_data) : Run First