diff options
author | rbuj <[email protected]> | 2021-10-27 14:22:58 +0200 |
---|---|---|
committer | Luke from DC <[email protected]> | 2022-02-09 04:42:12 +0000 |
commit | 2a06f17c2ef442bd63cc0463c5ee2d5b6cc84c64 (patch) | |
tree | 0de842f92df7aa496d2867a65f160322687e47a4 /libslab/slab-section.c | |
parent | 0bfa4ca16e527fdc333fc1ded8b1d9f5963ccf1e (diff) | |
download | mate-control-center-2a06f17c2ef442bd63cc0463c5ee2d5b6cc84c64.tar.bz2 mate-control-center-2a06f17c2ef442bd63cc0463c5ee2d5b6cc84c64.tar.xz |
Unnecessary G_OBJECT cast when calling signal connect function
Diffstat (limited to 'libslab/slab-section.c')
-rw-r--r-- | libslab/slab-section.c | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/libslab/slab-section.c b/libslab/slab-section.c index 068048d6..530a0826 100644 --- a/libslab/slab-section.c +++ b/libslab/slab-section.c @@ -100,17 +100,19 @@ slab_section_set_selected (SlabSection * section, gboolean selected) return; section->selected = selected; - /* - if(selected) - { - section->expose_handler_id = g_signal_connect(G_OBJECT(section), - "expose-event", G_CALLBACK(slab_section_expose_event), NULL); - } - else - { - g_signal_handler_disconnect(section, section->expose_handler_id); - } - */ +/* + if(selected) + { + section->expose_handler_id = + g_signal_connect (section, "expose-event", + G_CALLBACK (slab_section_expose_event), + NULL); + } + else + { + g_signal_handler_disconnect(section, section->expose_handler_id); + } +*/ slab_section_set_title_color (GTK_WIDGET (section)); } @@ -151,8 +153,9 @@ slab_section_new_with_markup (const gchar * title_markup, SlabStyle style) gtk_label_set_xalign (GTK_LABEL (section->title), 0.0); gtk_widget_set_name (GTK_WIDGET (section), widget_theming_name); - g_signal_connect (G_OBJECT (section), "style-set", G_CALLBACK (slab_section_style_set), - NULL); + g_signal_connect (section, "style-set", + G_CALLBACK (slab_section_style_set), + NULL); gtk_box_pack_start (section->childbox, section->title, FALSE, FALSE, 0); |