--- a/gntbindable.c Fri Apr 05 03:28:19 2019 -0400
+++ b/gntbindable.c Fri Apr 05 23:22:08 2019 +0000
@@ -65,14 +65,14 @@
-gnt_bindable_rebinding_cancel(GntWidget *button, gpointer data)
+gnt_bindable_rebinding_cancel(G_GNUC_UNUSED GntWidget *button, gpointer data) gnt_bindable_free_rebind_info();
gnt_widget_destroy(GNT_WIDGET(data));
-gnt_bindable_rebinding_rebind(GntWidget *button, gpointer data)
+gnt_bindable_rebinding_rebind(G_GNUC_UNUSED GntWidget *button, gpointer data) gnt_bindable_register_binding(rebind_info.klass,
@@ -89,7 +89,8 @@
-gnt_bindable_rebinding_grab_key(GntBindable *bindable, const char *text, gpointer data)
+gnt_bindable_rebinding_grab_key(G_GNUC_UNUSED GntBindable *bindable, + const char *text, gpointer data) GntTextView *textview = GNT_TEXT_VIEW(data);
@@ -457,7 +458,7 @@
-reset_binding_window(GntBindableClass *window, gpointer k)
+reset_binding_window(G_GNUC_UNUSED GntBindableClass *window, gpointer k) GntBindableClass *klass = GNT_BINDABLE_CLASS(k);
klass->help_window = NULL;
--- a/gntbox.c Fri Apr 05 03:28:19 2019 -0400
+++ b/gntbox.c Fri Apr 05 23:22:08 2019 +0000
@@ -348,13 +348,13 @@
-action_focus_next(GntBindable *bindable, GList *null)
+action_focus_next(GntBindable *bindable, G_GNUC_UNUSED GList *params) return box_focus_change(GNT_BOX(bindable), TRUE);
-action_focus_prev(GntBindable *bindable, GList *null)
+action_focus_prev(GntBindable *bindable, G_GNUC_UNUSED GList *params) return box_focus_change(GNT_BOX(bindable), FALSE);
@@ -533,7 +533,7 @@
gnt_box_set_property(GObject *obj, guint prop_id, const GValue *value,
+ G_GNUC_UNUSED GParamSpec *spec) GntBox *box = GNT_BOX(obj);
@@ -551,7 +551,7 @@
gnt_box_get_property(GObject *obj, guint prop_id, GValue *value,
+ G_GNUC_UNUSED GParamSpec *spec) GntBox *box = GNT_BOX(obj);
--- a/gntcombobox.c Fri Apr 05 03:28:19 2019 -0400
+++ b/gntcombobox.c Fri Apr 05 23:22:08 2019 +0000
@@ -222,7 +222,8 @@
-gnt_combo_box_clicked(GntWidget *widget, GntMouseEvent event, int x, int y)
+gnt_combo_box_clicked(GntWidget *widget, GntMouseEvent event, + G_GNUC_UNUSED int x, G_GNUC_UNUSED int y) GntComboBox *box = GNT_COMBO_BOX(widget);
gboolean dshowing = GNT_WIDGET_IS_FLAG_SET(box->dropdown->parent, GNT_WIDGET_MAPPED);
@@ -245,14 +246,15 @@
-gnt_combo_box_size_changed(GntWidget *widget, int oldw, int oldh)
+gnt_combo_box_size_changed(GntWidget *widget, G_GNUC_UNUSED int oldw, + G_GNUC_UNUSED int oldh) GntComboBox *box = GNT_COMBO_BOX(widget);
gnt_widget_set_size(box->dropdown, widget->priv.width - 1, box->dropdown->priv.height);
-dropdown_menu(GntBindable *b, GList *null)
+dropdown_menu(GntBindable *b, G_GNUC_UNUSED GList *params) if (GNT_WIDGET_IS_FLAG_SET(GNT_COMBO_BOX(b)->dropdown->parent, GNT_WIDGET_MAPPED))
--- a/gntentry.c Fri Apr 05 03:28:19 2019 -0400
+++ b/gntentry.c Fri Apr 05 23:22:08 2019 +0000
@@ -335,7 +335,7 @@
-move_back(GntBindable *bind, GList *null)
+move_back(GntBindable *bind, G_GNUC_UNUSED GList *params) GntEntry *entry = GNT_ENTRY(bind);
if (entry->cursor <= entry->start)
@@ -349,7 +349,7 @@
-move_forward(GntBindable *bind, GList *list)
+move_forward(GntBindable *bind, G_GNUC_UNUSED GList *params) GntEntry *entry = GNT_ENTRY(bind);
if (entry->cursor >= entry->end)
@@ -363,7 +363,7 @@
-backspace(GntBindable *bind, GList *null)
+backspace(GntBindable *bind, G_GNUC_UNUSED GList *params) GntEntry *entry = GNT_ENTRY(bind);
@@ -389,7 +389,7 @@
-delkey(GntBindable *bind, GList *null)
+delkey(GntBindable *bind, G_GNUC_UNUSED GList *params) GntEntry *entry = GNT_ENTRY(bind);
@@ -410,7 +410,7 @@
-move_start(GntBindable *bind, GList *null)
+move_start(GntBindable *bind, G_GNUC_UNUSED GList *params) GntEntry *entry = GNT_ENTRY(bind);
entry->scroll = entry->cursor = entry->start;
@@ -420,7 +420,7 @@
-move_end(GntBindable *bind, GList *null)
+move_end(GntBindable *bind, G_GNUC_UNUSED GList *params) GntEntry *entry = GNT_ENTRY(bind);
entry->cursor = entry->end;
@@ -433,7 +433,7 @@
-history_next(GntBindable *bind, GList *null)
+history_next(GntBindable *bind, G_GNUC_UNUSED GList *params) GntEntry *entry = GNT_ENTRY(bind);
if (entry->histlength && entry->history->prev)
@@ -450,7 +450,7 @@
-history_prev(GntBindable *bind, GList *null)
+history_prev(GntBindable *bind, G_GNUC_UNUSED GList *params) GntEntry *entry = GNT_ENTRY(bind);
if (entry->histlength && entry->history->next)
@@ -475,7 +475,7 @@
-history_search(GntBindable *bind, GList *null)
+history_search(GntBindable *bind, G_GNUC_UNUSED GList *params) GntEntry *entry = GNT_ENTRY(bind);
@@ -521,7 +521,7 @@
-clipboard_paste(GntBindable *bind, GList *n)
+clipboard_paste(GntBindable *bind, G_GNUC_UNUSED GList *params) GntEntry *entry = GNT_ENTRY(bind);
gchar *i, *text, *a, *all;
@@ -542,7 +542,7 @@
-suggest_show(GntBindable *bind, GList *null)
+suggest_show(GntBindable *bind, G_GNUC_UNUSED GList *params) GntEntry *entry = GNT_ENTRY(bind);
@@ -553,7 +553,7 @@
-suggest_next(GntBindable *bind, GList *null)
+suggest_next(GntBindable *bind, G_GNUC_UNUSED GList *params) GntEntry *entry = GNT_ENTRY(bind);
@@ -564,7 +564,7 @@
-suggest_prev(GntBindable *bind, GList *null)
+suggest_prev(GntBindable *bind, G_GNUC_UNUSED GList *params) GntEntry *entry = GNT_ENTRY(bind);
@@ -575,7 +575,7 @@
-suggest_next_page(GntBindable *bind, GList *null)
+suggest_next_page(GntBindable *bind, G_GNUC_UNUSED GList *params) GntEntry *entry = GNT_ENTRY(bind);
@@ -586,7 +586,7 @@
-suggest_prev_page(GntBindable *bind, GList *null)
+suggest_prev_page(GntBindable *bind, G_GNUC_UNUSED GList *params) GntEntry *entry = GNT_ENTRY(bind);
@@ -597,7 +597,7 @@
-del_to_home(GntBindable *bind, GList *null)
+del_to_home(GntBindable *bind, G_GNUC_UNUSED GList *params) GntEntry *entry = GNT_ENTRY(bind);
if (entry->cursor <= entry->start)
@@ -613,7 +613,7 @@
-del_to_end(GntBindable *bind, GList *null)
+del_to_end(GntBindable *bind, G_GNUC_UNUSED GList *params) GntEntry *entry = GNT_ENTRY(bind);
if (entry->end <= entry->cursor)
@@ -668,7 +668,7 @@
-move_back_word(GntBindable *bind, GList *null)
+move_back_word(GntBindable *bind, G_GNUC_UNUSED GList *params) GntEntry *entry = GNT_ENTRY(bind);
const char *iter = g_utf8_find_prev_char(entry->start, entry->cursor);
@@ -685,7 +685,7 @@
-del_prev_word(GntBindable *bind, GList *null)
+del_prev_word(GntBindable *bind, G_GNUC_UNUSED GList *params) GntWidget *widget = GNT_WIDGET(bind);
GntEntry *entry = GNT_ENTRY(bind);
@@ -713,7 +713,7 @@
-move_forward_word(GntBindable *bind, GList *list)
+move_forward_word(GntBindable *bind, G_GNUC_UNUSED GList *params) GntEntry *entry = GNT_ENTRY(bind);
GntWidget *widget = GNT_WIDGET(bind);
@@ -727,7 +727,7 @@
-delete_forward_word(GntBindable *bind, GList *list)
+delete_forward_word(GntBindable *bind, G_GNUC_UNUSED GList *params) GntEntry *entry = GNT_ENTRY(bind);
GntWidget *widget = GNT_WIDGET(bind);
@@ -746,7 +746,7 @@
-transpose_chars(GntBindable *bind, GList *null)
+transpose_chars(GntBindable *bind, GList *params) GntEntry *entry = GNT_ENTRY(bind);
@@ -760,7 +760,7 @@
prev = g_utf8_find_prev_char(entry->start, entry->cursor);
- move_forward(bind, null);
+ move_forward(bind, params); /* Let's do this dance! */
memcpy(hold, prev, current - prev);
@@ -774,7 +774,7 @@
-entry_yank(GntBindable *bind, GList *null)
+entry_yank(GntBindable *bind, G_GNUC_UNUSED GList *params) GntEntry *entry = GNT_ENTRY(bind);
gnt_entry_key_pressed(GNT_WIDGET(entry), entry->killring->buffer->str);
@@ -920,7 +920,8 @@
-gnt_entry_clicked(GntWidget *widget, GntMouseEvent event, int x, int y)
+gnt_entry_clicked(GntWidget *widget, GntMouseEvent event, G_GNUC_UNUSED int x, if (event == GNT_MIDDLE_MOUSE_DOWN) {
clipboard_paste(GNT_BINDABLE(widget), NULL);
--- a/gntfilesel.c Fri Apr 05 03:28:19 2019 -0400
+++ b/gntfilesel.c Fri Apr 05 23:22:08 2019 +0000
@@ -274,7 +274,8 @@
-location_key_pressed(GntTree *tree, const char *key, GntFileSel *sel)
+location_key_pressed(G_GNUC_UNUSED GntTree *tree, const char *key, @@ -310,7 +311,8 @@
-file_sel_changed(GntWidget *widget, gpointer old, gpointer current, GntFileSel *sel)
+file_sel_changed(GntWidget *widget, G_GNUC_UNUSED gpointer old, + G_GNUC_UNUSED gpointer current, GntFileSel *sel) if (GNT_WIDGET_IS_FLAG_SET(widget, GNT_WIDGET_HAS_FOCUS)) {
@@ -359,7 +361,7 @@
-toggle_tag_selection(GntBindable *bind, GList *null)
+toggle_tag_selection(GntBindable *bind, G_GNUC_UNUSED GList *params) GntFileSel *sel = GNT_FILE_SEL(bind);
@@ -393,7 +395,7 @@
-clear_tags(GntBindable *bind, GList *null)
+clear_tags(GntBindable *bind, G_GNUC_UNUSED GList *params) GntFileSel *sel = GNT_FILE_SEL(bind);
@@ -417,7 +419,7 @@
-up_directory(GntBindable *bind, GList *null)
+up_directory(GntBindable *bind, G_GNUC_UNUSED GList *params) GntFileSel *sel = GNT_FILE_SEL(bind);
@@ -514,7 +516,7 @@
*****************************************************************************/
-select_activated_cb(GntWidget *button, GntFileSel *sel)
+select_activated_cb(G_GNUC_UNUSED GntWidget *button, GntFileSel *sel) char *path = gnt_file_sel_get_selected_file(sel);
char *file = g_path_get_basename(path);
--- a/gntlabel.c Fri Apr 05 03:28:19 2019 -0400
+++ b/gntlabel.c Fri Apr 05 23:22:08 2019 +0000
@@ -70,7 +70,7 @@
gnt_label_set_property(GObject *obj, guint prop_id, const GValue *value,
+ G_GNUC_UNUSED GParamSpec *spec) GntLabel *label = GNT_LABEL(obj);
@@ -89,7 +89,7 @@
gnt_label_get_property(GObject *obj, guint prop_id, GValue *value,
+ G_GNUC_UNUSED GParamSpec *spec) GntLabel *label = GNT_LABEL(obj);
--- a/gntline.c Fri Apr 05 03:28:19 2019 -0400
+++ b/gntline.c Fri Apr 05 23:22:08 2019 +0000
@@ -73,7 +73,7 @@
gnt_line_set_property(GObject *obj, guint prop_id, const GValue *value,
+ G_GNUC_UNUSED GParamSpec *spec) GntLine *line = GNT_LINE(obj);
@@ -92,7 +92,7 @@
gnt_line_get_property(GObject *obj, guint prop_id, GValue *value,
+ G_GNUC_UNUSED GParamSpec *spec) GntLine *line = GNT_LINE(obj);
--- a/gntmain.c Fri Apr 05 03:28:19 2019 -0400
+++ b/gntmain.c Fri Apr 05 23:22:08 2019 +0000
@@ -100,7 +100,7 @@
-escape_timeout(gpointer data)
+escape_timeout(G_GNUC_UNUSED gpointer data) gnt_wm_process_input(wm, "\033");
@@ -246,7 +246,8 @@
-io_invoke_error(GIOChannel *source, GIOCondition cond, gpointer data)
+io_invoke_error(GIOChannel *source, G_GNUC_UNUSED GIOCondition cond, /* XXX: it throws an error after evey io_invoke, I have no idea why */
@@ -262,9 +263,9 @@
-io_invoke(GIOChannel *source, GIOCondition cond, gpointer null)
+io_invoke(GIOChannel *source, G_GNUC_UNUSED GIOCondition cond, + G_GNUC_UNUSED gpointer data) @@ -470,13 +471,13 @@
-exit_confirmed(gpointer null)
+exit_confirmed(G_GNUC_UNUSED gpointer data) gnt_bindable_perform_action_named(GNT_BINDABLE(wm), "wm-quit", NULL);
-exit_win_close(GntWidget *w, GntWidget **win)
+exit_win_close(G_GNUC_UNUSED GntWidget *w, GntWidget **win) @@ -778,7 +779,7 @@
-reset_menu(GntWidget *widget, gpointer null)
+reset_menu(G_GNUC_UNUSED GntWidget *widget, G_GNUC_UNUSED gpointer data) @@ -823,7 +824,7 @@
-reap_child(GPid pid, gint status, gpointer data)
+reap_child(G_GNUC_UNUSED GPid pid, gint status, gpointer data) --- a/gntslider.c Fri Apr 05 03:28:19 2019 -0400
+++ b/gntslider.c Fri Apr 05 23:22:08 2019 +0000
@@ -123,7 +123,7 @@
-step_back(GntBindable *bindable, GList *null)
+step_back(GntBindable *bindable, G_GNUC_UNUSED GList *params) GntSlider *slider = GNT_SLIDER(bindable);
gnt_slider_advance_step(slider, -1);
@@ -131,7 +131,7 @@
-small_step_back(GntBindable *bindable, GList *null)
+small_step_back(GntBindable *bindable, G_GNUC_UNUSED GList *params) GntSlider *slider = GNT_SLIDER(bindable);
gnt_slider_set_value(slider, slider->current - slider->smallstep);
@@ -139,7 +139,7 @@
-large_step_back(GntBindable *bindable, GList *null)
+large_step_back(GntBindable *bindable, G_GNUC_UNUSED GList *params) GntSlider *slider = GNT_SLIDER(bindable);
gnt_slider_set_value(slider, slider->current - slider->largestep);
@@ -147,7 +147,7 @@
-step_forward(GntBindable *bindable, GList *list)
+step_forward(GntBindable *bindable, G_GNUC_UNUSED GList *params) GntSlider *slider = GNT_SLIDER(bindable);
gnt_slider_advance_step(slider, 1);
@@ -155,7 +155,7 @@
-small_step_forward(GntBindable *bindable, GList *null)
+small_step_forward(GntBindable *bindable, G_GNUC_UNUSED GList *params) GntSlider *slider = GNT_SLIDER(bindable);
gnt_slider_set_value(slider, slider->current + slider->smallstep);
@@ -163,7 +163,7 @@
-large_step_forward(GntBindable *bindable, GList *null)
+large_step_forward(GntBindable *bindable, G_GNUC_UNUSED GList *params) GntSlider *slider = GNT_SLIDER(bindable);
gnt_slider_set_value(slider, slider->current + slider->largestep);
@@ -171,7 +171,7 @@
-move_min_value(GntBindable *bindable, GList *null)
+move_min_value(GntBindable *bindable, G_GNUC_UNUSED GList *params) GntSlider *slider = GNT_SLIDER(bindable);
gnt_slider_set_value(slider, slider->min);
@@ -179,7 +179,7 @@
-move_max_value(GntBindable *bindable, GList *null)
+move_max_value(GntBindable *bindable, G_GNUC_UNUSED GList *params) GntSlider *slider = GNT_SLIDER(bindable);
gnt_slider_set_value(slider, slider->max);
--- a/gnttextview.c Fri Apr 05 03:28:19 2019 -0400
+++ b/gnttextview.c Fri Apr 05 23:22:08 2019 +0000
@@ -204,20 +204,21 @@
-gnt_text_view_key_pressed(GntWidget *widget, const char *text)
+gnt_text_view_key_pressed(G_GNUC_UNUSED GntWidget *widget, + G_GNUC_UNUSED const char *text) -free_text_segment(gpointer data, gpointer null)
+free_text_segment(gpointer data, G_GNUC_UNUSED gpointer unused) GntTextSegment *seg = data;
-free_text_line(gpointer data, gpointer null)
+free_text_line(gpointer data, G_GNUC_UNUSED gpointer unused) GntTextLine *line = data;
g_list_foreach(line->segments, free_text_segment, NULL);
@@ -226,7 +227,7 @@
-free_tag(gpointer data, gpointer null)
+free_tag(gpointer data, G_GNUC_UNUSED gpointer unused) @@ -315,7 +316,8 @@
return g_string_new_len(start, endsize - start);
-static gboolean too_slow(gpointer n)
+too_slow(G_GNUC_UNUSED gpointer n) @@ -433,7 +435,7 @@
-gnt_text_view_size_changed(GntWidget *widget, int w, int h)
+gnt_text_view_size_changed(GntWidget *widget, int w, G_GNUC_UNUSED int h) if (w != widget->priv.width && GNT_WIDGET_IS_FLAG_SET(widget, GNT_WIDGET_MAPPED)) {
gnt_text_view_reflow(GNT_TEXT_VIEW(widget));
@@ -803,7 +805,7 @@
-scroll_tv(GntWidget *wid, const char *key, GntTextView *tv)
+scroll_tv(G_GNUC_UNUSED GntWidget *wid, const char *key, GntTextView *tv) if (strcmp(key, GNT_KEY_PGUP) == 0) {
gnt_text_view_scroll(tv, -(GNT_WIDGET(tv)->priv.height - 2));
@@ -848,7 +850,7 @@
-editor_end_cb(int status, gpointer data)
+editor_end_cb(int status, G_GNUC_UNUSED gpointer data) @@ -863,7 +865,7 @@
-pager_end_cb(int status, gpointer data)
+pager_end_cb(G_GNUC_UNUSED int status, G_GNUC_UNUSED gpointer data) --- a/gnttree.c Fri Apr 05 03:28:19 2019 -0400
+++ b/gnttree.c Fri Apr 05 23:22:08 2019 +0000
@@ -674,7 +674,7 @@
-action_down(GntBindable *bind, GList *null)
+action_down(GntBindable *bind, G_GNUC_UNUSED GList *unused) GntTree *tree = GNT_TREE(bind);
@@ -693,7 +693,7 @@
-action_move_parent(GntBindable *bind, GList *null)
+action_move_parent(GntBindable *bind, G_GNUC_UNUSED GList *unused) GntTree *tree = GNT_TREE(bind);
GntTreeRow *row = tree->current;
@@ -712,7 +712,7 @@
-action_up(GntBindable *bind, GList *list)
+action_up(GntBindable *bind, G_GNUC_UNUSED GList *params) GntTree *tree = GNT_TREE(bind);
@@ -732,7 +732,7 @@
-action_page_down(GntBindable *bind, GList *null)
+action_page_down(GntBindable *bind, G_GNUC_UNUSED GList *unused) GntTree *tree = GNT_TREE(bind);
GntTreeRow *old = tree->current;
@@ -756,7 +756,7 @@
-action_page_up(GntBindable *bind, GList *null)
+action_page_up(GntBindable *bind, G_GNUC_UNUSED GList *unused) GntWidget *widget = GNT_WIDGET(bind);
GntTree *tree = GNT_TREE(bind);
@@ -884,7 +884,8 @@
-gnt_tree_clicked(GntWidget *widget, GntMouseEvent event, int x, int y)
+gnt_tree_clicked(GntWidget *widget, GntMouseEvent event, G_GNUC_UNUSED int x, GntTree *tree = GNT_TREE(widget);
GntTreeRow *old = tree->current;
@@ -926,7 +927,8 @@
-gnt_tree_size_changed(GntWidget *widget, int w, int h)
+gnt_tree_size_changed(GntWidget *widget, G_GNUC_UNUSED int w, GntTree *tree = GNT_TREE(widget);
if (widget->priv.width <= 0)
@@ -936,7 +938,7 @@
-start_search(GntBindable *bindable, GList *list)
+start_search(GntBindable *bindable, G_GNUC_UNUSED GList *params) GntTree *tree = GNT_TREE(bindable);
@@ -948,7 +950,7 @@
-end_search_action(GntBindable *bindable, GList *list)
+end_search_action(GntBindable *bindable, G_GNUC_UNUSED GList *params) GntTree *tree = GNT_TREE(bindable);
if (tree->priv->search == NULL)
@@ -960,7 +962,7 @@
-move_first_action(GntBindable *bind, GList *null)
+move_first_action(GntBindable *bind, G_GNUC_UNUSED GList *params) GntTree *tree = GNT_TREE(bind);
GntTreeRow *row = tree->root;
@@ -978,7 +980,7 @@
-move_last_action(GntBindable *bind, GList *null)
+move_last_action(GntBindable *bind, G_GNUC_UNUSED GList *params) GntTree *tree = GNT_TREE(bind);
GntTreeRow *old = tree->current;
@@ -1000,7 +1002,7 @@
gnt_tree_set_property(GObject *obj, guint prop_id, const GValue *value,
+ G_GNUC_UNUSED GParamSpec *spec) GntTree *tree = GNT_TREE(obj);
@@ -1018,7 +1020,7 @@
gnt_tree_get_property(GObject *obj, guint prop_id, GValue *value,
+ G_GNUC_UNUSED GParamSpec *spec) GntTree *tree = GNT_TREE(obj);
@@ -1508,16 +1510,10 @@
-return_true(gpointer key, gpointer data, gpointer null)
void gnt_tree_remove_all(GntTree *tree)
- g_hash_table_foreach_remove(tree->hash, (GHRFunc)return_true, tree);
+ g_hash_table_remove_all(tree->hash); tree->current = tree->top = tree->bottom = NULL;
@@ -1813,7 +1809,6 @@
void gnt_tree_set_hash_fns(GntTree *tree, gpointer hash, gpointer eq, gpointer kd)
- g_hash_table_foreach_remove(tree->hash, return_true, NULL);
g_hash_table_destroy(tree->hash);
tree->hash = g_hash_table_new_full(hash, eq, kd, free_tree_row);
--- a/gntutils.c Fri Apr 05 03:28:19 2019 -0400
+++ b/gntutils.c Fri Apr 05 23:22:08 2019 +0000
@@ -169,10 +169,11 @@
-gboolean gnt_boolean_handled_accumulator(GSignalInvocationHint *ihint,
- const GValue *handler_return,
+gnt_boolean_handled_accumulator(G_GNUC_UNUSED GSignalInvocationHint *ihint, + const GValue *handler_return, + G_GNUC_UNUSED gpointer dummy) gboolean continue_emission;
@@ -481,7 +482,8 @@
-key_pressed(GntWidget *widget, const char *text, TriggerButton *trig)
+key_pressed(G_GNUC_UNUSED GntWidget *widget, const char *text, if (text && trig->text &&
strcmp(text, trig->text) == 0) {
--- a/gntwm.c Fri Apr 05 03:28:19 2019 -0400
+++ b/gntwm.c Fri Apr 05 23:22:08 2019 +0000
@@ -292,7 +292,7 @@
-refresh_node(GntWidget *widget, GntNode *node, gpointer m)
+refresh_node(GntWidget *widget, G_GNUC_UNUSED GntNode *node, gpointer m) @@ -372,7 +372,8 @@
-static gboolean check_idle(gpointer n)
+check_idle(G_GNUC_UNUSED gpointer n) @@ -444,7 +445,7 @@
-window_next(GntBindable *bindable, GList *null)
+window_next(GntBindable *bindable, G_GNUC_UNUSED GList *params) GntWM *wm = GNT_WM(bindable);
switch_window(wm, 1, FALSE);
@@ -452,7 +453,7 @@
-window_prev(GntBindable *bindable, GList *null)
+window_prev(GntBindable *bindable, G_GNUC_UNUSED GList *params) GntWM *wm = GNT_WM(bindable);
switch_window(wm, -1, FALSE);
@@ -483,7 +484,7 @@
-window_scroll_up(GntBindable *bindable, GList *null)
+window_scroll_up(GntBindable *bindable, G_GNUC_UNUSED GList *params) GntWM *wm = GNT_WM(bindable);
@@ -506,7 +507,7 @@
-window_scroll_down(GntBindable *bindable, GList *null)
+window_scroll_down(GntBindable *bindable, G_GNUC_UNUSED GList *params) GntWM *wm = GNT_WM(bindable);
@@ -531,7 +532,7 @@
-window_close(GntBindable *bindable, GList *null)
+window_close(GntBindable *bindable, G_GNUC_UNUSED GList *params) GntWM *wm = GNT_WM(bindable);
@@ -547,7 +548,7 @@
-destroy__list(GntWidget *widget, GntWM *wm)
+destroy__list(G_GNUC_UNUSED GntWidget *widget, GntWM *wm) @@ -680,7 +681,7 @@
-window_list(GntBindable *bindable, GList *null)
+window_list(GntBindable *bindable, G_GNUC_UNUSED GList *params) GntWM *wm = GNT_WM(bindable);
@@ -696,7 +697,8 @@
-dump_file_save(GntFileSel *fs, const char *path, const char *f, gpointer n)
+dump_file_save(GntFileSel *fs, const char *path, G_GNUC_UNUSED const char *f, + G_GNUC_UNUSED gpointer n) @@ -843,13 +845,13 @@
-dump_file_cancel(GntWidget *w, GntFileSel *fs)
+dump_file_cancel(G_GNUC_UNUSED GntWidget *w, GntFileSel *fs) gnt_widget_destroy(GNT_WIDGET(fs));
-dump_screen(GntBindable *b, GList *null)
+dump_screen(G_GNUC_UNUSED GntBindable *b, G_GNUC_UNUSED GList *params) GntWidget *window = gnt_file_sel_new();
GntFileSel *sel = GNT_FILE_SEL(window);
@@ -900,7 +902,7 @@
-shift_left(GntBindable *bindable, GList *null)
+shift_left(GntBindable *bindable, G_GNUC_UNUSED GList *params) GntWM *wm = GNT_WM(bindable);
@@ -914,7 +916,7 @@
-shift_right(GntBindable *bindable, GList *null)
+shift_right(GntBindable *bindable, G_GNUC_UNUSED GList *params) GntWM *wm = GNT_WM(bindable);
@@ -946,7 +948,7 @@
-list_actions(GntBindable *bindable, GList *null)
+list_actions(GntBindable *bindable, G_GNUC_UNUSED GList *params) @@ -1065,7 +1067,7 @@
-start_move(GntBindable *bindable, GList *null)
+start_move(GntBindable *bindable, G_GNUC_UNUSED GList *params) GntWM *wm = GNT_WM(bindable);
if (wm->_list.window || wm->menu)
@@ -1080,7 +1082,7 @@
-start_resize(GntBindable *bindable, GList *null)
+start_resize(GntBindable *bindable, G_GNUC_UNUSED GList *params) GntWM *wm = GNT_WM(bindable);
if (wm->_list.window || wm->menu)
@@ -1095,7 +1097,7 @@
-wm_quit(GntBindable *bindable, GList *list)
+wm_quit(GntBindable *bindable, G_GNUC_UNUSED GList *params) GntWM *wm = GNT_WM(bindable);
@@ -1105,13 +1107,14 @@
-return_true(GntWM *wm, GntWidget *w, int *a, int *b)
+return_true(G_GNUC_UNUSED GntWM *wm, G_GNUC_UNUSED GntWidget *w, + G_GNUC_UNUSED int *a, G_GNUC_UNUSED int *b) -refresh_screen(GntBindable *bindable, GList *null)
+refresh_screen(GntBindable *bindable, G_GNUC_UNUSED GList *params) GntWM *wm = GNT_WM(bindable);
@@ -1136,7 +1139,8 @@
-toggle_clipboard(GntBindable *bindable, GList *n)
+toggle_clipboard(G_GNUC_UNUSED GntBindable *bindable, + G_GNUC_UNUSED GList *params) @@ -1169,7 +1173,7 @@
-tag_widget(GntBindable *b, GList *params)
+tag_widget(GntBindable *b, G_GNUC_UNUSED GList *params) @@ -1198,7 +1202,7 @@
-place_tagged(GntBindable *b, GList *params)
+place_tagged(GntBindable *b, G_GNUC_UNUSED GList *params) g_list_foreach(wm->tagged, widget_move_ws, wm);
@@ -1209,7 +1213,7 @@
-workspace_list(GntBindable *b, GList *params)
+workspace_list(GntBindable *b, G_GNUC_UNUSED GList *params) @@ -1222,7 +1226,7 @@
-workspace_new(GntBindable *bindable, GList *null)
+workspace_new(GntBindable *bindable, G_GNUC_UNUSED GList *params) GntWM *wm = GNT_WM(bindable);
GntWS *ws = gnt_ws_new(NULL);
@@ -1232,7 +1236,7 @@
-ignore_keys_start(GntBindable *bindable, GList *n)
+ignore_keys_start(GntBindable *bindable, G_GNUC_UNUSED GList *params) GntWM *wm = GNT_WM(bindable);
@@ -1244,7 +1248,8 @@
-ignore_keys_end(GntBindable *bindable, GList *n)
+ignore_keys_end(G_GNUC_UNUSED GntBindable *bindable, + G_GNUC_UNUSED GList *params) @@ -1254,7 +1259,7 @@
-window_next_urgent(GntBindable *bindable, GList *n)
+window_next_urgent(GntBindable *bindable, G_GNUC_UNUSED GList *params) GntWM *wm = GNT_WM(bindable);
switch_window(wm, 1, TRUE);
@@ -1262,7 +1267,7 @@
-window_prev_urgent(GntBindable *bindable, GList *n)
+window_prev_urgent(GntBindable *bindable, G_GNUC_UNUSED GList *params) GntWM *wm = GNT_WM(bindable);
switch_window(wm, -1, TRUE);
@@ -1271,7 +1276,8 @@
-python_script_selected(GntFileSel *fs, const char *path, const char *f, gpointer n)
+python_script_selected(GntFileSel *fs, const char *path, + G_GNUC_UNUSED const char *f, G_GNUC_UNUSED gpointer n) char *dir = g_path_get_dirname(path);
FILE *file = fopen(path, "r");
@@ -1296,7 +1302,7 @@
-run_python(GntBindable *bindable, GList *n)
+run_python(G_GNUC_UNUSED GntBindable *bindable, G_GNUC_UNUSED GList *params) GntWidget *window = gnt_file_sel_new();
GntFileSel *sel = GNT_FILE_SEL(window);
@@ -1327,13 +1333,13 @@
-help_for_wm(GntBindable *bindable, GList *null)
+help_for_wm(GntBindable *bindable, G_GNUC_UNUSED GList *params) return help_for_bindable(GNT_WM(bindable),bindable);
-help_for_window(GntBindable *bindable, GList *null)
+help_for_window(GntBindable *bindable, G_GNUC_UNUSED GList *params) GntWM *wm = GNT_WM(bindable);
@@ -1347,7 +1353,7 @@
-help_for_widget(GntBindable *bindable, GList *null)
+help_for_widget(GntBindable *bindable, G_GNUC_UNUSED GList *params) GntWM *wm = GNT_WM(bindable);
@@ -1363,7 +1369,7 @@
-accumulate_windows(gpointer window, gpointer node, gpointer p)
+accumulate_windows(gpointer window, G_GNUC_UNUSED gpointer node, gpointer p) GList *list = *(GList**)p;
list = g_list_prepend(list, window);
@@ -1634,13 +1640,13 @@
-workspace_next(GntBindable *wm, GList *n)
+workspace_next(GntBindable *wm, G_GNUC_UNUSED GList *params) return gnt_wm_switch_workspace_next(GNT_WM(wm));
-workspace_prev(GntBindable *wm, GList *n)
+workspace_prev(GntBindable *wm, G_GNUC_UNUSED GList *params) return gnt_wm_switch_workspace_prev(GNT_WM(wm));
@@ -1684,7 +1690,8 @@
-static void free_workspaces(gpointer data, gpointer n)
+free_workspaces(gpointer data, G_GNUC_UNUSED gpointer n) @@ -1714,7 +1721,7 @@
-match_title(gpointer title, gpointer n, gpointer wid_title)
+match_title(gpointer title, G_GNUC_UNUSED gpointer n, gpointer wid_title) /* XXX: do any regex magic here. */
if (g_strrstr((gchar *)wid_title, (gchar *)title))
@@ -2019,13 +2026,13 @@
-gnt_wm_win_resized(GntWM *wm, GntNode *node)
+gnt_wm_win_resized(G_GNUC_UNUSED GntWM *wm, G_GNUC_UNUSED GntNode *node) /*refresh_node(node->me, node, NULL);*/
-gnt_wm_win_moved(GntWM *wm, GntNode *node)
+gnt_wm_win_moved(G_GNUC_UNUSED GntWM *wm, GntNode *node) refresh_node(node->me, node, NULL);