| NNTPGrab Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
void nntpgrab_gui_base_create_ui (const char *interface_filename); void nntpgrab_gui_base_destroy_ui (void); int nntpgrab_gui_base_dialog_show (GtkWidget *parent,const char *message,GtkMessageType msg_type,GtkButtonsType btn_type); GObject * nntpgrab_gui_base_get_object (const char *name); GtkWidget * nntpgrab_gui_base_get_widget (const char *name); void nntpgrab_gui_base_tray_create (void); void nntpgrab_gui_base_tray_destroy (void); GtkStatusIcon * nntpgrab_gui_base_tray_get_status_icon (void); gboolean nntpgrab_gui_base_tray_icon_get_is_shown (void);
void nntpgrab_gui_base_create_ui (const char *interface_filename);
Build a user interface based on the .glade or (GtkBuilder) .ui file pointed to by interface_filename
|
The location of the interface file without the extension |
void nntpgrab_gui_base_destroy_ui (void);
Destroy the loaded user interface
int nntpgrab_gui_base_dialog_show (GtkWidget *parent,const char *message,GtkMessageType msg_type,GtkButtonsType btn_type);
Show a notification dialog
|
Parent window |
|
The message which needs to be shown |
|
The type of the message (info/warning/error) |
|
The type of buttons which need to be shown in the dialog |
GObject * nntpgrab_gui_base_get_object (const char *name);
Look up an object in the user interface and return a pointer to it
|
The name of the object which needs to be looked up |
Returns : |
Pointer to the object with the given name of NULL if the object could not be found. [allow-none]
|
GtkWidget * nntpgrab_gui_base_get_widget (const char *name);
Look up a widget in the user interface and return a pointer to it
|
The name of the widget which needs to be looked up |
Returns : |
Pointer to the widget with the given name or NULL if the widget could not be found. [allow-none]
|
GtkStatusIcon * nntpgrab_gui_base_tray_get_status_icon
(void);
Return a pointer to a GtkStatusIcon
Returns : |
a GtkStatusIcon |
gboolean nntpgrab_gui_base_tray_icon_get_is_shown
(void);
Indicate whether a tray icon is being shown at the moment
Returns : |
TRUE if the tray icon is being shown |