[gnome-todo] provider-selector: intialize template before accessing widgets
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] provider-selector: intialize template before accessing widgets
- Date: Mon, 13 Feb 2017 23:18:30 +0000 (UTC)
commit d6f7c9f30b7ce93a53f5803f205d3bbc2acb7bff
Author: Rohit Kaushik <kaushikrohit325 gmail com>
Date: Wed Jan 18 21:46:51 2017 +0530
provider-selector: intialize template before accessing widgets
We need to initialize the template before being able to access
the widgets.
Fix that by moving the gtk_widget_init_template() call to the
proper position.
https://bugzilla.gnome.org/show_bug.cgi?id=755734
src/provider/gtd-provider-selector.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/provider/gtd-provider-selector.c b/src/provider/gtd-provider-selector.c
index dd662eb..908b4bb 100644
--- a/src/provider/gtd-provider-selector.c
+++ b/src/provider/gtd-provider-selector.c
@@ -510,6 +510,8 @@ gtd_provider_selector_init (GtdProviderSelector *self)
/* Setup the manager */
manager = gtd_manager_get_default ();
+ gtk_widget_init_template (GTK_WIDGET (self));
+
gtd_provider_selector__fill_accounts (self);
g_signal_connect_swapped (manager,
@@ -527,7 +529,6 @@ gtd_provider_selector_init (GtdProviderSelector *self)
G_CALLBACK (gtd_provider_selector__remove_provider),
self);
- gtk_widget_init_template (GTK_WIDGET (self));
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]