Mercurial > hg > xemacs-beta
comparison src/scrollbar-gtk.c @ 525:77fb0aa0e69f
[xemacs-hg @ 2001-05-09 14:31:52 by wmperry]
Fix disappearing GTK scrollbar problem...
author | wmperry |
---|---|
date | Wed, 09 May 2001 14:31:56 +0000 |
parents | 0784d089fdc9 |
children | 4d7fdf497470 |
comparison
equal
deleted
inserted
replaced
524:1f4790508db6 | 525:77fb0aa0e69f |
---|---|
112 GTK_SIGNAL_FUNC (scrollbar_drag_hack_cb), (gpointer) 1); | 112 GTK_SIGNAL_FUNC (scrollbar_drag_hack_cb), (gpointer) 1); |
113 gtk_signal_connect (GTK_OBJECT (sb), "button-release-event", | 113 gtk_signal_connect (GTK_OBJECT (sb), "button-release-event", |
114 GTK_SIGNAL_FUNC (scrollbar_drag_hack_cb), (gpointer) 0); | 114 GTK_SIGNAL_FUNC (scrollbar_drag_hack_cb), (gpointer) 0); |
115 | 115 |
116 gtk_fixed_put (GTK_FIXED (FRAME_GTK_TEXT_WIDGET (f)), SCROLLBAR_GTK_WIDGET (instance), 0, 0); | 116 gtk_fixed_put (GTK_FIXED (FRAME_GTK_TEXT_WIDGET (f)), SCROLLBAR_GTK_WIDGET (instance), 0, 0); |
117 | |
118 #if GTK_CHECK_VERSION(1,2,9) | |
119 /* | |
120 ** With gtk version > 1.2.8 the scrollbars in gtk-xemacs and xemacs | |
121 ** from CVS are invisible. In fact they are not invisible but very | |
122 ** thin (0 pixels wide). This is so, because the new gtk code does | |
123 ** not call gtk_widget_request_size() on the newly created | |
124 ** scrollbars anymore. this change was done to allow the theme | |
125 ** engines to manipulate the scrollbar width. This patch calls | |
126 ** gtk_widget_request_size with the newly created scollbars. Maybe | |
127 ** it is better to postpone this call just before the | |
128 ** gtk_widget_show() call is done on the scrolbar. | |
129 */ | |
130 gtk_widget_size_request(GTK_WIDGET(sb), &(GTK_WIDGET(sb)->requisition)); | |
131 #endif | |
132 | |
117 gtk_widget_hide (SCROLLBAR_GTK_WIDGET (instance)); | 133 gtk_widget_hide (SCROLLBAR_GTK_WIDGET (instance)); |
118 } | 134 } |
119 | 135 |
120 #define UPDATE_DATA_FIELD(field) \ | 136 #define UPDATE_DATA_FIELD(field) \ |
121 if (new_##field >= 0 && \ | 137 if (new_##field >= 0 && \ |