Skip to content

Commit

Permalink
baul-zoom-control: add G_GNUC_UNUSED in unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0w committed Jan 22, 2025
1 parent 139ec76 commit 2b49443
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions src/baul-zoom-control.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ baul_zoom_control_finalize (GObject *object)
}

static void
zoom_button_clicked (CtkButton *button, BaulZoomControl *zoom_control)
zoom_button_clicked (CtkButton *button G_GNUC_UNUSED,
BaulZoomControl *zoom_control)
{
g_signal_emit (zoom_control, signals[ZOOM_TO_DEFAULT], 0);
}
Expand Down Expand Up @@ -183,8 +184,8 @@ baul_zoom_control_button_press_event (CtkWidget *widget,
}

static void
zoom_out_clicked (CtkButton *button,
BaulZoomControl *zoom_control)
zoom_out_clicked (CtkButton *button G_GNUC_UNUSED,
BaulZoomControl *zoom_control)
{
if (baul_zoom_control_can_zoom_out (zoom_control))
{
Expand All @@ -193,8 +194,8 @@ zoom_out_clicked (CtkButton *button,
}

static void
zoom_in_clicked (CtkButton *button,
BaulZoomControl *zoom_control)
zoom_in_clicked (CtkButton *button G_GNUC_UNUSED,
BaulZoomControl *zoom_control)
{
if (baul_zoom_control_can_zoom_in (zoom_control))
{
Expand All @@ -220,9 +221,9 @@ set_label_size (BaulZoomControl *zoom_control)
}

static void
label_style_set_callback (CtkWidget *label,
CtkStyleContext *style,
gpointer user_data)
label_style_set_callback (CtkWidget *label G_GNUC_UNUSED,
CtkStyleContext *style G_GNUC_UNUSED,
gpointer user_data)
{
set_label_size (BAUL_ZOOM_CONTROL (user_data));
}
Expand Down Expand Up @@ -703,20 +704,22 @@ baul_zoom_control_accessible_do_action (AtkAction *accessible, int i)
}

static int
baul_zoom_control_accessible_get_n_actions (AtkAction *accessible)
baul_zoom_control_accessible_get_n_actions (AtkAction *accessible G_GNUC_UNUSED)
{

return NUM_ACTIONS;
}

static const char* baul_zoom_control_accessible_action_get_description(AtkAction* accessible, int i)
static const char* baul_zoom_control_accessible_action_get_description (AtkAction *accessible G_GNUC_UNUSED,
int i)
{
g_assert(i >= 0 && i < NUM_ACTIONS);

return _(baul_zoom_control_accessible_action_descriptions[i]);
}

static const char* baul_zoom_control_accessible_action_get_name(AtkAction* accessible, int i)
static const char* baul_zoom_control_accessible_action_get_name (AtkAction *accessible G_GNUC_UNUSED,
int i)
{
g_assert (i >= 0 && i < NUM_ACTIONS);

Expand Down Expand Up @@ -847,12 +850,12 @@ baul_zoom_control_accessible_value_interface_init (AtkValueIface *iface)
iface->set_current_value = baul_zoom_control_accessible_set_current_value;
}

static const char* baul_zoom_control_accessible_get_name(AtkObject* accessible)
static const char* baul_zoom_control_accessible_get_name (AtkObject* accessible G_GNUC_UNUSED)
{
return _("Zoom");
}

static const char* baul_zoom_control_accessible_get_description(AtkObject* accessible)
static const char* baul_zoom_control_accessible_get_description (AtkObject* accessible G_GNUC_UNUSED)
{
return _("Set the zoom level of the current view");
}
Expand Down Expand Up @@ -900,7 +903,7 @@ baul_zoom_control_accessible_class_init (BaulZoomControlAccessibleClass *klass)
}

static void
baul_zoom_control_accessible_init (BaulZoomControlAccessible *accessible)
baul_zoom_control_accessible_init (BaulZoomControlAccessible *accessible G_GNUC_UNUSED)
{
}

Expand Down

0 comments on commit 2b49443

Please sign in to comment.