[gnome-panel/gtk3] all: Small code beautification for gtk_css_provider_load_from_data()



commit beb8d95da743086f42ae9ddc74d88419188de6c4
Author: Vincent Untz <vuntz gnome org>
Date:   Mon Jan 31 11:31:33 2011 +0100

    all: Small code beautification for gtk_css_provider_load_from_data()
    
    Put closing bracket on its own line.

 applets/clock/clock.c            |    3 ++-
 applets/notification_area/main.c |    3 ++-
 applets/wncklet/showdesktop.c    |    3 ++-
 applets/wncklet/window-menu.c    |    3 ++-
 gnome-panel/panel-menu-bar.c     |    2 +-
 5 files changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/applets/clock/clock.c b/applets/clock/clock.c
index 39d2079..478921f 100644
--- a/applets/clock/clock.c
+++ b/applets/clock/clock.c
@@ -1312,7 +1312,8 @@ force_no_focus_padding (GtkWidget *widget)
                 gtk_css_provider_load_from_data (provider,
                                          "#clock-applet-button {\n"
                                          " -GtkWidget-focus-line-width: 0px;\n"
-                                         " -GtkWidget-focus-padding: 0px; }",
+                                         " -GtkWidget-focus-padding: 0px;\n"
+					 "}",
                                          -1, NULL);
                 gtk_style_context_add_provider (gtk_widget_get_style_context (widget),
                                         GTK_STYLE_PROVIDER (provider),
diff --git a/applets/notification_area/main.c b/applets/notification_area/main.c
index c716439..3aa8338 100644
--- a/applets/notification_area/main.c
+++ b/applets/notification_area/main.c
@@ -270,7 +270,8 @@ force_no_focus_padding (GtkWidget *widget)
   gtk_css_provider_load_from_data (provider,
                                    "#na-tray {\n"
                                    " -GtkWidget-focus-line-width: 0px;\n"
-                                   " -GtkWidget-focus-padding: 0px; }",
+                                   " -GtkWidget-focus-padding: 0px;\n"
+				   "}",
                                    -1, NULL);
   gtk_style_context_add_provider (gtk_widget_get_style_context (widget),
                                   GTK_STYLE_PROVIDER (provider),
diff --git a/applets/wncklet/showdesktop.c b/applets/wncklet/showdesktop.c
index 06f9521..9bd0444 100644
--- a/applets/wncklet/showdesktop.c
+++ b/applets/wncklet/showdesktop.c
@@ -451,7 +451,8 @@ show_desktop_applet_fill (PanelApplet *applet)
         gtk_css_provider_load_from_data (provider,
                                          "#showdesktop-button {\n"
                                          " -GtkWidget-focus-line-width: 0px;\n"
-                                         " -GtkWidget-focus-padding: 0px; }",
+                                         " -GtkWidget-focus-padding: 0px;\n"
+					 "}",
                                          -1, NULL);
         gtk_style_context_add_provider (gtk_widget_get_style_context (sdd->button),
                                         GTK_STYLE_PROVIDER (provider),
diff --git a/applets/wncklet/window-menu.c b/applets/wncklet/window-menu.c
index 294a931..66fbc6c 100644
--- a/applets/wncklet/window-menu.c
+++ b/applets/wncklet/window-menu.c
@@ -149,7 +149,8 @@ force_no_focus_padding (GtkWidget *widget)
                                          "#window-menu-applet-button {\n"
                                          " border-width: 0px;\n"
                                          " -GtkWidget-focus-line-width: 0px;\n"
-                                         " -GtkWidget-focus-padding: 0px; }",
+                                         " -GtkWidget-focus-padding: 0px;\n"
+					 "}",
                                          -1, NULL);
         gtk_style_context_add_provider (gtk_widget_get_style_context (widget),
                                         GTK_STYLE_PROVIDER (provider),
diff --git a/gnome-panel/panel-menu-bar.c b/gnome-panel/panel-menu-bar.c
index 5e24ebd..2dd196a 100644
--- a/gnome-panel/panel-menu-bar.c
+++ b/gnome-panel/panel-menu-bar.c
@@ -300,7 +300,7 @@ panel_menu_bar_class_init (PanelMenuBarClass *klass)
         gtk_css_provider_load_from_data (provider,
                                          "PanelMenuBar {\n"
                                          " border-width: 0px;\n"
-                                         "}\n",
+                                         "}",
                                          -1, NULL);
         gtk_style_context_add_provider_for_screen (gdk_screen_get_default(),
                                         GTK_STYLE_PROVIDER (provider),



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