[gnome-panel/gtk3] misc: Small code cleanups



commit c8d23ed1ba6e66c04807b0594133977b9d6235fc
Author: Vincent Untz <vuntz gnome org>
Date:   Tue Feb 1 00:36:00 2011 +0100

    misc: Small code cleanups

 applets/clock/clock-face.c                         |    1 -
 applets/wncklet/workspace-switcher.c               |    1 -
 .../panel-applet-container.c                       |    2 +-
 gnome-panel/menu.c                                 |    3 ++-
 gnome-panel/panel-widget.c                         |    4 ++--
 5 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/applets/clock/clock-face.c b/applets/clock/clock-face.c
index a3d10d0..a974634 100644
--- a/applets/clock/clock-face.c
+++ b/applets/clock/clock-face.c
@@ -131,7 +131,6 @@ clock_face_draw (GtkWidget *this, cairo_t *cr)
         /* clock back */
         if (priv->face_pixbuf) {
                 cairo_save (cr);
-
                 gdk_cairo_set_source_pixbuf (cr, priv->face_pixbuf, 0, 0);
                 cairo_paint (cr);
                 cairo_restore (cr);
diff --git a/applets/wncklet/workspace-switcher.c b/applets/wncklet/workspace-switcher.c
index c3787c3..f9dbde3 100644
--- a/applets/wncklet/workspace-switcher.c
+++ b/applets/wncklet/workspace-switcher.c
@@ -813,7 +813,6 @@ close_dialog (GtkWidget *button,
 	GtkCellArea *area;
 	GtkCellEditable *edit_widget;
 
-
 	/* This is a hack. The "editable" signal for GtkCellRenderer is emitted
 	only on button press or focus cycle. Hence when the user changes the
 	name and closes the preferences dialog without a button-press he would
diff --git a/gnome-panel/libpanel-applet-private/panel-applet-container.c b/gnome-panel/libpanel-applet-private/panel-applet-container.c
index efe5b12..886e7f2 100644
--- a/gnome-panel/libpanel-applet-private/panel-applet-container.c
+++ b/gnome-panel/libpanel-applet-private/panel-applet-container.c
@@ -20,8 +20,8 @@
  *
  */
 
-#include <gtk/gtkx.h>
 #include <string.h>
+#include <gtk/gtkx.h>
 #include "panel-applet-container.h"
 #include "panel-marshal.h"
 
diff --git a/gnome-panel/menu.c b/gnome-panel/menu.c
index c03acb4..837b1a0 100644
--- a/gnome-panel/menu.c
+++ b/gnome-panel/menu.c
@@ -1091,12 +1091,13 @@ drag_end_menu_cb (GtkWidget *widget, GdkDragContext     *context)
 			       GDK_OWNERSHIP_WINDOW, TRUE,
 			       GDK_KEY_PRESS | GDK_KEY_RELEASE,
 			       NULL, GDK_CURRENT_TIME) == GDK_GRAB_SUCCESS)
+	    {
 	    /* FIXMEgpoo: We need either accessors or a workaround to grab
 	       the focus */
 #if 0
 	     GTK_MENU_SHELL (xgrab_shell)->GSEAL(have_xgrab) = TRUE;
 #endif
-	      g_message ("xgrab\n");
+	    }
 	  else
 	    {
 	      gdk_device_ungrab (pointer, GDK_CURRENT_TIME);
diff --git a/gnome-panel/panel-widget.c b/gnome-panel/panel-widget.c
index ead9d48..06f6119 100644
--- a/gnome-panel/panel-widget.c
+++ b/gnome-panel/panel-widget.c
@@ -132,7 +132,7 @@ add_tab_bindings (GtkBindingSet    *binding_set,
 	gtk_binding_entry_add_signal (binding_set, GDK_KEY_Tab, modifiers,
 				      "tab_move", 1,
 				      G_TYPE_BOOLEAN, next);
-  	gtk_binding_entry_add_signal (binding_set, GDK_KEY_KP_Tab, modifiers,
+	gtk_binding_entry_add_signal (binding_set, GDK_KEY_KP_Tab, modifiers,
 				      "tab_move", 1,
 				      G_TYPE_BOOLEAN, next);
 }
@@ -236,7 +236,7 @@ remove_tab_bindings (GtkBindingSet    *binding_set,
 		     gboolean          next)
 {
 	gtk_binding_entry_remove (binding_set, GDK_KEY_Tab, modifiers);
-  	gtk_binding_entry_remove (binding_set, GDK_KEY_KP_Tab, modifiers);
+	gtk_binding_entry_remove (binding_set, GDK_KEY_KP_Tab, modifiers);
 }
 
 static void



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