[gnac] Removed useless cast
- From: BenoÃt Dupasquier <bdupasqu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnac] Removed useless cast
- Date: Wed, 1 Feb 2012 00:57:41 +0000 (UTC)
commit b55eccd17d41e7226d16414a224c4dc38cb74f69
Author: BenoÃt Dupasquier <bdupasqu src gnome org>
Date: Tue Jan 31 20:29:35 2012 +0000
Removed useless cast
src/gnac-file-list.c | 4 ++--
src/gnac-ui.c | 2 +-
src/profiles/gnac-profiles-manager.c | 6 +++---
src/profiles/gnac-profiles-properties.c | 2 +-
4 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/gnac-file-list.c b/src/gnac-file-list.c
index 5fab579..2a46862 100644
--- a/src/gnac-file-list.c
+++ b/src/gnac-file-list.c
@@ -153,9 +153,9 @@ gnac_file_list_attach_default_model(gboolean attach)
{
if (attach) {
gtk_tree_view_set_model(view, model);
- g_object_unref(G_OBJECT(model));
+ g_object_unref(model);
} else {
- g_object_ref(G_OBJECT(model));
+ g_object_ref(model);
gtk_tree_view_set_model(view, NULL);
}
}
diff --git a/src/gnac-ui.c b/src/gnac-ui.c
index 3f2ace5..bffcbc7 100644
--- a/src/gnac-ui.c
+++ b/src/gnac-ui.c
@@ -337,7 +337,7 @@ gnac_ui_file_chooser_get_filters_model(void)
}
for (f = filters; f; f = g_slist_next(f)) {
- g_object_ref(G_OBJECT(f->data));
+ g_object_ref(f->data);
}
return GTK_TREE_MODEL(store);
diff --git a/src/profiles/gnac-profiles-manager.c b/src/profiles/gnac-profiles-manager.c
index 362d669..a049687 100644
--- a/src/profiles/gnac-profiles-manager.c
+++ b/src/profiles/gnac-profiles-manager.c
@@ -309,7 +309,7 @@ gnac_profiles_mgr_list_profiles(void)
g_free(profile_file_full_path);
}
- g_object_unref(G_OBJECT(file_info));
+ g_object_unref(file_info);
}
guint count = g_slist_length(profiles);
@@ -414,7 +414,7 @@ gnac_profiles_mgr_populate(void)
}
}
- g_object_unref(G_OBJECT(file_info));
+ g_object_unref(file_info);
file_info = g_file_enumerator_next_file(files, NULL, NULL);
}
@@ -486,7 +486,7 @@ gnac_profiles_mgr_import_default_profiles(void)
gnac_profiles_properties_free_audio_profile(profile);
}
- g_object_unref(G_OBJECT(file_info));
+ g_object_unref(file_info);
}
g_file_enumerator_close(files, NULL, NULL);
diff --git a/src/profiles/gnac-profiles-properties.c b/src/profiles/gnac-profiles-properties.c
index 12dfe4b..afe1440 100644
--- a/src/profiles/gnac-profiles-properties.c
+++ b/src/profiles/gnac-profiles-properties.c
@@ -292,7 +292,7 @@ gnac_profiles_properties_destroy(void)
GtkWidget *window = gnac_profiles_properties_get_widget("window1");
gtk_widget_destroy(window);
- g_object_unref(G_OBJECT(profiles_properties_builder));
+ g_object_unref(profiles_properties_builder);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]