[totem] browser-plugin: Style the popup button as well



commit 8ac7d4af8d8e6d12893543a10c6f0a750d2e1806
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Jul 12 14:24:40 2011 +0100

    browser-plugin: Style the popup button as well

 browser-plugin/totem-plugin-viewer.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/browser-plugin/totem-plugin-viewer.c b/browser-plugin/totem-plugin-viewer.c
index 51214d4..d999807 100644
--- a/browser-plugin/totem-plugin-viewer.c
+++ b/browser-plugin/totem-plugin-viewer.c
@@ -1917,6 +1917,7 @@ totem_embedded_construct (TotemEmbedded *emb,
 		} else {
 			/* Success! Apply the styling to various widgets */
 			GtkStyleContext *context;
+			GtkWidget *widget;
 
 			context = gtk_widget_get_style_context (emb->pp_button);
 			gtk_style_context_add_provider (context, GTK_STYLE_PROVIDER (provider), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
@@ -1926,6 +1927,10 @@ totem_embedded_construct (TotemEmbedded *emb,
 
 			context = gtk_widget_get_style_context (emb->volume);
 			gtk_style_context_add_provider (context, GTK_STYLE_PROVIDER (provider), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
+
+			widget = GTK_WIDGET (gtk_builder_get_object (emb->xml, "popup_button"));
+			context = gtk_widget_get_style_context (widget);
+			gtk_style_context_add_provider (context, GTK_STYLE_PROVIDER (provider), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
 		}
 
 		g_object_unref (provider);



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