[epiphany] ephy-window: simplify window_state_event() chain-up



commit 4abc9f5279b680d50627b9d7f884d3c8aa080e7f
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Mon Jun 11 12:12:08 2012 +0300

    ephy-window: simplify window_state_event() chain-up

 src/ephy-window.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 3f56666..337df3d 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -3045,12 +3045,10 @@ ephy_window_state_event (GtkWidget *widget,
 {
 	EphyWindow *window = EPHY_WINDOW (widget);
 	EphyWindowPrivate *priv = window->priv;
-	gboolean (* window_state_event) (GtkWidget *, GdkEventWindowState *);
 
-	window_state_event = GTK_WIDGET_CLASS (ephy_window_parent_class)->window_state_event;
-	if (window_state_event)
+	if (GTK_WIDGET_CLASS (ephy_window_parent_class)->window_state_event)
 	{
-		window_state_event (widget, event);
+		GTK_WIDGET_CLASS (ephy_window_parent_class)->window_state_event (widget, event);
 	}
 
 	if (event->changed_mask & GDK_WINDOW_STATE_FULLSCREEN)



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