![]() |
![]() |
![]() |
gel Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#define GEL_UI_IMAGE_DEF_NONE gboolean gel_ui_builder_connect_signal_from_def (GtkBuilder *ui
,GelSignalDef def
,gpointer data
); gboolean gel_ui_builder_connect_signal_from_def_multiple (GtkBuilder *ui
,GelSignalDef defs[]
,guint n_entries
,gpointer data
,guint *count
); void gel_ui_container_clear (GtkContainer *container
); GtkWidget * gel_ui_container_find_widget (GtkContainer *container
,const gchar *name
); void gel_ui_container_replace_children (GtkContainer *container
,GtkWidget *widget
); gboolean gel_ui_list_model_get_iter_from_index (GtkListStore *model
,GtkTreeIter *iter
,gint index
); void gel_ui_list_store_insert_at_index (GtkListStore *model
,gint index
,...
); void gel_ui_list_store_remove_at_index (GtkListStore *model
,gint index
); void gel_ui_list_store_set_at_index (GtkListStore *model
,gint index
,...
); gboolean gel_ui_load_image_from_def (GtkBuilder *ui
,GelUIImageDef *def
,GError **error
); gboolean gel_ui_load_image_from_def_multiple (GtkBuilder *ui
,GelUIImageDef defs[]
,guint *count
); GdkPixbuf * gel_ui_load_pixbuf_from_imagedef (GelUIImageDef def
,GError **error
); GtkBuilder * gel_ui_load_resource (gchar *ui_filename
,GError **error
); GQuark gel_ui_quark (); gint * gel_ui_tree_view_get_selected_indices (GtkTreeView *tv
); void gel_ui_widget_disable_drop (GtkWidget *widget
); void gel_ui_widget_enable_drop (GtkWidget *widget
,GCallback callback
,gpointer user_data
);
gboolean gel_ui_builder_connect_signal_from_def (GtkBuilder *ui
,GelSignalDef def
,gpointer data
);
gboolean gel_ui_builder_connect_signal_from_def_multiple (GtkBuilder *ui
,GelSignalDef defs[]
,guint n_entries
,gpointer data
,guint *count
);
void gel_ui_container_clear (GtkContainer *container
);
Removes all children from container
using gtk_container_remove()
|
A GtkContainer |
GtkWidget * gel_ui_container_find_widget (GtkContainer *container
,const gchar *name
);
Tries to find widget named name
in container
recursively. If it is not
found NULL
is returned. No references are added in this function.
|
A GtkContainer |
|
Child name |
Returns : |
The widget. [transfer none][allow-none] |
void gel_ui_container_replace_children (GtkContainer *container
,GtkWidget *widget
);
Removes all children from container
using gel_ui_container_clear()
and
then packs widget
into container
|
A GtkContainer |
|
A GtkWidget. [transfer full] |
gboolean gel_ui_list_model_get_iter_from_index (GtkListStore *model
,GtkTreeIter *iter
,gint index
);
Fills iter
with the GtkTreeIter associated with index index
|
A GtkListStore |
|
A GtkTreeIter. [out caller-allocates] |
|
An index to get the iter from |
Returns : |
TRUE if an iter is found, FALSE otherwise |
void gel_ui_list_store_insert_at_index (GtkListStore *model
,gint index
,...
);
Wrapper around gtk_list_store_insert()
|
A GtkListStore |
|
Where to insert data |
|
Data to insert |
void gel_ui_list_store_remove_at_index (GtkListStore *model
,gint index
);
Wrapper around gtk_list_store_remove()
|
A GtkListStore |
|
Where is data to remove |
void gel_ui_list_store_set_at_index (GtkListStore *model
,gint index
,...
);
gboolean gel_ui_load_image_from_def (GtkBuilder *ui
,GelUIImageDef *def
,GError **error
);
gboolean gel_ui_load_image_from_def_multiple (GtkBuilder *ui
,GelUIImageDef defs[]
,guint *count
);
GdkPixbuf * gel_ui_load_pixbuf_from_imagedef (GelUIImageDef def
,GError **error
);
Loads image from def
into a GdkPixbuf. Pathname of the image is
resolved via gel_resource_locate()
. If an error is ocurred error
is filled with the error and NULL
is returned.
GtkBuilder * gel_ui_load_resource (gchar *ui_filename
,GError **error
);
Searchs and loads in to a GtkBuilder the UI file named ui_filename
.
The file is located via gel_resource_locate()
function and the same
rules are applied here.
|
Filename for the UI file |
|
Location for GError or NULL
|
Returns : |
The GtkBuilder for ui_filename or NULL . [transfer full]
|
gint * gel_ui_tree_view_get_selected_indices
(GtkTreeView *tv
);
Returns a NULL
terminated array of gint with the indices of selected
rows, only works with a GtkTreeView holding a GtkListModel
|
A GtkTreeView |
Returns : |
The selected indices, each index and the value it self must be freeed with g_free. [allow-none][transfer full] |
void gel_ui_widget_disable_drop (GtkWidget *widget
);
Disables DnD functions added by gel_ui_widget_enable_drop on widget
|
A GtkWidget |