[gnome-control-center/gnome-3-12] background: Remove unnecessary initialization
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-12] background: Remove unnecessary initialization
- Date: Tue, 17 Jun 2014 16:54:51 +0000 (UTC)
commit 932ff840297a1e7e3d9a85eb760cbde3a1f4fc6d
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Jun 17 13:37:44 2014 +0200
background: Remove unnecessary initialization
The entire private struct is initialized to 0 by GObject, so there is
no need to do that again.
https://bugzilla.gnome.org/show_bug.cgi?id=731713
panels/background/cc-background-chooser-dialog.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/panels/background/cc-background-chooser-dialog.c
b/panels/background/cc-background-chooser-dialog.c
index 4530416..09b4923 100644
--- a/panels/background/cc-background-chooser-dialog.c
+++ b/panels/background/cc-background-chooser-dialog.c
@@ -278,9 +278,6 @@ cc_background_chooser_dialog_init (CcBackgroundChooserDialog *chooser)
priv->pictures_source = bg_pictures_source_new (GTK_WINDOW (chooser));
priv->colors_source = bg_colors_source_new (GTK_WINDOW (chooser));
- priv->row_inserted_id = 0;
- priv->row_deleted_id = 0;
-
gtk_container_set_border_width (GTK_CONTAINER (chooser), 6);
gtk_window_set_modal (GTK_WINDOW (chooser), TRUE);
gtk_window_set_resizable (GTK_WINDOW (chooser), FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]