Theming fixes.
GcalWindow::activew-view added notify.
This commit is contained in:
+7
-2
@@ -11,9 +11,14 @@
|
||||
@define-color osd_toolbar_bg_b alpha(#101010, 0.80);
|
||||
@define-color osd_toolbar_bg_c alpha(shade(@osd_base, 1.02), 0.80);
|
||||
|
||||
.contents.frame {
|
||||
border-top: 1px lightgrey solid;
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
.sources-views {
|
||||
padding: 10px;
|
||||
border-radius: 10px;
|
||||
padding: 12px;
|
||||
border-radius: 0;
|
||||
border-style: none;
|
||||
|
||||
background-image: -gtk-gradient(linear, left top, left bottom,
|
||||
|
||||
+11
-1
@@ -260,12 +260,20 @@ gcal_window_constructed (GObject *object)
|
||||
CLUTTER_BOX_ALIGNMENT_CENTER);
|
||||
|
||||
/* notebook widget for holding views */
|
||||
holder = gtk_frame_new (NULL);
|
||||
|
||||
priv->notebook = gtk_notebook_new ();
|
||||
gtk_notebook_set_show_tabs (GTK_NOTEBOOK (priv->notebook), FALSE);
|
||||
gtk_notebook_set_show_border (GTK_NOTEBOOK (priv->notebook), FALSE);
|
||||
|
||||
gtk_widget_show (priv->notebook);
|
||||
|
||||
priv->notebook_actor = gtk_clutter_actor_new_with_contents (priv->notebook);
|
||||
context = gtk_widget_get_style_context (holder);
|
||||
gtk_style_context_add_class (context, "contents");
|
||||
gtk_container_add (GTK_CONTAINER (holder), priv->notebook);
|
||||
gtk_widget_show (holder);
|
||||
|
||||
priv->notebook_actor = gtk_clutter_actor_new_with_contents (holder);
|
||||
|
||||
clutter_bin_layout_add (CLUTTER_BIN_LAYOUT (contents_layout_manager),
|
||||
priv->notebook_actor,
|
||||
@@ -463,6 +471,8 @@ gcal_window_set_active_view (GcalWindow *window,
|
||||
NULL));
|
||||
}
|
||||
|
||||
g_object_notify (G_OBJECT (window), "active-view");
|
||||
|
||||
update_range = ! gcal_view_contains (GCAL_VIEW (priv->views[priv->active_view]),
|
||||
priv->active_date);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user