[Xfce4-commits] [xfce/xfce4-panel] 02/02: Fix indentation
noreply at xfce.org
noreply at xfce.org
Sun Oct 20 12:11:28 CEST 2019
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfce4-panel.
commit a719b180ba5fd237a5e8f484948f0b68257f699a
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Sun Oct 20 12:11:08 2019 +0200
Fix indentation
---
panel/panel-window.c | 102 +++++++++++++++++++++++++--------------------------
1 file changed, 51 insertions(+), 51 deletions(-)
diff --git a/panel/panel-window.c b/panel/panel-window.c
index 22c05fb..3643974 100644
--- a/panel/panel-window.c
+++ b/panel/panel-window.c
@@ -2664,66 +2664,66 @@ panel_window_set_autohide_behavior (PanelWindow *window,
/* create an autohide window only if we are autohiding at all */
if (window->autohide_behavior != AUTOHIDE_BEHAVIOR_NEVER)
- {
- /* create an authoide window; doing this only when it doesn't exist
+ {
+ /* create an authohide window; doing this only when it doesn't exist
* yet allows us to transition between "always autohide" and "intelligently
* autohide" without recreating the window */
if (window->autohide_window == NULL)
- {
- /* create the window */
- panel_return_if_fail (window->autohide_window == NULL);
- popup = g_object_new (PANEL_TYPE_BASE_WINDOW,
- "type", GTK_WINDOW_TOPLEVEL,
- "decorated", FALSE,
- "resizable", TRUE,
- "type-hint", GDK_WINDOW_TYPE_HINT_DOCK,
- "gravity", GDK_GRAVITY_STATIC,
- "name", "XfcePanelWindowHidden",
- NULL);
-
- /* move the window offscreen */
- panel_base_window_move_resize (PANEL_BASE_WINDOW (popup),
- -9999, -9999, 3, 3);
-
- /* bind some properties to sync the two windows */
- for (i = 0; i < G_N_ELEMENTS (properties); i++)
{
- g_object_bind_property (G_OBJECT (window), properties[i],
- G_OBJECT (popup), properties[i],
- G_BINDING_DEFAULT);
- }
-
- /* respond to drag motion */
- gtk_drag_dest_set_track_motion (GTK_WIDGET (window), TRUE);
-
- /* signals for pointer enter/leave events */
- g_signal_connect (G_OBJECT (popup), "enter-notify-event",
- G_CALLBACK (panel_window_autohide_event), window);
- g_signal_connect (G_OBJECT (popup), "leave-notify-event",
- G_CALLBACK (panel_window_autohide_event), window);
-
- /* show/hide the panel on drag events */
- gtk_drag_dest_set (popup, 0, NULL, 0, 0);
- gtk_drag_dest_set_track_motion (popup, TRUE);
- g_signal_connect (G_OBJECT (popup), "drag-motion",
- G_CALLBACK (panel_window_autohide_drag_motion), window);
- g_signal_connect (G_OBJECT (popup), "drag-leave",
- G_CALLBACK (panel_window_autohide_drag_leave), window);
+ /* create the window */
+ panel_return_if_fail (window->autohide_window == NULL);
+ popup = g_object_new (PANEL_TYPE_BASE_WINDOW,
+ "type", GTK_WINDOW_TOPLEVEL,
+ "decorated", FALSE,
+ "resizable", TRUE,
+ "type-hint", GDK_WINDOW_TYPE_HINT_DOCK,
+ "gravity", GDK_GRAVITY_STATIC,
+ "name", "XfcePanelWindowHidden",
+ NULL);
+
+ /* move the window offscreen */
+ panel_base_window_move_resize (PANEL_BASE_WINDOW (popup),
+ -9999, -9999, 3, 3);
+
+ /* bind some properties to sync the two windows */
+ for (i = 0; i < G_N_ELEMENTS (properties); i++)
+ {
+ g_object_bind_property (G_OBJECT (window), properties[i],
+ G_OBJECT (popup), properties[i],
+ G_BINDING_DEFAULT);
+ }
- /* show the window */
- window->autohide_window = popup;
- gtk_widget_show (popup);
- }
+ /* respond to drag motion */
+ gtk_drag_dest_set_track_motion (GTK_WIDGET (window), TRUE);
+
+ /* signals for pointer enter/leave events */
+ g_signal_connect (G_OBJECT (popup), "enter-notify-event",
+ G_CALLBACK (panel_window_autohide_event), window);
+ g_signal_connect (G_OBJECT (popup), "leave-notify-event",
+ G_CALLBACK (panel_window_autohide_event), window);
+
+ /* show/hide the panel on drag events */
+ gtk_drag_dest_set (popup, 0, NULL, 0, 0);
+ gtk_drag_dest_set_track_motion (popup, TRUE);
+ g_signal_connect (G_OBJECT (popup), "drag-motion",
+ G_CALLBACK (panel_window_autohide_drag_motion), window);
+ g_signal_connect (G_OBJECT (popup), "drag-leave",
+ G_CALLBACK (panel_window_autohide_drag_leave), window);
+
+ /* show the window */
+ window->autohide_window = popup;
+ gtk_widget_show (popup);
+ }
if (window->autohide_behavior == AUTOHIDE_BEHAVIOR_ALWAYS)
- {
- /* start autohide by hiding the panel straight away */
- if (window->autohide_state != AUTOHIDE_HIDDEN)
{
- panel_window_autohide_queue (window,
- window->autohide_block == 0 ? AUTOHIDE_POPDOWN_SLOW : AUTOHIDE_BLOCKED);
+ /* start autohide by hiding the panel straight away */
+ if (window->autohide_state != AUTOHIDE_HIDDEN)
+ {
+ panel_window_autohide_queue (window,
+ window->autohide_block == 0 ? AUTOHIDE_POPDOWN_SLOW : AUTOHIDE_BLOCKED);
+ }
}
- }
else if (window->autohide_behavior == AUTOHIDE_BEHAVIOR_INTELLIGENTLY)
{
/* start intelligent autohide by making the panel visible initially */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list