diff options
author | Timm Bäder <mail@baedert.org> | 2017-01-08 14:52:34 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2017-01-08 14:57:11 +0100 |
commit | 3d5a62a0c9ea5fbc25ec952cc9c72e0c3da18ce4 (patch) | |
tree | 54e2bf85551493ccdb59e564580c5fbab5f793ba /tests | |
parent | ad8acdcebfb17bae4fd4d2e83621dafea5088911 (diff) | |
download | gtk+-3d5a62a0c9ea5fbc25ec952cc9c72e0c3da18ce4.tar.gz |
actionbar: Add revealed property
So we can show and hide it with a transition as well as bind another
property to it.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testactionbar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testactionbar.c b/tests/testactionbar.c index 3c34cbe5e3..b99ce8f95c 100644 --- a/tests/testactionbar.c +++ b/tests/testactionbar.c @@ -25,9 +25,9 @@ toggle_visibility (GtkCheckButton *button, GtkActionBar *bar) { if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button))) - gtk_widget_show (GTK_WIDGET (bar)); + gtk_action_bar_set_revealed (bar, TRUE); else - gtk_widget_hide (GTK_WIDGET (bar)); + gtk_action_bar_set_revealed (bar, FALSE); } static void @@ -102,7 +102,7 @@ activate (GApplication *gapp) gtk_application_add_window (app, GTK_WINDOW (window)); bar = gtk_action_bar_new (); - gtk_widget_set_no_show_all (bar, TRUE); + gtk_action_bar_set_revealed (GTK_ACTION_BAR (bar), FALSE); box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); |