Skip to content

Commit

Permalink
fix improper declarations
Browse files Browse the repository at this point in the history
idk
  • Loading branch information
parmjotsinghrobot authored and ldelossa committed Jun 15, 2024
1 parent d06dde8 commit f6f4517
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ static void on_toggle_button_clicked(GtkButton *button, QuickSettingsGridButton
static void on_theme_changed(ThemeService *ts, enum ThemeServiceTheme theme,
QuickSettingsGridButton *self) {
if (theme == THEME_LIGHT) {
quick_settings_grid_button_set_toggled(self->button, false);
quick_settings_grid_button_set_toggled(self, false);
} else {
quick_settings_grid_button_set_toggled(self->button, true);
quick_settings_grid_button_set_toggled(self, true);
}
}

Expand All @@ -46,7 +46,7 @@ void quick_settings_grid_theme_button_init_layout(
on_theme_changed(ts, theme, &self->button);

g_signal_connect(ts, "theme-changed", G_CALLBACK(on_theme_changed),
&self->button.toggle);
&self->button);

// wire button click
g_signal_connect(self->button.toggle, "clicked", G_CALLBACK(on_toggle_button_clicked),
Expand Down

0 comments on commit f6f4517

Please sign in to comment.