[totem] main: Use helper to remove shadow from the popups
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] main: Use helper to remove shadow from the popups
- Date: Thu, 20 Feb 2014 15:46:25 +0000 (UTC)
commit 1f7282414a6b00d62b9659df5a6e82307986cfbd
Author: Bastien Nocera <hadess hadess net>
Date: Thu Feb 20 16:00:23 2014 +0100
main: Use helper to remove shadow from the popups
src/Makefile.am | 3 ++-
src/totem-object.c | 4 ++++
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 6634147..846db6d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -45,7 +45,8 @@ libtotem_player_la_CPPFLAGS = \
libtotem_player_la_LIBADD = \
$(PLAYER_LIBS) \
gst/libtotemtimehelpers.la \
- gst/libtotemrtlhelpers.la
+ gst/libtotemrtlhelpers.la \
+ gst/libtotemstylehelpers.la
libtotem_player_la_CFLAGS = \
$(LIBPLAYER_CFLAGS) \
-I$(srcdir)/gst/ \
diff --git a/src/totem-object.c b/src/totem-object.c
index 1c7dd40..e590322 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -64,6 +64,7 @@
#include "totem-preferences.h"
#include "totem-session.h"
#include "totem-rtl-helpers.h"
+#include "totem-style-helpers.h"
#include "totem-main-toolbar.h"
#define WANT_MIME_TYPES 1
@@ -3490,6 +3491,7 @@ totem_callback_connect (TotemObject *totem)
item = g_object_get_data (totem->controls, "go_button");
menu = (GMenuModel *) gtk_builder_get_object (totem->xml, "gomenu");
gtk_menu_button_set_menu_model (GTK_MENU_BUTTON (item), menu);
+ totem_set_popover_no_shadow (item);
/* Cog wheel */
item = totem->gear_button = totem_interface_create_header_button (totem->header,
@@ -3499,6 +3501,7 @@ totem_callback_connect (TotemObject *totem)
g_object_set (G_OBJECT (totem->gear_button), "use-popover", TRUE, NULL);
menu = (GMenuModel *) gtk_builder_get_object (totem->xml, "playermenu");
gtk_menu_button_set_menu_model (GTK_MENU_BUTTON (item), menu);
+ totem_set_popover_no_shadow (item);
g_signal_connect (G_OBJECT (item), "toggled",
G_CALLBACK (fullscreen_menu_shown_cb), totem);
@@ -3661,6 +3664,7 @@ add_fullscreen_toolbar (TotemObject *totem)
g_object_set (G_OBJECT (item), "use-popover", TRUE, NULL);
menu = (GMenuModel *) gtk_builder_get_object (totem->xml, "playermenu");
gtk_menu_button_set_menu_model (GTK_MENU_BUTTON (item), menu);
+ totem_set_popover_no_shadow (item);
g_signal_connect (G_OBJECT (item), "toggled",
G_CALLBACK (fullscreen_menu_shown_cb), totem);
totem->fullscreen_gear_button = item;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]