diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-07-01 12:07:26 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-09-14 20:08:48 +0800 |
commit | ae9db3ed236b0c734fd12c8dc8c99764626bf0b8 (patch) | |
tree | bd45389467f43a96c36172d8a925dd5df041cf5b /e-util/gconf-bridge.c | |
parent | db969c7f664d0a1d901bedd794b0c7e0762ede33 (diff) | |
download | gsoc2013-evolution-ae9db3ed236b0c734fd12c8dc8c99764626bf0b8.tar.gz gsoc2013-evolution-ae9db3ed236b0c734fd12c8dc8c99764626bf0b8.tar.zst gsoc2013-evolution-ae9db3ed236b0c734fd12c8dc8c99764626bf0b8.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'e-util/gconf-bridge.c')
-rw-r--r-- | e-util/gconf-bridge.c | 36 |
1 files changed, 25 insertions, 11 deletions
diff --git a/e-util/gconf-bridge.c b/e-util/gconf-bridge.c index 46bc1d7288..9b0e609560 100644 --- a/e-util/gconf-bridge.c +++ b/e-util/gconf-bridge.c @@ -734,15 +734,22 @@ window_binding_state_event_cb (GtkWindow *window, width and height is the one user stored before maximization */ gint width, height; - width = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (window), "binding-premax-width")); - height = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (window), "binding-premax-height")); + width = GPOINTER_TO_INT (g_object_get_data ( + G_OBJECT (window), "binding-premax-width")); + height = GPOINTER_TO_INT (g_object_get_data ( + G_OBJECT (window), "binding-premax-height")); if (width && height) { gtk_window_resize (window, width, height); - /* do this only once, as it is restore after loading maximized state */ - g_object_set_data (G_OBJECT (window), "binding-premax-width", NULL); - g_object_set_data (G_OBJECT (window), "binding-premax-height", NULL); + /* Do this only once, as it is restored + * after loading maximized state. */ + g_object_set_data ( + G_OBJECT (window), + "binding-premax-width", NULL); + g_object_set_data ( + G_OBJECT (window), + "binding-premax-height", NULL); } } @@ -861,16 +868,23 @@ gconf_bridge_bind_window (GConfBridge *bridge, if (maximized_val) { if (gconf_value_get_bool (maximized_val)) { - /* maximize is not done immediately, but to count with proper - window size, resize it before. The previous size is restored - after the maximization is changed, in window_binding_state_event_cb () - */ + /* Maximize is not done immediately, but to + * count with proper window size, resize it + * before. The previous size is restored + * after the maximization is changed, + * in window_binding_state_event_cb(). */ gint width = 0, height = 0; GdkScreen *screen; gtk_window_get_size (window, &width, &height); - g_object_set_data (G_OBJECT (window), "binding-premax-width", GINT_TO_POINTER (width)); - g_object_set_data (G_OBJECT (window), "binding-premax-height", GINT_TO_POINTER (height)); + g_object_set_data ( + G_OBJECT (window), + "binding-premax-width", + GINT_TO_POINTER (width)); + g_object_set_data ( + G_OBJECT (window), + "binding-premax-height", + GINT_TO_POINTER (height)); screen = gtk_window_get_screen (window); gtk_window_resize (window, |