From 2a06f17c2ef442bd63cc0463c5ee2d5b6cc84c64 Mon Sep 17 00:00:00 2001 From: rbuj Date: Wed, 27 Oct 2021 14:22:58 +0200 Subject: Unnecessary G_OBJECT cast when calling signal connect function --- libslab/tile-action.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libslab/tile-action.c') diff --git a/libslab/tile-action.c b/libslab/tile-action.c index 4934cbd3..c1d5906c 100644 --- a/libslab/tile-action.c +++ b/libslab/tile-action.c @@ -88,8 +88,9 @@ tile_action_set_menu_item_label (TileAction * this, const gchar * markup) this->menu_item = GTK_MENU_ITEM (gtk_menu_item_new ()); gtk_container_add (GTK_CONTAINER (this->menu_item), label); - g_signal_connect (G_OBJECT (this->menu_item), "activate", - G_CALLBACK (tile_action_menu_item_activate_cb), this); + g_signal_connect (this->menu_item, "activate", + G_CALLBACK (tile_action_menu_item_activate_cb), + this); } } -- cgit v1.2.1