Functions | |
gchar * | make_bin_filename_gchar (const gchar *name) |
Retrieve the full path to where binaries are stored for cbsystem. Checks CBHOME. | |
GString * | make_bin_filename_gstring (const gchar *name) |
Retrieve the full path to where binaries are stored for cbsystem. Checks CBHOME. | |
gchar * | make_config_filename_gchar (const gchar *name) |
Retrieve the full path to where config files are stored for cbsystem. Checks CBCONF. | |
GString * | make_config_filename_gstring (const gchar *name) |
Retrieve the full path to where config files are stored for cbsystem. Checks CBCONF. | |
gchar * | make_bot_config_filename_gchar (const gchar *name) |
Retrieve the full path to where bot config files are stored for cbsystem. Checks CBCONF and CBBOTNAME. | |
GString * | make_bot_config_filename_gstring (const gchar *name) |
Retrieve the full path to where bot config files are stored for cbsystem. Checks CBCONF and CBBOTNAME. | |
gchar * | make_docs_filename_gchar (const gchar *name) |
Retrieve the full path to where documentation files are stored for cbsystem. Checks CBHOME. | |
GString * | make_docs_filename_gstring (const gchar *name) |
Retrieve the full path to where documentation files are stored for cbsystem. Checks CBHOME. | |
gchar * | make_support_filename_gchar (const gchar *progname, const gchar *name) |
Retrieve the full path to where support files are stored for cbsystem. Checks CBSUPPORT. | |
GString * | make_support_filename_gstring (const gchar *progname, const gchar *name) |
Retrieve the full path to where support files are stored for cbsystem. Checks CBSUPPORT. | |
gchar * | make_tmp_filename_gchar (const gchar *name) |
Retrieve the full path to where temporary files are stored. | |
GString * | make_tmp_filename_gstring (const gchar *name) |
Retrieve the full path to where temporary files are stored. | |
void | sleep (unsigned time) |
Sleep for specified ms but keep GUI events fresh and flushed. | |
void | flush_events () |
Process pending events to the GUI. | |
void | add (GladeXML *glade_xml, const gchar *parent_container, GtkWidget *child_widget) |
Add a widget to a container. | |
void | add (GtkContainer *parent_container, GtkWidget *child_widget) |
Add a widget to a container. | |
GtkContainer * | get_container (GladeXML *glade_xml, const gchar *name) |
Retrieve a container from the GladeXML. | |
GtkWidget * | get_widget (GladeXML *glade_xml, const gchar *name) |
Retrieve a widget from the GladeXML. | |
GtkWindow * | get_window (GladeXML *glade_xml, const gchar *name) |
Retrieve a window from the GladeXML. | |
GtkComboBox * | get_combo (GladeXML *glade_xml, const gchar *name) |
Retrieve a combo box from the GladeXML. | |
GtkCheckButton * | get_checkbutton (GladeXML *glade_xml, const gchar *name) |
Retrieve a check button from the GladeXML. | |
GtkLabel * | get_label (GladeXML *glade_xml, const gchar *name) |
Retrieve a label from the GladeXML. | |
GtkEntry * | get_entry (GladeXML *glade_xml, const gchar *name) |
Retrieve a entry textfield from the GladeXML. | |
GtkProgressBar * | get_progressbar (GladeXML *glade_xml, const gchar *name) |
Retrieve a progress bar from the GladeXML. | |
GtkStatusbar * | get_statusbar (GladeXML *glade_xml, const gchar *name) |
Retrieve a status bar from the GladeXML. | |
GtkExpander * | get_expander (GladeXML *glade_xml, const gchar *name) |
Retrieve an expander container from the GladeXML. | |
GtkTextView * | get_textview (GladeXML *glade_xml, const gchar *name) |
Retrieve a textview entry from the GladeXML. | |
GtkTextBuffer * | get_textview_buffer (GladeXML *glade_xml, const gchar *name) |
Retrieve a textview buffer from the GladeXML. | |
GtkTreeView * | get_treeview (GladeXML *glade_xml, const gchar *name) |
Retrieve a treeview from the GladeXML. | |
GtkHButtonBox * | get_hbuttonbox (GladeXML *glade_xml, const gchar *name) |
Retrieve an hbuttonbox from the GladeXML. | |
GnomeDateEdit * | get_gnomedateedit (GladeXML *glade_xml, const gchar *name) |
Retrieve a gnome date edit widget from the GladeXML. | |
void | show (GladeXML *glade_xml, const gchar *name) |
Show a widget. | |
void | hide (GladeXML *glade_xml, const gchar *name) |
Hide a widget. | |
void | show (GtkWidget *w) |
Show a widget. | |
void | hide (GtkWidget *w) |
Hide a widget. | |
void | show (GtkWindow *w) |
Show a window. | |
void | hide (GtkWindow *w) |
Hide a window. | |
GString * | span_tag (const gchar *text, const gchar *color) |
Create the string for the span tag, useful for textviews. | |
GString * | span_tag (const gchar *text, const gchar *color, const gchar *size) |
Create the string for the span tag, useful for textviews. | |
const gchar * | gtk_label_get_text (GladeXML *glade_xml, const gchar *name) |
Retrieve a label's text from the GladeXML. | |
void | gtk_label_set_text (GladeXML *glade_xml, const gchar *name, const gchar *text) |
Set a label's text in the GladeXML. | |
const gchar * | gtk_textview_get_text (GladeXML *glade_xml, const gchar *textview_name) |
Retrieve a textview's text from the GladeXML. | |
gboolean | gtk_textview_set_text (GladeXML *glade_xml, const gchar *name, const gchar *text) |
Set a textview's text in the GladeXML. | |
const gchar * | gtk_entry_get_text (GladeXML *glade_xml, const gchar *name) |
Retrieve an entry's text from the GladeXML. | |
gboolean | gtk_entry_set_text (GladeXML *glade_xml, const gchar *name, const gchar *text) |
Set an entry's text in the GladeXML. | |
gint | gtk_combo_box_get_active (GladeXML *glade_xml, const gchar *name) |
Get the active index for a combo box. | |
gboolean | gtk_combo_box_set_active (GladeXML *glade_xml, const gchar *name, gint index) |
Set the active index for a combo box. | |
const gchar * | gtk_combo_box_get_active_text (GladeXML *glade_xml, const gchar *name) |
Get the active text at the active index for a combo box. | |
gboolean | gtk_combo_box_set_active_text (GtkComboBox *gtk_cb, const gchar *text) |
Set the active text of a combo box. | |
gboolean | gtk_combo_box_set_active_text (GladeXML *glade_xml, const gchar *name, const gchar *text) |
Set the active text of a combo box. | |
gboolean | gtk_combo_box_set_active_text (GtkComboBox *gtk_cb, map< string, string > entry_map, const gchar *text) |
Set the active (user-friendly) text of a combo box from "configuration" text. | |
gboolean | gtk_combo_box_set_active_text (GladeXML *glade_xml, const gchar *name, map< string, string > entry_map, const gchar *text) |
Set the active (user-friendly) text of a combo box from "configuration" text. | |
void | gtk_combo_box_add_entries (GtkComboBox *gtk_cb, vector< string > entries) |
Add entries to a combo box. | |
gboolean | gtk_refresh_gnomedateedit (GladeXML *glade_xml, const gchar *name) |
Update the Gnome date edit to the current system time. | |
gboolean | gtk_update_progressbar (GladeXML *glade_xml, const gchar *name) |
Pulse an indeterminant progress bar. | |
gboolean | gtk_update_progressbar (GladeXML *glade_xml, const gchar *name, gdouble frac) |
Update a progress bar to a particular percentage. | |
void | update_progress (GtkProgressBar *bar) |
Pulse an indeterminant progress bar. | |
void | update_progress (GtkProgressBar *bar, gdouble frac) |
Update a progress bar to a particular percentage. | |
void | clear_textview (GladeXML *glade_xml, const gchar *name) |
Clear a textview of any text. |
void cajun::gtk_utils::add | ( | GtkContainer * | parent_container, | |
GtkWidget * | child_widget | |||
) |
Add a widget to a container.
parent_container | The container that the widget will be added to. | |
child_widget | The widget that needs to be added to the parent. |
void cajun::gtk_utils::add | ( | GladeXML * | glade_xml, | |
const gchar * | parent_container, | |||
GtkWidget * | child_widget | |||
) |
Add a widget to a container.
glade_xml | The GladeXML handle used for the GUI. | |
parent_container | The container name that the widget will be added to. | |
child_widget | The widget that needs to be added to the parent. |
References get_container().
void cajun::gtk_utils::clear_textview | ( | GladeXML * | glade_xml, | |
const gchar * | name | |||
) |
Clear a textview of any text.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to use. |
References get_textview_buffer().
void cajun::gtk_utils::flush_events | ( | ) |
Process pending events to the GUI.
Referenced by sleep(), and update_progress().
GtkCheckButton * cajun::gtk_utils::get_checkbutton | ( | GladeXML * | glade_xml, | |
const gchar * | name | |||
) |
Retrieve a check button from the GladeXML.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to retrieve. |
References get_widget().
GtkComboBox * cajun::gtk_utils::get_combo | ( | GladeXML * | glade_xml, | |
const gchar * | name | |||
) |
Retrieve a combo box from the GladeXML.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to retrieve. |
References get_widget().
Referenced by gtk_combo_box_get_active(), gtk_combo_box_get_active_text(), gtk_combo_box_set_active(), and gtk_combo_box_set_active_text().
GtkContainer * cajun::gtk_utils::get_container | ( | GladeXML * | glade_xml, | |
const gchar * | name | |||
) |
Retrieve a container from the GladeXML.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to retrieve. |
Referenced by add().
GtkEntry * cajun::gtk_utils::get_entry | ( | GladeXML * | glade_xml, | |
const gchar * | name | |||
) |
Retrieve a entry textfield from the GladeXML.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to retrieve. |
References get_widget().
Referenced by gtk_entry_get_text(), and gtk_entry_set_text().
GtkExpander * cajun::gtk_utils::get_expander | ( | GladeXML * | glade_xml, | |
const gchar * | name | |||
) |
Retrieve an expander container from the GladeXML.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to retrieve. |
References get_widget().
GnomeDateEdit * cajun::gtk_utils::get_gnomedateedit | ( | GladeXML * | glade_xml, | |
const gchar * | name | |||
) |
Retrieve a gnome date edit widget from the GladeXML.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to retrieve. |
References get_widget().
Referenced by gtk_refresh_gnomedateedit().
GtkHButtonBox * cajun::gtk_utils::get_hbuttonbox | ( | GladeXML * | glade_xml, | |
const gchar * | name | |||
) |
Retrieve an hbuttonbox from the GladeXML.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to retrieve. |
References get_widget().
GtkLabel * cajun::gtk_utils::get_label | ( | GladeXML * | glade_xml, | |
const gchar * | name | |||
) |
Retrieve a label from the GladeXML.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to retrieve. |
References get_widget().
Referenced by gtk_label_get_text(), and gtk_label_set_text().
GtkProgressBar * cajun::gtk_utils::get_progressbar | ( | GladeXML * | glade_xml, | |
const gchar * | name | |||
) |
Retrieve a progress bar from the GladeXML.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to retrieve. |
References get_widget().
Referenced by gtk_update_progressbar().
GtkStatusbar * cajun::gtk_utils::get_statusbar | ( | GladeXML * | glade_xml, | |
const gchar * | name | |||
) |
Retrieve a status bar from the GladeXML.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to retrieve. |
References get_widget().
GtkTextView * cajun::gtk_utils::get_textview | ( | GladeXML * | glade_xml, | |
const gchar * | name | |||
) |
Retrieve a textview entry from the GladeXML.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to retrieve. |
References get_widget().
GtkTextBuffer * cajun::gtk_utils::get_textview_buffer | ( | GladeXML * | glade_xml, | |
const gchar * | name | |||
) |
Retrieve a textview buffer from the GladeXML.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to retrieve. This is the name of the textview, the associated textview buffer will be retrieved. |
References get_widget().
Referenced by clear_textview(), gtk_textview_get_text(), and gtk_textview_set_text().
GtkTreeView * cajun::gtk_utils::get_treeview | ( | GladeXML * | glade_xml, | |
const gchar * | name | |||
) |
Retrieve a treeview from the GladeXML.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to retrieve. |
References get_widget().
GtkWidget * cajun::gtk_utils::get_widget | ( | GladeXML * | glade_xml, | |
const gchar * | name | |||
) |
Retrieve a widget from the GladeXML.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to retrieve. |
Referenced by get_checkbutton(), get_combo(), get_entry(), get_expander(), get_gnomedateedit(), get_hbuttonbox(), get_label(), get_progressbar(), get_statusbar(), get_textview(), get_textview_buffer(), get_treeview(), get_window(), hide(), and show().
GtkWindow * cajun::gtk_utils::get_window | ( | GladeXML * | glade_xml, | |
const gchar * | name | |||
) |
Retrieve a window from the GladeXML.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to retrieve. |
References get_widget().
void cajun::gtk_utils::gtk_combo_box_add_entries | ( | GtkComboBox * | gtk_cb, | |
vector< string > | entries | |||
) |
Add entries to a combo box.
gtk_cb | The combo box to use. | |
entries | A vector of string values to add to the combo box. |
gint cajun::gtk_utils::gtk_combo_box_get_active | ( | GladeXML * | glade_xml, | |
const gchar * | name | |||
) |
Get the active index for a combo box.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to get the active index. |
References get_combo().
const gchar * cajun::gtk_utils::gtk_combo_box_get_active_text | ( | GladeXML * | glade_xml, | |
const gchar * | name | |||
) |
Get the active text at the active index for a combo box.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to get the active text. |
References get_combo().
Referenced by gtk_combo_box_set_active_text().
gboolean cajun::gtk_utils::gtk_combo_box_set_active | ( | GladeXML * | glade_xml, | |
const gchar * | name, | |||
gint | index | |||
) |
Set the active index for a combo box.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to set the active index. | |
index | The 0-based index to set. |
References get_combo().
Referenced by gtk_combo_box_set_active_text().
gboolean cajun::gtk_utils::gtk_combo_box_set_active_text | ( | GladeXML * | glade_xml, | |
const gchar * | name, | |||
map< string, string > | entry_map, | |||
const gchar * | text | |||
) |
Set the active (user-friendly) text of a combo box from "configuration" text.
For example, if a combo box has entries in a "user-friendly" form, and a map is used to translate "configuration" values into more user-friendly text, a specified "configuration" value can be pre-selected easily this way.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to set the active text on. | |
entry_map | A map of "configuration" values to "user-friendly" values. | |
text | A "configuration" value which should be pre-selected. |
References get_combo(), and gtk_combo_box_set_active_text().
gboolean cajun::gtk_utils::gtk_combo_box_set_active_text | ( | GtkComboBox * | gtk_cb, | |
map< string, string > | entry_map, | |||
const gchar * | text | |||
) |
Set the active (user-friendly) text of a combo box from "configuration" text.
For example, if a combo box has entries in a "user-friendly" form, and a map is used to translate "configuration" values into more user-friendly text, a specified "configuration" value can be pre-selected easily this way.
gtk_cb | The combo box to use. | |
entry_map | A map of "configuration" values to "user-friendly" values. | |
text | A "configuration" value which should be pre-selected. |
References gtk_combo_box_get_active_text(), and gtk_combo_box_set_active().
gboolean cajun::gtk_utils::gtk_combo_box_set_active_text | ( | GladeXML * | glade_xml, | |
const gchar * | name, | |||
const gchar * | text | |||
) |
Set the active text of a combo box.
For example, if a combo box has three entries, and a configuration value specifies that one of them should be selected by default, then this function can be used to make that specific entry pre-selected.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to set the active text on. | |
text | The text to check for and set active. |
References get_combo(), and gtk_combo_box_set_active_text().
gboolean cajun::gtk_utils::gtk_combo_box_set_active_text | ( | GtkComboBox * | gtk_cb, | |
const gchar * | text | |||
) |
Set the active text of a combo box.
For example, if a combo box has three entries, and a configuration value specifies that one of them should be selected by default, then this function can be used to make that specific entry pre-selected.
gtk_cb | The combo box to use. | |
text | The text to search for and make active. |
References gtk_combo_box_get_active_text(), and gtk_combo_box_set_active().
Referenced by gtk_combo_box_set_active_text().
const gchar * cajun::gtk_utils::gtk_entry_get_text | ( | GladeXML * | glade_xml, | |
const gchar * | name | |||
) |
Retrieve an entry's text from the GladeXML.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to retrieve the text from. |
References get_entry().
gboolean cajun::gtk_utils::gtk_entry_set_text | ( | GladeXML * | glade_xml, | |
const gchar * | name, | |||
const gchar * | text | |||
) |
Set an entry's text in the GladeXML.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to set the text for. | |
text | The text to set. |
References get_entry().
const gchar * cajun::gtk_utils::gtk_label_get_text | ( | GladeXML * | glade_xml, | |
const gchar * | name | |||
) |
Retrieve a label's text from the GladeXML.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to retrieve the text from. |
References get_label().
void cajun::gtk_utils::gtk_label_set_text | ( | GladeXML * | glade_xml, | |
const gchar * | name, | |||
const gchar * | text | |||
) |
Set a label's text in the GladeXML.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to set the text for. | |
text | The text to set. |
References get_label().
gboolean cajun::gtk_utils::gtk_refresh_gnomedateedit | ( | GladeXML * | glade_xml, | |
const gchar * | name | |||
) |
Update the Gnome date edit to the current system time.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to use. |
References get_gnomedateedit().
const gchar * cajun::gtk_utils::gtk_textview_get_text | ( | GladeXML * | glade_xml, | |
const gchar * | textview_name | |||
) |
Retrieve a textview's text from the GladeXML.
glade_xml | The GladeXML handle used for the GUI. | |
textview_name | The name of the widget to retrieve the text from. |
References get_textview_buffer().
gboolean cajun::gtk_utils::gtk_textview_set_text | ( | GladeXML * | glade_xml, | |
const gchar * | name, | |||
const gchar * | text | |||
) |
Set a textview's text in the GladeXML.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to set the text for. | |
text | The text to set. |
References get_textview_buffer().
gboolean cajun::gtk_utils::gtk_update_progressbar | ( | GladeXML * | glade_xml, | |
const gchar * | name, | |||
gdouble | frac | |||
) |
Update a progress bar to a particular percentage.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to use. | |
frac | The percentage that the progress bar should be at. |
References get_progressbar(), and update_progress().
gboolean cajun::gtk_utils::gtk_update_progressbar | ( | GladeXML * | glade_xml, | |
const gchar * | name | |||
) |
Pulse an indeterminant progress bar.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to use. |
References get_progressbar(), and update_progress().
void cajun::gtk_utils::hide | ( | GtkWindow * | w | ) |
Hide a window.
w | The window to hide. |
void cajun::gtk_utils::hide | ( | GtkWidget * | w | ) |
Hide a widget.
w | The widget to hide. |
void cajun::gtk_utils::hide | ( | GladeXML * | glade_xml, | |
const gchar * | name | |||
) |
Hide a widget.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to hide. |
References get_widget().
gchar * cajun::gtk_utils::make_bin_filename_gchar | ( | const gchar * | name | ) |
Retrieve the full path to where binaries are stored for cbsystem. Checks CBHOME.
name | The name of a binary in cbsystem. |
GString * cajun::gtk_utils::make_bin_filename_gstring | ( | const gchar * | name | ) |
Retrieve the full path to where binaries are stored for cbsystem. Checks CBHOME.
name | The name of a binary in cbsystem. |
gchar * cajun::gtk_utils::make_bot_config_filename_gchar | ( | const gchar * | name | ) |
Retrieve the full path to where bot config files are stored for cbsystem. Checks CBCONF and CBBOTNAME.
name | The name of a bot config file in cbsystem. |
GString * cajun::gtk_utils::make_bot_config_filename_gstring | ( | const gchar * | name | ) |
Retrieve the full path to where bot config files are stored for cbsystem. Checks CBCONF and CBBOTNAME.
name | The name of a bot config file in cbsystem. |
gchar * cajun::gtk_utils::make_config_filename_gchar | ( | const gchar * | name | ) |
Retrieve the full path to where config files are stored for cbsystem. Checks CBCONF.
name | The name of a config file in cbsystem. |
GString * cajun::gtk_utils::make_config_filename_gstring | ( | const gchar * | name | ) |
Retrieve the full path to where config files are stored for cbsystem. Checks CBCONF.
name | The name of a config file in cbsystem. |
gchar * cajun::gtk_utils::make_docs_filename_gchar | ( | const gchar * | name | ) |
Retrieve the full path to where documentation files are stored for cbsystem. Checks CBHOME.
name | The name of a documentation file in cbsystem. |
GString * cajun::gtk_utils::make_docs_filename_gstring | ( | const gchar * | name | ) |
Retrieve the full path to where documentation files are stored for cbsystem. Checks CBHOME.
name | The name of a documentation file in cbsystem. |
gchar * cajun::gtk_utils::make_support_filename_gchar | ( | const gchar * | progname, | |
const gchar * | name | |||
) |
Retrieve the full path to where support files are stored for cbsystem. Checks CBSUPPORT.
progname | The name of the program the support file is for. | |
name | The name of a support file. |
GString * cajun::gtk_utils::make_support_filename_gstring | ( | const gchar * | progname, | |
const gchar * | name | |||
) |
Retrieve the full path to where support files are stored for cbsystem. Checks CBSUPPORT.
progname | The name of the program the support file is for. | |
name | The name of a support file. |
gchar * cajun::gtk_utils::make_tmp_filename_gchar | ( | const gchar * | name | ) |
Retrieve the full path to where temporary files are stored.
name | The name of the temporary file. |
GString * cajun::gtk_utils::make_tmp_filename_gstring | ( | const gchar * | name | ) |
Retrieve the full path to where temporary files are stored.
name | The name of the temporary file. |
void cajun::gtk_utils::show | ( | GtkWindow * | w | ) |
Show a window.
w | The window to show. |
void cajun::gtk_utils::show | ( | GtkWidget * | w | ) |
Show a widget.
w | The widget to show. |
void cajun::gtk_utils::show | ( | GladeXML * | glade_xml, | |
const gchar * | name | |||
) |
Show a widget.
glade_xml | The GladeXML handle used for the GUI. | |
name | The name of the widget to show. |
References get_widget().
void cajun::gtk_utils::sleep | ( | unsigned | time | ) |
Sleep for specified ms but keep GUI events fresh and flushed.
time | The amount of time to sleep for, in milliseconds. |
References flush_events().
GString * cajun::gtk_utils::span_tag | ( | const gchar * | text, | |
const gchar * | color, | |||
const gchar * | size | |||
) |
Create the string for the span tag, useful for textviews.
text | The text contents to wrap. | |
color | The color of the text. | |
size | The pango-defined size for the text |
GString * cajun::gtk_utils::span_tag | ( | const gchar * | text, | |
const gchar * | color | |||
) |
Create the string for the span tag, useful for textviews.
text | The text contents to wrap. | |
color | The color of the text. |
void cajun::gtk_utils::update_progress | ( | GtkProgressBar * | bar, | |
gdouble | frac | |||
) |
Update a progress bar to a particular percentage.
bar | The progress bar to update. | |
frac | The percentage that the progress bar should be at. |
References flush_events().
void cajun::gtk_utils::update_progress | ( | GtkProgressBar * | bar | ) |
Pulse an indeterminant progress bar.
bar | The progress bar to pulse. |
References flush_events().
Referenced by gtk_update_progressbar().