[eog] EogWindow: Drop deprecated GtkStyle usage
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] EogWindow: Drop deprecated GtkStyle usage
- Date: Fri, 22 Nov 2013 22:55:56 +0000 (UTC)
commit bbe4a87a73327dbce3f8e3249f038592e77398d0
Author: Felix Riemann <friemann gnome org>
Date: Fri Nov 22 23:52:58 2013 +0100
EogWindow: Drop deprecated GtkStyle usage
The call to gtk_widget_set_style was actually useless since
commit f9a5ec65.
src/eog-window.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index 4e35d22..f6cff5f 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -2040,6 +2040,7 @@ eog_window_uninhibit_screensaver (EogWindow *window)
static void
eog_window_run_fullscreen (EogWindow *window, gboolean slideshow)
{
+ static const GdkRGBA black = { 0., 0., 0., 1.};
EogWindowPrivate *priv;
GtkWidget *menubar;
gboolean upscale;
@@ -2115,7 +2116,7 @@ eog_window_run_fullscreen (EogWindow *window, gboolean slideshow)
gtk_widget_grab_focus (priv->view);
eog_scroll_view_override_bg_color (EOG_SCROLL_VIEW (window->priv->view),
- &(gtk_widget_get_style (GTK_WIDGET (window))->black));
+ &black);
gtk_window_fullscreen (GTK_WINDOW (window));
@@ -2175,7 +2176,6 @@ eog_window_stop_fullscreen (EogWindow *window, gboolean slideshow)
eog_scroll_view_override_bg_color (EOG_SCROLL_VIEW (window->priv->view),
NULL);
- gtk_widget_set_style (gtk_widget_get_parent (window->priv->view), NULL);
gtk_window_unfullscreen (GTK_WINDOW (window));
if (slideshow) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]