libseahorse Reference Manual | ||||
---|---|---|---|---|
Top | Description |
Synopsis
#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
);
Details
struct SeahorseWidget
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 |
seahorse_widget_new ()
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 |
seahorse_widget_new_allow_multiple ()
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 |
seahorse_widget_find ()
SeahorseWidget * seahorse_widget_find (const gchar *name
);
|
The name to look for |
Returns : |
The widget with the name or NULL if not found |
seahorse_widget_get_name ()
const gchar * seahorse_widget_get_name (SeahorseWidget *swidget
);
|
The widget to get the name for |
Returns : |
The name of the widget |
seahorse_widget_get_toplevel ()
GtkWidget * seahorse_widget_get_toplevel (SeahorseWidget *swidget
);
Return the top level widget in this seahorse widget
|
The seahorse widget |
Returns : |
The top level widget |
seahorse_widget_get_widget ()
GtkWidget * seahorse_widget_get_widget (SeahorseWidget *swidget
,const char *identifier
);
|
a SeahorseWidget |
|
the name of the widget to get |
Returns : |
the widget named identifier in swidget
|
seahorse_widget_show ()
void seahorse_widget_show (SeahorseWidget *swidget
);
Show the toplevel widget in the gtkbuilder file.
|
SeahorseWidget to show |
seahorse_widget_show_help ()
void seahorse_widget_show_help (SeahorseWidget *swidget
);
Show help appropriate for the top level widget.
|
The SeahorseWidget. |
seahorse_widget_set_visible ()
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 |
seahorse_widget_set_sensitive ()
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 identifier in |
|
the name of the widget to set sensitive |
|
TRUE if the widget should be switched to sensitive |
seahorse_widget_destroy ()
void seahorse_widget_destroy (SeahorseWidget *swidget
);
Unrefs swidget
.
|
SeahorseWidget to destroy |