Allowing swipe back in AdwLeaflet

This commit is contained in:
sergiotarxz 2021-10-31 20:51:42 +01:00
parent 4c492a5791
commit d48967f1bf
2 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,6 @@ manga_selected (GtkListView *list_view,
MangaPressedValues *manga_pressed_values = (MangaPressedValues *) user_data;
AdwLeaflet *views_leaflet = manga_pressed_values->views_leaflet;
GtkBox *box = GTK_BOX (gtk_box_new (GTK_ORIENTATION_VERTICAL, 0));
printf ("hello world\n");
adw_leaflet_append (views_leaflet, GTK_WIDGET (box));
adw_leaflet_navigate (views_leaflet, ADW_NAVIGATION_DIRECTION_FORWARD);
}

View File

@ -24,6 +24,7 @@ activate (AdwApplication *app,
GtkListView *list_view;
GtkWidget *scroll;
AdwLeaflet *views_leaflet = ADW_LEAFLET (adw_leaflet_new ());
adw_leaflet_set_can_swipe_back (views_leaflet, 1);
create_headerbar (box);