[gnome-todo/wip/sadiq/geometry] window: Fix style issues



commit 424d95553a0e5362fc55d8828a73c315115e655f
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Sep 5 18:24:35 2018 +0000

    window: Fix style issues

 src/gtd-window.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/src/gtd-window.c b/src/gtd-window.c
index 901c1b5..4a558a3 100644
--- a/src/gtd-window.c
+++ b/src/gtd-window.c
@@ -309,11 +309,12 @@ error_message_notification_secondary_action (GtdNotification *notification,
 static void
 load_geometry (GtdWindow *self)
 {
-  GtkWindow *window = GTK_WINDOW (self);
-  GSettings *settings;
   GdkRectangle geometry;
+  GSettings *settings;
+  GtkWindow *window;
   gboolean maximized;
 
+  window = GTK_WINDOW (self);
   settings = gtd_manager_get_settings (gtd_manager_get_default ());
 
   maximized = g_settings_get_boolean (settings, "window-maximized");
@@ -451,13 +452,15 @@ on_show_notification_cb (GtdManager      *manager,
 static void
 gtd_window_unmap (GtkWidget *widget)
 {
-  GtkWindow *window = (GtkWindow *)widget;
-  GSettings *settings;
   GdkRectangle geometry;
+  GSettings *settings;
+  GtkWindow *window;
   gboolean maximized;
 
+  window = GTK_WINDOW (widget);
   settings = gtd_manager_get_settings (gtd_manager_get_default ());
   maximized = gtk_window_is_maximized (window);
+
   g_settings_set_boolean (settings, "window-maximized", maximized);
 
   if (maximized)


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