[Xfce4-commits] <parole:bluesabre/gtk3> Use the osd-class for the fullscreen-widget Is present in most themes, because the OSDs are widespread in newer Gnome-apps, so we can get dark theming without the overhead of adding our own custom class/stylesheet

Simon Steinbeiss noreply at xfce.org
Tue Aug 20 11:40:01 CEST 2013


Updating branch refs/heads/bluesabre/gtk3
         to cd5ff993de30e9245ae85450ca8e8a451ba35f82 (commit)
       from f046c0f08298da556cbfba9a83dea650847ed1e6 (commit)

commit cd5ff993de30e9245ae85450ca8e8a451ba35f82
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Tue Aug 20 11:37:58 2013 +0200

    Use the osd-class for the fullscreen-widget
    Is present in most themes, because the OSDs are widespread in newer Gnome-apps, so we can get dark theming without the overhead of adding our own custom class/stylesheet

 src/parole-player.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/parole-player.c b/src/parole-player.c
index ab6f403..e3f7ba5 100644
--- a/src/parole-player.c
+++ b/src/parole-player.c
@@ -3015,6 +3015,7 @@ parole_player_init (ParolePlayer *player)
     gint w, h;
     gboolean showhide;
     GdkColor background;
+    GtkStyleContext *fullscreen_mode;
     
     gint volume;
     
@@ -3367,6 +3368,8 @@ parole_player_init (ParolePlayer *player)
     gtk_window_set_opacity( GTK_WINDOW(player->priv->fs_window), 0.70 );
     gtk_window_set_gravity (GTK_WINDOW (player->priv->fs_window), GDK_GRAVITY_SOUTH_WEST);
     gtk_window_set_position (GTK_WINDOW (player->priv->fs_window), GTK_WIN_POS_NONE);
+    fullscreen_mode = gtk_widget_get_style_context(GTK_WIDGET(player->priv->fs_window));
+    gtk_style_context_add_class (fullscreen_mode, "osd");
   
     parole_gst_set_default_aspect_ratio (player, builder);
 	


More information about the Xfce4-commits mailing list