Commit a008950b authored by Guido Gunther's avatar Guido Gunther Committed by Guido Gunther
Browse files

settings: Fix misaligned function definitions



Signed-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent 0f8e5b93
...@@ -151,8 +151,9 @@ battery_setting_clicked_cb (PhoshSettings *self) ...@@ -151,8 +151,9 @@ battery_setting_clicked_cb (PhoshSettings *self)
g_signal_emit (self, signals[SETTING_DONE], 0); g_signal_emit (self, signals[SETTING_DONE], 0);
} }
static void change_volume (PhoshSettings *self, static void
int steps) change_volume (PhoshSettings *self,
int steps)
{ {
GtkAdjustment *adj; GtkAdjustment *adj;
double vol, inc; double vol, inc;
...@@ -169,20 +170,22 @@ static void change_volume (PhoshSettings *self, ...@@ -169,20 +170,22 @@ static void change_volume (PhoshSettings *self,
gtk_adjustment_set_value (adj, vol); gtk_adjustment_set_value (adj, vol);
} }
static void lower_volume (PhoshSettings *self) static void
lower_volume (PhoshSettings *self)
{ {
change_volume (self, -1); change_volume (self, -1);
} }
static void raise_volume (PhoshSettings *self) static void
raise_volume (PhoshSettings *self)
{ {
change_volume (self, 1); change_volume (self, 1);
} }
static void static void
accelerator_grabbed_cb (PhoshSettings *self, accelerator_grabbed_cb (PhoshSettings *self,
const char *accelerator, const char *accelerator,
uint32_t action_id) uint32_t action_id)
{ {
guint64 action = action_id; guint64 action = action_id;
if (g_strcmp0 (accelerator, "XF86AudioLowerVolume") == 0) { if (g_strcmp0 (accelerator, "XF86AudioLowerVolume") == 0) {
...@@ -194,8 +197,8 @@ accelerator_grabbed_cb (PhoshSettings *self, ...@@ -194,8 +197,8 @@ accelerator_grabbed_cb (PhoshSettings *self,
static void static void
accelerator_activated_cb (PhoshSettings *self, accelerator_activated_cb (PhoshSettings *self,
uint32_t action_id, uint32_t action_id,
uint32_t timestamp) uint32_t timestamp)
{ {
void (*callback)(PhoshSettings *); void (*callback)(PhoshSettings *);
guint64 action = action_id; guint64 action = action_id;
...@@ -361,10 +364,10 @@ end_notify_feedback (PhoshSettings *self) ...@@ -361,10 +364,10 @@ end_notify_feedback (PhoshSettings *self)
static void static void
on_notifcation_items_changed (PhoshSettings *self, on_notifcation_items_changed (PhoshSettings *self,
guint position, guint position,
guint removed, guint removed,
guint added, guint added,
GListModel *list) GListModel *list)
{ {
gboolean is_empty; gboolean is_empty;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment