[gnome-photos/wip/cdavis/fix-header-hiding] photos-embed: Hide titlebar on fullscreen




commit 1cef31fcebf42916501936e494e3cd38711f60f1
Author: Christopher Davis <brainblasted disroot org>
Date:   Wed Feb 10 17:48:45 2021 -0800

    photos-embed: Hide titlebar on fullscreen
    
    This fixes a regression from switching to HdyWindow.

 src/photos-embed.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/photos-embed.c b/src/photos-embed.c
index 9f8eac83..22694e4f 100644
--- a/src/photos-embed.c
+++ b/src/photos-embed.c
@@ -388,6 +388,9 @@ photos_embed_load_started (PhotosEmbed *self, PhotosBaseItem *item)
 static void
 photos_embed_fullscreen_changed (PhotosModeController *mode_cntrlr, gboolean fullscreen, gpointer user_data)
 {
+  PhotosEmbed *self = PHOTOS_EMBED (user_data);
+
+  gtk_widget_set_visible (self->toolbar, !fullscreen);
 }
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]