window: more code moved into ui file

This commit is contained in:
Erick Pérez Castellanos
2014-12-04 17:10:54 -05:00
parent f8f8991510
commit 934b1c4be0
2 changed files with 1 additions and 3 deletions
+1
View File
@@ -26,6 +26,7 @@
<property name="no_show_all">True</property>
<property name="hexpand">True</property>
<property name="show_close_button">True</property>
<property name="search-mode-enabled" bind-source="search_button" bind-property="active" bind-flags="bidirectional"/>
<signal name="notify::search-mode-enabled" handler="search_toggled" object="GcalWindow" swapped="no"/>
<child>
<object class="GtkGrid" id="search_entry_grid">
-3
View File
@@ -1052,9 +1052,6 @@ gcal_window_constructed (GObject *object)
/* search bar */
gtk_search_bar_connect_entry (GTK_SEARCH_BAR (priv->search_bar),
GTK_ENTRY (priv->search_entry));
g_object_bind_property (priv->search_button, "active",
priv->search_bar, "search-mode-enabled",
G_BINDING_BIDIRECTIONAL);
priv->views[GCAL_WINDOW_VIEW_WEEK] =
gcal_week_view_new (priv->manager);