Skip to content

Commit

Permalink
baul-window-menus: add G_GNUC_UNUSED in unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0w committed Jan 20, 2025
1 parent da2d4e2 commit 3e8a351
Showing 1 changed file with 57 additions and 55 deletions.
112 changes: 57 additions & 55 deletions src/baul-window-menus.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ bookmark_holder_free (BookmarkHolder *bookmark_holder)
}

static void
bookmark_holder_free_cover (gpointer callback_data, GClosure *closure)
bookmark_holder_free_cover (gpointer callback_data,
GClosure *closure G_GNUC_UNUSED)
{
bookmark_holder_free (callback_data);
}
Expand Down Expand Up @@ -139,7 +140,8 @@ should_open_in_new_tab (void)
}

static void
activate_bookmark_in_menu_item (CtkAction *action, gpointer user_data)
activate_bookmark_in_menu_item (CtkAction *action G_GNUC_UNUSED,
gpointer user_data)
{
BookmarkHolder *holder;

Expand Down Expand Up @@ -232,8 +234,8 @@ baul_menus_append_bookmark_to_menu (BaulWindow *window,
}

static void
action_close_window_slot_callback (CtkAction *action,
gpointer user_data)
action_close_window_slot_callback (CtkAction *action G_GNUC_UNUSED,
gpointer user_data)
{
BaulWindow *window;
BaulWindowSlot *slot;
Expand All @@ -245,8 +247,8 @@ action_close_window_slot_callback (CtkAction *action,
}

static void
action_connect_to_server_callback (CtkAction *action,
gpointer user_data)
action_connect_to_server_callback (CtkAction *action G_GNUC_UNUSED,
gpointer user_data)
{
BaulWindow *window = BAUL_WINDOW (user_data);
CtkWidget *dialog;
Expand All @@ -257,8 +259,8 @@ action_connect_to_server_callback (CtkAction *action,
}

static void
action_stop_callback (CtkAction *action,
gpointer user_data)
action_stop_callback (CtkAction *action G_GNUC_UNUSED,
gpointer user_data)
{
BaulWindow *window;
BaulWindowSlot *slot;
Expand All @@ -270,8 +272,8 @@ action_stop_callback (CtkAction *action,
}

static void
action_home_callback (CtkAction *action,
gpointer user_data)
action_home_callback (CtkAction *action G_GNUC_UNUSED,
gpointer user_data)
{
BaulWindow *window;
BaulWindowSlot *slot;
Expand All @@ -284,8 +286,8 @@ action_home_callback (CtkAction *action,
}

static void
action_go_to_computer_callback (CtkAction *action,
gpointer user_data)
action_go_to_computer_callback (CtkAction *action G_GNUC_UNUSED,
gpointer user_data)
{
BaulWindow *window;
BaulWindowSlot *slot;
Expand All @@ -302,8 +304,8 @@ action_go_to_computer_callback (CtkAction *action,
}

static void
action_go_to_network_callback (CtkAction *action,
gpointer user_data)
action_go_to_network_callback (CtkAction *action G_GNUC_UNUSED,
gpointer user_data)
{
BaulWindow *window;
BaulWindowSlot *slot;
Expand All @@ -320,8 +322,8 @@ action_go_to_network_callback (CtkAction *action,
}

static void
action_go_to_templates_callback (CtkAction *action,
gpointer user_data)
action_go_to_templates_callback (CtkAction *action G_GNUC_UNUSED,
gpointer user_data)
{
BaulWindow *window;
BaulWindowSlot *slot;
Expand All @@ -341,8 +343,8 @@ action_go_to_templates_callback (CtkAction *action,
}

static void
action_go_to_trash_callback (CtkAction *action,
gpointer user_data)
action_go_to_trash_callback (CtkAction *action G_GNUC_UNUSED,
gpointer user_data)
{
BaulWindow *window;
BaulWindowSlot *slot;
Expand All @@ -359,29 +361,29 @@ action_go_to_trash_callback (CtkAction *action,
}

static void
action_reload_callback (CtkAction *action,
gpointer user_data)
action_reload_callback (CtkAction *action G_GNUC_UNUSED,
gpointer user_data)
{
baul_window_reload (BAUL_WINDOW (user_data));
}

static void
action_zoom_in_callback (CtkAction *action,
gpointer user_data)
action_zoom_in_callback (CtkAction *action G_GNUC_UNUSED,
gpointer user_data)
{
baul_window_zoom_in (BAUL_WINDOW (user_data));
}

static void
action_zoom_out_callback (CtkAction *action,
gpointer user_data)
action_zoom_out_callback (CtkAction *action G_GNUC_UNUSED,
gpointer user_data)
{
baul_window_zoom_out (BAUL_WINDOW (user_data));
}

static void
action_zoom_normal_callback (CtkAction *action,
gpointer user_data)
action_zoom_normal_callback (CtkAction *action G_GNUC_UNUSED,
gpointer user_data)
{
baul_window_zoom_to_default (BAUL_WINDOW (user_data));
}
Expand Down Expand Up @@ -490,8 +492,8 @@ preferences_respond_callback (CtkDialog *dialog,
}

static void
action_preferences_callback (CtkAction *action,
gpointer user_data)
action_preferences_callback (CtkAction *action G_GNUC_UNUSED,
gpointer user_data)
{
CtkWindow *window;

Expand All @@ -501,8 +503,8 @@ action_preferences_callback (CtkAction *action,
}

static void
action_backgrounds_and_emblems_callback (CtkAction *action,
gpointer user_data)
action_backgrounds_and_emblems_callback (CtkAction *action G_GNUC_UNUSED,
gpointer user_data)
{
CtkWindow *window;

Expand All @@ -515,8 +517,8 @@ action_backgrounds_and_emblems_callback (CtkAction *action,
#define EMAILIFY(string) (g_strdelimit ((string), "%", '@'))

static void
action_about_baul_callback (CtkAction *action,
gpointer user_data)
action_about_baul_callback (CtkAction *action G_GNUC_UNUSED,
gpointer user_data)
{
const gchar *license[] =
{
Expand Down Expand Up @@ -585,15 +587,15 @@ action_about_baul_callback (CtkAction *action,
}

static void
action_up_callback (CtkAction *action,
gpointer user_data)
action_up_callback (CtkAction *action G_GNUC_UNUSED,
gpointer user_data)
{
baul_window_go_up (BAUL_WINDOW (user_data), FALSE, should_open_in_new_tab ());
}

static void
action_baul_manual_callback (CtkAction *action,
gpointer user_data)
action_baul_manual_callback (CtkAction *action G_GNUC_UNUSED,
gpointer user_data)
{
BaulWindow *window;
GError *error;
Expand Down Expand Up @@ -647,8 +649,8 @@ menu_item_select_cb (CtkMenuItem *proxy,
}

static void
menu_item_deselect_cb (CtkMenuItem *proxy,
BaulWindow *window)
menu_item_deselect_cb (CtkMenuItem *proxy G_GNUC_UNUSED,
BaulWindow *window)
{
ctk_statusbar_pop (CTK_STATUSBAR (window->details->statusbar),
window->details->help_message_cid);
Expand Down Expand Up @@ -692,9 +694,9 @@ get_event_widget (CtkWidget *proxy)
}

static gboolean
proxy_button_press_event_cb (CtkButton *button,
CdkEventButton *event,
gpointer user_data)
proxy_button_press_event_cb (CtkButton *button,
CdkEventButton *event,
gpointer user_data G_GNUC_UNUSED)
{
if (event->button == 2)
{
Expand All @@ -705,9 +707,9 @@ proxy_button_press_event_cb (CtkButton *button,
}

static gboolean
proxy_button_release_event_cb (CtkButton *button,
CdkEventButton *event,
gpointer user_data)
proxy_button_release_event_cb (CtkButton *button,
CdkEventButton *event,
gpointer user_data G_GNUC_UNUSED)
{
if (event->button == 2)
{
Expand All @@ -718,10 +720,10 @@ proxy_button_release_event_cb (CtkButton *button,
}

static void
disconnect_proxy_cb (CtkUIManager *manager,
CtkAction *action,
CtkWidget *proxy,
BaulWindow *window)
disconnect_proxy_cb (CtkUIManager *manager G_GNUC_UNUSED,
CtkAction *action,
CtkWidget *proxy,
BaulWindow *window)
{
CtkWidget *widget;

Expand All @@ -747,10 +749,10 @@ disconnect_proxy_cb (CtkUIManager *manager,
}

static void
connect_proxy_cb (CtkUIManager *manager,
CtkAction *action,
CtkWidget *proxy,
BaulWindow *window)
connect_proxy_cb (CtkUIManager *manager G_GNUC_UNUSED,
CtkAction *action,
CtkWidget *proxy,
BaulWindow *window)
{
cairo_surface_t *icon;
CtkWidget *widget;
Expand Down Expand Up @@ -796,9 +798,9 @@ connect_proxy_cb (CtkUIManager *manager,
}

static void
trash_state_changed_cb (BaulTrashMonitor *monitor,
gboolean state,
BaulWindow *window)
trash_state_changed_cb (BaulTrashMonitor *monitor G_GNUC_UNUSED,
gboolean state G_GNUC_UNUSED,
BaulWindow *window)
{
CtkActionGroup *action_group;
CtkAction *action;
Expand Down

0 comments on commit 3e8a351

Please sign in to comment.