[gnome-commander] Drop unnecessary casting
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Drop unnecessary casting
- Date: Fri, 10 Jun 2011 17:59:49 +0000 (UTC)
commit 94684175cf0745a3c81e2b40d4d96bb0901a41c9
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Fri Jun 10 19:57:01 2011 +0200
Drop unnecessary casting
src/dialogs/gnome-cmd-manage-profiles-dialog.cc | 2 +-
src/eggcellrendererkeys.cc | 2 +-
src/gnome-cmd-menu-button.cc | 4 ++--
tests/gviewer/viewerwindow.c | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/dialogs/gnome-cmd-manage-profiles-dialog.cc b/src/dialogs/gnome-cmd-manage-profiles-dialog.cc
index c46cada..577e998 100644
--- a/src/dialogs/gnome-cmd-manage-profiles-dialog.cc
+++ b/src/dialogs/gnome-cmd-manage-profiles-dialog.cc
@@ -251,7 +251,7 @@ static GtkWidget *create_view_and_model (Profiles &profiles)
col = gnome_cmd_treeview_create_new_text_column (GTK_TREE_VIEW (view), renderer, COL_NAME, _("Profile"));
gtk_tooltips_set_tip (tips, col->button, _("Profile name"), NULL);
- g_signal_connect (renderer, "edited", (GCallback) cell_edited_callback, view);
+ g_signal_connect (renderer, "edited", G_CALLBACK (cell_edited_callback), view);
g_object_set (renderer,
"editable", TRUE,
diff --git a/src/eggcellrendererkeys.cc b/src/eggcellrendererkeys.cc
index b36635b..7bde73f 100644
--- a/src/eggcellrendererkeys.cc
+++ b/src/eggcellrendererkeys.cc
@@ -550,7 +550,7 @@ static void ungrab_stuff (GtkWidget *widget, EggCellRendererKeys *keys)
gdk_display_keyboard_ungrab (display, GDK_CURRENT_TIME);
gdk_display_pointer_ungrab (display, GDK_CURRENT_TIME);
- g_signal_handlers_disconnect_by_func (keys->grab_widget, (gpointer) G_CALLBACK (grab_key_callback), keys);
+ g_signal_handlers_disconnect_by_func (keys->grab_widget, (gpointer) grab_key_callback, keys);
}
diff --git a/src/gnome-cmd-menu-button.cc b/src/gnome-cmd-menu-button.cc
index ec0e95d..38f0585 100644
--- a/src/gnome-cmd-menu-button.cc
+++ b/src/gnome-cmd-menu-button.cc
@@ -79,10 +79,10 @@ GtkWidget *gnome_cmd_button_menu_new_from_stock (const gchar *stock_id, const gc
gulong gnome_cmd_button_menu_connect_handler (GtkWidget *button, GtkWidget *menu)
{
- return g_signal_connect (G_OBJECT (button), "clicked", G_CALLBACK (on_menu_button_clicked), menu);
+ return g_signal_connect (button, "clicked", G_CALLBACK (on_menu_button_clicked), menu);
}
void gnome_cmd_button_menu_disconnect_handler (GtkWidget *button, GtkWidget *menu)
{
- g_signal_handlers_disconnect_by_func (G_OBJECT (button), gpointer (on_menu_button_clicked), menu);
+ g_signal_handlers_disconnect_by_func (button, (gpointer) on_menu_button_clicked, menu);
}
diff --git a/tests/gviewer/viewerwindow.c b/tests/gviewer/viewerwindow.c
index 5900932..a7e838e 100644
--- a/tests/gviewer/viewerwindow.c
+++ b/tests/gviewer/viewerwindow.c
@@ -56,7 +56,7 @@ int main(int argc, char *argv[])
gtk_widget_show (w);
- g_signal_connect(G_OBJECT(w), "delete-event", G_CALLBACK(destroy), NULL);
+ g_signal_connect(w, "delete-event", G_CALLBACK (destroy), NULL);
gtk_main ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]