diff options
author | monsta <[email protected]> | 2017-02-02 16:06:29 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2017-02-02 16:06:29 +0300 |
commit | 58fe83adf9b1ce9445b116a0277c405bb5455da0 (patch) | |
tree | 647f9eef722fd8213ef50ae2523e5ba535a7437a /applets | |
parent | 90daf672ae2eaea92767a485215ff2b487168200 (diff) | |
download | mate-power-manager-58fe83adf9b1ce9445b116a0277c405bb5455da0.tar.bz2 mate-power-manager-58fe83adf9b1ce9445b116a0277c405bb5455da0.tar.xz |
brightness applet: fix indent in some places
Diffstat (limited to 'applets')
-rw-r--r-- | applets/brightness/brightness-applet.c | 43 |
1 files changed, 21 insertions, 22 deletions
diff --git a/applets/brightness/brightness-applet.c b/applets/brightness/brightness-applet.c index 8e5345d..103909c 100644 --- a/applets/brightness/brightness-applet.c +++ b/applets/brightness/brightness-applet.c @@ -560,21 +560,21 @@ on_popup_button_press (GtkWidget *widget, GdkEventButton *event, GpmBrightnessApplet *applet) { - GtkWidget *event_widget; - - if (event->type != GDK_BUTTON_PRESS) { - return FALSE; - } - event_widget = gtk_get_event_widget ((GdkEvent *)event); - g_debug ("Button press: %p dock=%p", event_widget, widget); - if (event_widget == widget) { - gtk_widget_hide (applet->popup); - applet->popped = FALSE; - gpm_applet_update_tooltip (applet); - return TRUE; - } - - return FALSE; + GtkWidget *event_widget; + + if (event->type != GDK_BUTTON_PRESS) { + return FALSE; + } + event_widget = gtk_get_event_widget ((GdkEvent *)event); + g_debug ("Button press: %p dock=%p", event_widget, widget); + if (event_widget == widget) { + gtk_widget_hide (applet->popup); + applet->popped = FALSE; + gpm_applet_update_tooltip (applet); + return TRUE; + } + + return FALSE; } /** @@ -636,12 +636,12 @@ gpm_applet_create_popup (GpmBrightnessApplet *applet) gtk_window_set_type_hint (GTK_WINDOW(applet->popup), GDK_WINDOW_TYPE_HINT_UTILITY); gtk_container_add (GTK_CONTAINER(applet->popup), frame); - /* window events */ - g_signal_connect (G_OBJECT(applet->popup), "button-press-event", - G_CALLBACK (on_popup_button_press), applet); + /* window events */ + g_signal_connect (G_OBJECT(applet->popup), "button-press-event", + G_CALLBACK (on_popup_button_press), applet); - g_signal_connect (G_OBJECT(applet->popup), "key-press-event", - G_CALLBACK(gpm_applet_key_press_cb), applet); + g_signal_connect (G_OBJECT(applet->popup), "key-press-event", + G_CALLBACK(gpm_applet_key_press_cb), applet); /* Set volume control frame, slider and toplevel window to follow panel volume control theme */ GtkWidget *toplevel = gtk_widget_get_toplevel (frame); @@ -998,8 +998,7 @@ gpm_brightness_applet_init (GpmBrightnessApplet *applet) /* Add application specific icons to search path */ gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (), - GPM_DATA G_DIR_SEPARATOR_S "icons"); - + GPM_DATA G_DIR_SEPARATOR_S "icons"); /* monitor the daemon */ applet->bus_watch_id = |