projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make modules more flexible (builtin or loaded are identical). Add a test module
[lttv.git]
/
ltt
/
branches
/
poly
/
lttv
/
modules
/
gui
/
main
/
src
/
gtkmultivpaned.c
diff --git
a/ltt/branches/poly/lttv/modules/gui/main/src/gtkmultivpaned.c
b/ltt/branches/poly/lttv/modules/gui/main/src/gtkmultivpaned.c
index b5529955c9c3ce75c2e6b1a744c7703135888c7f..6ce5eb975c7562d05116eb775f9b08cf86159760 100644
(file)
--- a/
ltt/branches/poly/lttv/modules/gui/main/src/gtkmultivpaned.c
+++ b/
ltt/branches/poly/lttv/modules/gui/main/src/gtkmultivpaned.c
@@
-34,6
+34,16
@@
static void gtk_multi_vpaned_size_allocate (GtkWidget *widget,
void gtk_multi_vpaned_scroll_value_changed (GtkRange *range, gpointer multi_vpaned);
void gtk_multi_vpaned_scroll_value_changed (GtkRange *range, gpointer multi_vpaned);
+gboolean gtk_multi_vpaned_destroy(GtkObject *object,
+ gpointer user_data)
+{
+ GtkMultiVPaned * multi_vpaned = (GtkMultiVPaned * )object;
+ while(multi_vpaned->num_children){
+ gtk_multi_vpaned_widget_delete(multi_vpaned);
+ }
+ return FALSE;
+}
+
GType
gtk_multi_vpaned_get_type (void)
{
GType
gtk_multi_vpaned_get_type (void)
{
@@
-96,7
+106,11
@@
gtk_multi_vpaned_init (GtkMultiVPaned * multi_vpaned)
GtkWidget* gtk_multi_vpaned_new ()
{
GtkWidget* gtk_multi_vpaned_new ()
{
- return GTK_WIDGET (g_object_new (gtk_multi_vpaned_get_type (), NULL));
+ GtkWidget * widget = GTK_WIDGET (g_object_new (gtk_multi_vpaned_get_type (), NULL));
+ g_signal_connect(G_OBJECT(widget), "destroy",
+ G_CALLBACK(gtk_multi_vpaned_destroy),NULL);
+
+ return widget;
}
GtkWidget * gtk_multi_vpaned_get_widget(GtkMultiVPaned * multi_vpaned)
}
GtkWidget * gtk_multi_vpaned_get_widget(GtkMultiVPaned * multi_vpaned)
This page took
0.024982 seconds
and
4
git commands to generate.