summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>2000-11-05 05:08:05 +0000
committerTim Janik <timj@src.gnome.org>2000-11-05 05:08:05 +0000
commitab6b184e9d7b9dbb50e3571b26e32f5c1a74bdce (patch)
tree57d1e99eb9e5b3fe5910d5d31d0b2d881294af9b /tests
parentacf4b21ec289c898f6fcb8138784633f98ec5d7e (diff)
downloadgtk+-ab6b184e9d7b9dbb50e3571b26e32f5c1a74bdce.tar.gz
provide a toggle button to temporarily disable position recording in the
Sun Nov 5 05:32:39 2000 Tim Janik <timj@gtk.org> * gtk/testgtk.c (uposition_stop_configure): provide a toggle button to temporarily disable position recording in the "saved position" test. Sat Nov 4 05:37:17 2000 Tim Janik <timj@gtk.org> * gtk/gtkthemes.c: added compat code that temporarily implements GtkThemeEnginePlugin as a GObject exporting GTypePlugin. this is going to be revamped by owen's upcoming GtkModule patches, but untill then people want gtk to build, right? ;)
Diffstat (limited to 'tests')
-rw-r--r--tests/testgtk.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/testgtk.c b/tests/testgtk.c
index b714be3690..126cf04aa1 100644
--- a/tests/testgtk.c
+++ b/tests/testgtk.c
@@ -2266,6 +2266,16 @@ uposition_configure (GtkWidget *window)
}
static void
+uposition_stop_configure (GtkToggleButton *toggle,
+ GtkObject *window)
+{
+ if (toggle->active)
+ gtk_signal_handler_block_by_func (window, uposition_configure, NULL);
+ else
+ gtk_signal_handler_unblock_by_func (window, uposition_configure, NULL);
+}
+
+static void
create_saved_position (void)
{
static GtkWidget *window = NULL;
@@ -2304,6 +2314,12 @@ create_saved_position (void)
"GtkContainer::border_width", 10,
"GtkWidget::parent", main_vbox,
"GtkWidget::visible", TRUE,
+ "child", gtk_widget_new (GTK_TYPE_TOGGLE_BUTTON,
+ "label", "Stop Events",
+ "active", FALSE,
+ "signal::clicked", uposition_stop_configure, window,
+ "visible", TRUE,
+ NULL),
NULL);
hbox = gtk_hbox_new (FALSE, 0);