diff options
-rw-r--r-- | src/applet-main.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/applet-main.c b/src/applet-main.c index 3688084..a4e60d9 100644 --- a/src/applet-main.c +++ b/src/applet-main.c @@ -69,8 +69,8 @@ applet_fill_cb (PanelApplet * applet, const gchar * iid, gpointer data) gint indicators_loaded = 0; /* Set panel options */ - gtk_container_set_border_width (GTK_CONTAINER (applet), 0); - panel_applet_set_flags (applet, PANEL_APPLET_EXPAND_MINOR); + gtk_container_set_border_width(GTK_CONTAINER (applet), 0); + panel_applet_set_flags(applet, PANEL_APPLET_EXPAND_MINOR); /* Init some theme/icon stuff */ gtk_icon_theme_append_search_path(gtk_icon_theme_get_default(), @@ -108,8 +108,8 @@ applet_fill_cb (PanelApplet * applet, const gchar * iid, gpointer data) } /* Background of applet */ - g_signal_connect (applet, "change-background", - G_CALLBACK (cw_panel_background_changed), menubar); + g_signal_connect(applet, "change-background", + G_CALLBACK(cw_panel_background_changed), menubar); gtk_widget_show(GTK_WIDGET(applet)); @@ -127,30 +127,30 @@ cw_panel_background_changed (PanelApplet *applet, GtkStyle *style; /* reset style */ - gtk_widget_set_style (GTK_WIDGET (applet), NULL); - gtk_widget_set_style (menubar, NULL); + gtk_widget_set_style(GTK_WIDGET (applet), NULL); + gtk_widget_set_style(menubar, NULL); rc_style = gtk_rc_style_new (); - gtk_widget_modify_style (GTK_WIDGET (applet), rc_style); - gtk_widget_modify_style (menubar, rc_style); - gtk_rc_style_unref (rc_style); + gtk_widget_modify_style(GTK_WIDGET (applet), rc_style); + gtk_widget_modify_style(menubar, rc_style); + gtk_rc_style_unref(rc_style); switch (type) { case PANEL_NO_BACKGROUND: break; case PANEL_COLOR_BACKGROUND: - gtk_widget_modify_bg (GTK_WIDGET (applet), GTK_STATE_NORMAL, colour); - gtk_widget_modify_bg (menubar, GTK_STATE_NORMAL, colour); + gtk_widget_modify_bg(GTK_WIDGET (applet), GTK_STATE_NORMAL, colour); + gtk_widget_modify_bg(menubar, GTK_STATE_NORMAL, colour); break; case PANEL_PIXMAP_BACKGROUND: - style = gtk_style_copy (GTK_WIDGET (applet)->style); + style = gtk_style_copy(GTK_WIDGET (applet)->style); if (style->bg_pixmap[GTK_STATE_NORMAL]) - g_object_unref (style->bg_pixmap[GTK_STATE_NORMAL]); + g_object_unref(style->bg_pixmap[GTK_STATE_NORMAL]); style->bg_pixmap[GTK_STATE_NORMAL] = g_object_ref (pixmap); - gtk_widget_set_style (GTK_WIDGET (applet), style); - gtk_widget_set_style (GTK_WIDGET (menubar), style); - g_object_unref (style); + gtk_widget_set_style(GTK_WIDGET (applet), style); + gtk_widget_set_style(GTK_WIDGET (menubar), style); + g_object_unref(style); break; } } |