[gnome-control-center] background: Use the same method to set the initial view and toggle
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] background: Use the same method to set the initial view and toggle
- Date: Thu, 3 Oct 2013 16:55:37 +0000 (UTC)
commit 7a843ae428a4226be18d85ab5582c7e6e5ea09ec
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Oct 2 23:53:45 2013 +0200
background: Use the same method to set the initial view and toggle
This makes it simpler for us to track the busy state of the sources.
https://bugzilla.gnome.org/show_bug.cgi?id=708943
panels/background/cc-background-chooser-dialog.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/panels/background/cc-background-chooser-dialog.c
b/panels/background/cc-background-chooser-dialog.c
index fdf0dbb..a1a9ec1 100644
--- a/panels/background/cc-background-chooser-dialog.c
+++ b/panels/background/cc-background-chooser-dialog.c
@@ -102,9 +102,6 @@ cc_background_chooser_dialog_realize (GtkWidget *widget)
gtk_widget_set_size_request (GTK_WIDGET (chooser), (gint) (0.5 * width), (gint) (0.9 * height));
}
- gtk_icon_view_set_model (GTK_ICON_VIEW (chooser->priv->icon_view),
- GTK_TREE_MODEL (bg_source_get_liststore (BG_SOURCE
(chooser->priv->wallpapers_source))));
-
GTK_WIDGET_CLASS (cc_background_chooser_dialog_parent_class)->realize (widget);
}
@@ -441,6 +438,7 @@ cc_background_chooser_dialog_init (CcBackgroundChooserDialog *chooser)
gtk_dialog_set_default_response (GTK_DIALOG (chooser), GTK_RESPONSE_OK);
gtk_dialog_set_response_sensitive (GTK_DIALOG (chooser), GTK_RESPONSE_OK, FALSE);
+ on_view_toggled (GTK_TOGGLE_BUTTON (button1), chooser);
gtk_widget_show_all (vbox);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]