[brasero] Use gtk_widget_style_attach () in realize implementations



commit e5c82e2f8a2935240f5f18d980c025ac51f81159
Author: Javier Jardón <jjardon gnome org>
Date:   Mon Mar 15 12:04:10 2010 +0100

    Use gtk_widget_style_attach () in realize implementations
    
    Use the correct function to attach the widget's GtkStyle to the
    widget's GdkWindow.

 libbrasero-utils/brasero-jacket-view.c |    2 +-
 src/brasero-player-bacon.c             |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libbrasero-utils/brasero-jacket-view.c b/libbrasero-utils/brasero-jacket-view.c
index e40a722..5e32a76 100644
--- a/libbrasero-utils/brasero-jacket-view.c
+++ b/libbrasero-utils/brasero-jacket-view.c
@@ -1385,7 +1385,7 @@ brasero_jacket_view_realize (GtkWidget *widget)
 	window = gtk_widget_get_window (widget);
 	gdk_window_set_user_data (window, widget);
 
-	gtk_widget_set_style (widget, gtk_style_attach (gtk_widget_get_style (widget), window));
+	gtk_widget_style_attach (widget);
 	GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED);
 
 	gdk_window_show (gtk_widget_get_window (widget));
diff --git a/src/brasero-player-bacon.c b/src/brasero-player-bacon.c
index 336d493..6b29b66 100644
--- a/src/brasero-player-bacon.c
+++ b/src/brasero-player-bacon.c
@@ -142,7 +142,7 @@ brasero_player_bacon_realize (GtkWidget *widget)
 	window = gtk_widget_get_window (widget);
 	gdk_window_set_user_data (window, widget);
 	gdk_window_show (gtk_widget_get_window (widget));
-	gtk_widget_set_style (widget, gtk_style_attach (gtk_widget_get_style (widget), window));
+	gtk_widget_style_attach (widget);
 	//gtk_style_set_background (widget->style, widget->window, GTK_STATE_NORMAL);
 
 	GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED);



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