| Top |
| GType | glade_util_get_type_from_name () |
| GParamSpec * | glade_utils_get_pspec_from_funcname () |
| gboolean | glade_util_ui_message () |
| void | glade_util_flash_message () |
| gint | glade_util_compare_stock_labels () |
| GtkWidget * | glade_util_file_dialog_new () |
| void | glade_util_replace () |
| gchar * | glade_util_read_prop_name () |
| gchar * | glade_util_duplicate_underscores () |
| GList * | glade_util_container_get_all_children () |
| gint | glade_util_count_placeholders () |
| GtkTreeIter * | glade_util_find_iter_by_widget () |
| GList * | glade_util_purify_list () |
| GList * | glade_util_added_in_list () |
| GList * | glade_util_removed_from_list () |
| gchar * | glade_util_canonical_path () |
| GModule * | glade_util_load_library () |
| gboolean | glade_util_file_is_writeable () |
| gboolean | glade_util_have_devhelp () |
| GtkWidget * | glade_util_get_devhelp_icon () |
| void | glade_util_search_devhelp () |
| GtkWidget * | glade_util_get_placeholder_from_pointer () |
| gboolean | glade_util_object_is_loading () |
| gboolean | glade_util_url_show () |
| time_t | glade_util_get_file_mtime () |
GType glade_util_get_type_from_name (const gchar *name,gboolean have_func);
Returns the type using the "get type" function name based on name
.
If the have_func
flag is true,name
is used directly, otherwise the get-type
function is contrived from name
then used.
GParamSpec *
glade_utils_get_pspec_from_funcname (const gchar *funcname);
gboolean glade_util_ui_message (GtkWidget *parent,GladeUIMessageType type,GtkWidget *widget,const gchar *format,...);
Creates a new warning dialog window as a child of parent
containing
the text of format
, runs it, then destroys it on close. Depending
on type
, a cancel button may apear or the icon may change.
parent |
||
type |
||
widget |
a GtkWidget to append to the dialog vbox |
|
format |
a printf style format string |
|
... |
args for the format. |
void glade_util_flash_message (GtkWidget *statusbar,guint context_id,gchar *format,...);
gint glade_util_compare_stock_labels (gconstpointer a,gconstpointer b);
This is a GCompareFunc that compares the labels of two stock items, ignoring any '_' characters. It isn't particularly efficient.
GtkWidget * glade_util_file_dialog_new (const gchar *title,GladeProject *project,GtkWindow *parent,GladeUtilFileDialogType action);
title |
dialog title |
|
project |
a GladeProject used when saving |
|
parent |
a parent GtkWindow for the dialog |
|
action |
a GladeUtilFileDialogType to say if the dialog will open or save |
void glade_util_replace (gchar *str,gchar a,gchar b);
Replaces each occurance of the character a
in str
to b
.
gchar *
glade_util_read_prop_name (const gchar *str);
Return a usable version of a property identifier as found in a freshly parserd GladeInterface
gchar *
glade_util_duplicate_underscores (const gchar *name);
Duplicates name
, but the copy has two underscores in place of any single
underscore in the original.
GList *
glade_util_container_get_all_children (GtkContainer *container);
Use this to itterate over all children in a GtkContainer,
as it used _forall() instead of _foreach() (and the GTK+ version
of this function is simply not exposed).
Note that glade_widget_class_get_children() is the high-level
abstraction and will usually end up calling this function.
GtkTreeIter * glade_util_find_iter_by_widget (GtkTreeModel *model,GladeWidget *findme,gint column);
Looks through model
for the GtkTreeIter corresponding to
findme
under column
.
a newly allocated GtkTreeIter from model
corresponding
to findme
which should be freed with gtk_tree_iter_free()
GList * glade_util_removed_from_list (GList *old_list,GList *new_list);
gchar *
glade_util_canonical_path (const gchar *path);
an absolute path to the specified file or directory
that contains no ".." or "." components (this does
not call readlink like realpath() does).
Note: on some systems; I think its possible that we dont have
permission to execute in the directory in which the glade
file resides; I decided finally to do it this way anyway
since libc's realpath() does exactly the same.
GModule *
glade_util_load_library (const gchar *library_name);
Loads the named library from the Glade modules and lib directory or failing that from the standard platform specific directories. (Including /usr/local/lib for unices)
The library_name
should not include any platform specifix prefix or suffix,
those are automatically added, if needed, by g_module_build_path()
gboolean
glade_util_file_is_writeable (const gchar *path);
Checks whether the file at path
is writeable
GtkWidget *
glade_util_get_devhelp_icon (GtkIconSize size);
Creates an image displaying the devhelp icon.
void glade_util_search_devhelp (const gchar *book,const gchar *page,const gchar *search);
GtkWidget *
glade_util_get_placeholder_from_pointer
(GtkContainer *container);
gboolean
glade_util_url_show (const gchar *url);
Portable function for showing an URL url
in a web browser.