Skip to content

Commit

Permalink
frontend: Re format code with clang
Browse files Browse the repository at this point in the history
Signed-off-by: Ikey Doherty <[email protected]>
  • Loading branch information
ikeydoherty committed Apr 10, 2018
1 parent afce64c commit 62c4321
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/frontend/classic/classic-window.c
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ static void brisk_classic_window_setup_session_controls(BriskClassicWindow *self
gtk_container_add(GTK_CONTAINER(box), widget);
style = gtk_widget_get_style_context(widget);
gtk_style_context_add_class(style, GTK_STYLE_CLASS_FLAT);
gtk_style_context_add_class (style, "session-button");
gtk_style_context_add_class(style, "session-button");

/* Lock */
widget = gtk_button_new_from_icon_name("system-lock-screen-symbolic",
Expand All @@ -673,7 +673,7 @@ static void brisk_classic_window_setup_session_controls(BriskClassicWindow *self
gtk_container_add(GTK_CONTAINER(box), widget);
style = gtk_widget_get_style_context(widget);
gtk_style_context_add_class(style, GTK_STYLE_CLASS_FLAT);
gtk_style_context_add_class (style, "session-button");
gtk_style_context_add_class(style, "session-button");

/* Shutdown */
widget =
Expand All @@ -685,7 +685,7 @@ static void brisk_classic_window_setup_session_controls(BriskClassicWindow *self
gtk_container_add(GTK_CONTAINER(box), widget);
style = gtk_widget_get_style_context(widget);
gtk_style_context_add_class(style, GTK_STYLE_CLASS_FLAT);
gtk_style_context_add_class (style, "session-button");
gtk_style_context_add_class(style, "session-button");
}

/**
Expand Down
11 changes: 7 additions & 4 deletions src/frontend/dash/dash-window.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ static void brisk_dash_window_associate_category(BriskMenuWindow *self, GtkWidge
static void brisk_dash_window_on_toggled(BriskMenuWindow *self, GtkWidget *button);
static gboolean brisk_dash_window_on_enter(BriskMenuWindow *self, GdkEventCrossing *event,
GtkWidget *button);
static void brisk_dash_window_load_css(GtkSettings *settings, const gchar *key, BriskDashWindow *self);
static void brisk_dash_window_load_css(GtkSettings *settings, const gchar *key,
BriskDashWindow *self);
static void brisk_dash_window_key_activate(BriskDashWindow *self, gpointer v);
static void brisk_dash_window_activated(BriskMenuWindow *self, GtkFlowBoxChild *row, gpointer v);
static void brisk_dash_window_set_filters_enabled(BriskDashWindow *self, gboolean enabled);
Expand Down Expand Up @@ -531,7 +532,8 @@ static gboolean brisk_dash_window_on_enter(BriskMenuWindow *self,
/**
* Load up the CSS assets
*/
static void brisk_dash_window_load_css(GtkSettings *settings, const gchar *key, BriskDashWindow *self)
static void brisk_dash_window_load_css(GtkSettings *settings, const gchar *key,
BriskDashWindow *self)
{
GtkCssProvider *css = NULL;
GtkStyleContext *context = NULL;
Expand All @@ -544,9 +546,10 @@ static void brisk_dash_window_load_css(GtkSettings *settings, const gchar *key,

context = gtk_widget_get_style_context(GTK_WIDGET(self));
if (gtk_style_context_lookup_color(context, "dark_bg_color", &color)) {
file = g_file_new_for_uri("resource://com/solus-project/brisk/menu/dash/styling-light.css");
file = g_file_new_for_uri(
"resource://com/solus-project/brisk/menu/dash/styling-light.css");
}

if (!file) {
return;
}
Expand Down

0 comments on commit 62c4321

Please sign in to comment.