|  |  |  | libseahorse Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | ||||
#include <seahorse-widget.h> struct SeahorseWidget; SeahorseWidget * seahorse_widget_new (const gchar *name,GtkWindow *parent); SeahorseWidget * seahorse_widget_new_allow_multiple (const gchar *name,GtkWindow *parent); SeahorseWidget * seahorse_widget_find (const gchar *name); const gchar * seahorse_widget_get_name (SeahorseWidget *swidget); GtkWidget * seahorse_widget_get_toplevel (SeahorseWidget *swidget); GtkWidget * seahorse_widget_get_widget (SeahorseWidget *swidget,const char *identifier); void seahorse_widget_show (SeahorseWidget *swidget); void seahorse_widget_show_help (SeahorseWidget *swidget); void seahorse_widget_set_visible (SeahorseWidget *swidget,const char *identifier,gboolean visible); void seahorse_widget_set_sensitive (SeahorseWidget *swidget,const char *identifier,gboolean sensitive); void seahorse_widget_destroy (SeahorseWidget *swidget);
struct SeahorseWidget {
	GObject parent;
	GtkBuilder *gtkbuilder;
	gchar *name;
};
A window created from a gtkbuilder file.
- All SeahorseWidget objects are destroyed when the SeahorseContext goes bye-bye. - Implements fun GtkUIManager stuff.
Signals: destroy: The window was destroyed.
Properties: name: (gchar*) The name of the gtkbuilder file to load.
| GObject  | The parent GtkObject | 
| GtkBuilder * | The GtkBuilder object for the SeahorseWidget | 
| gchar * | The name of the gtkbuilder file | 
SeahorseWidget * seahorse_widget_new (const gchar *name,GtkWindow *parent);
Creates a new SeahorseWidget. Date is read from the gtk-builder file
seahorse-name%.xml
| 
 | Name of widget, filename part of gtkbuilder file, and name of main window | 
| 
 | GtkWindow to make the parent of the new swidget | 
| Returns : | The new SeahorseWidget, or NULL if the widget already exists | 
SeahorseWidget * seahorse_widget_new_allow_multiple (const gchar *name,GtkWindow *parent);
Creates a new SeahorseWidget without checking if it already exists.
| 
 | Name of widget, filename part of gtkbuilder file, and name of main window | 
| 
 | GtkWindow to make the parent of the new swidget | 
| Returns : | The new SeahorseWidget | 
SeahorseWidget *    seahorse_widget_find                (const gchar *name);
| 
 | The name to look for | 
| Returns : | The widget with the nameor NULL if not found | 
const gchar *       seahorse_widget_get_name            (SeahorseWidget *swidget);
| 
 | The widget to get the name for | 
| Returns : | The name of the widget | 
GtkWidget *         seahorse_widget_get_toplevel        (SeahorseWidget *swidget);
Return the top level widget in this seahorse widget
| 
 | The seahorse widget | 
| Returns : | The top level widget | 
GtkWidget * seahorse_widget_get_widget (SeahorseWidget *swidget,const char *identifier);
| 
 | a SeahorseWidget | 
| 
 | the name of the widget to get | 
| Returns : | the widget named identifierinswidget | 
void                seahorse_widget_show                (SeahorseWidget *swidget);
Show the toplevel widget in the gtkbuilder file.
| 
 | SeahorseWidget to show | 
void                seahorse_widget_show_help           (SeahorseWidget *swidget);
Show help appropriate for the top level widget.
| 
 | The SeahorseWidget. | 
void seahorse_widget_set_visible (SeahorseWidget *swidget,const char *identifier,gboolean visible);
| 
 | the SeahorseWidget | 
| 
 | The identifier of the widget to set visibility for | 
| 
 | TRUE to show the widget, FALSE to hide it | 
void seahorse_widget_set_sensitive (SeahorseWidget *swidget,const char *identifier,gboolean sensitive);
Sets the widget identifier 's sensitivity to sensitive
| 
 | the SeahorseWidget to find the widget identifierin | 
| 
 | the name of the widget to set sensitive | 
| 
 | TRUE if the widget should be switched to sensitive | 
void                seahorse_widget_destroy             (SeahorseWidget *swidget);
Unrefs swidget.
| 
 | SeahorseWidget to destroy |