Skip to content

Commit

Permalink
lapiz-spell-checker-dialog: add G_GNUC_UNUSED in unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0w committed Jun 13, 2024
1 parent 380e9bd commit 34f34d6
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions plugins/spell/lapiz-spell-checker-dialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ create_dialog (LapizSpellCheckerDialog *dlg,
}

static void
lapiz_spell_checker_dialog_init (LapizSpellCheckerDialog *dlg)
lapiz_spell_checker_dialog_init (LapizSpellCheckerDialog *dlg G_GNUC_UNUSED)
{
}

Expand Down Expand Up @@ -398,7 +398,7 @@ lapiz_spell_checker_dialog_set_spell_checker (LapizSpellCheckerDialog *dlg, Lapi
void
lapiz_spell_checker_dialog_set_misspelled_word (LapizSpellCheckerDialog *dlg,
const gchar *word,
gint len)
gint len G_GNUC_UNUSED)
{
gchar *tmp;
GSList *sug;
Expand Down Expand Up @@ -485,7 +485,8 @@ update_suggestions_list_model (LapizSpellCheckerDialog *dlg, GSList *suggestions
}

static void
word_entry_changed_handler (CtkEditable *editable, LapizSpellCheckerDialog *dlg)
word_entry_changed_handler (CtkEditable *editable G_GNUC_UNUSED,
LapizSpellCheckerDialog *dlg)
{
const gchar *text;

Expand All @@ -508,7 +509,8 @@ word_entry_changed_handler (CtkEditable *editable, LapizSpellCheckerDialog *dlg)
}

static void
close_button_clicked_handler (CtkButton *button, LapizSpellCheckerDialog *dlg)
close_button_clicked_handler (CtkButton *button G_GNUC_UNUSED,
LapizSpellCheckerDialog *dlg)
{
g_return_if_fail (LAPIZ_IS_SPELL_CHECKER_DIALOG (dlg));

Expand Down Expand Up @@ -540,7 +542,8 @@ suggestions_list_selection_changed_handler (CtkTreeSelection *selection,
}

static void
check_word_button_clicked_handler (CtkButton *button, LapizSpellCheckerDialog *dlg)
check_word_button_clicked_handler (CtkButton *button G_GNUC_UNUSED,
LapizSpellCheckerDialog *dlg)
{
const gchar *word;
gssize len;
Expand Down Expand Up @@ -584,7 +587,8 @@ check_word_button_clicked_handler (CtkButton *button, LapizSpellCheckerDialog *d
}

static void
add_word_button_clicked_handler (CtkButton *button, LapizSpellCheckerDialog *dlg)
add_word_button_clicked_handler (CtkButton *button G_GNUC_UNUSED,
LapizSpellCheckerDialog *dlg)
{
gchar *word;

Expand All @@ -603,7 +607,8 @@ add_word_button_clicked_handler (CtkButton *button, LapizSpellCheckerDialog *dlg
}

static void
ignore_button_clicked_handler (CtkButton *button, LapizSpellCheckerDialog *dlg)
ignore_button_clicked_handler (CtkButton *button G_GNUC_UNUSED,
LapizSpellCheckerDialog *dlg)
{
gchar *word;

Expand All @@ -618,7 +623,8 @@ ignore_button_clicked_handler (CtkButton *button, LapizSpellCheckerDialog *dlg)
}

static void
ignore_all_button_clicked_handler (CtkButton *button, LapizSpellCheckerDialog *dlg)
ignore_all_button_clicked_handler (CtkButton *button G_GNUC_UNUSED,
LapizSpellCheckerDialog *dlg)
{
gchar *word;

Expand All @@ -637,7 +643,8 @@ ignore_all_button_clicked_handler (CtkButton *button, LapizSpellCheckerDialog *d
}

static void
change_button_clicked_handler (CtkButton *button, LapizSpellCheckerDialog *dlg)
change_button_clicked_handler (CtkButton *button G_GNUC_UNUSED,
LapizSpellCheckerDialog *dlg)
{
const gchar *entry_text;
gchar *change;
Expand Down Expand Up @@ -665,18 +672,19 @@ change_button_clicked_handler (CtkButton *button, LapizSpellCheckerDialog *dlg)

/* double click on one of the suggestions is like clicking on "change" */
static void
suggestions_list_row_activated_handler (CtkTreeView *view,
CtkTreePath *path,
CtkTreeViewColumn *column,
LapizSpellCheckerDialog *dlg)
suggestions_list_row_activated_handler (CtkTreeView *view G_GNUC_UNUSED,
CtkTreePath *path G_GNUC_UNUSED,
CtkTreeViewColumn *column G_GNUC_UNUSED,
LapizSpellCheckerDialog *dlg)
{
g_return_if_fail (LAPIZ_IS_SPELL_CHECKER_DIALOG (dlg));

change_button_clicked_handler (CTK_BUTTON (dlg->change_button), dlg);
}

static void
change_all_button_clicked_handler (CtkButton *button, LapizSpellCheckerDialog *dlg)
change_all_button_clicked_handler (CtkButton *button G_GNUC_UNUSED,
LapizSpellCheckerDialog *dlg)
{
const gchar *entry_text;
gchar *change;
Expand Down

0 comments on commit 34f34d6

Please sign in to comment.