comparison src/scrollbar-gtk.c @ 5118:e0db3c197671 ben-lisp-object

merge up to latest default branch, doesn't compile yet
author Ben Wing <ben@xemacs.org>
date Sat, 26 Dec 2009 21:18:49 -0600
parents 20773f9b7bc0
children 16112448d484
comparison
equal deleted inserted replaced
5117:3742ea8250b5 5118:e0db3c197671
54 54
55 /* A device method. */ 55 /* A device method. */
56 static void 56 static void
57 gtk_free_scrollbar_instance (struct scrollbar_instance *instance) 57 gtk_free_scrollbar_instance (struct scrollbar_instance *instance)
58 { 58 {
59 if (SCROLLBAR_GTK_WIDGET (instance))
60 {
61 gtk_widget_hide_all (SCROLLBAR_GTK_WIDGET (instance));
62 gtk_widget_destroy (SCROLLBAR_GTK_WIDGET (instance));
63 }
64
65 if (instance->scrollbar_data) 59 if (instance->scrollbar_data)
66 xfree (instance->scrollbar_data, void *); 60 {
61 if (SCROLLBAR_GTK_WIDGET (instance))
62 {
63 gtk_widget_hide_all (SCROLLBAR_GTK_WIDGET (instance));
64 gtk_widget_destroy (SCROLLBAR_GTK_WIDGET (instance));
65 }
66
67 xfree (instance->scrollbar_data, void *);
68 }
67 } 69 }
68 70
69 /* A device method. */ 71 /* A device method. */
70 static void 72 static void
71 gtk_release_scrollbar_instance (struct scrollbar_instance *instance) 73 gtk_release_scrollbar_instance (struct scrollbar_instance *instance)