[gnome-calendar] UI Fixes.
- From: Erick PÃrez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] UI Fixes.
- Date: Tue, 3 Jul 2012 19:53:39 +0000 (UTC)
commit 6cee02a1ba3fe1fc7bda539055de46ef041184b6
Author: Erick PÃrez Castellanos <erick red gmail com>
Date: Sun Jul 1 00:03:14 2012 -0400
UI Fixes.
Fixed opaque rounded corners
Fixed using radio instead of checkbox
Fixed using documents icon instead of list-view.
data/gtk-styles.css | 5 +++++
src/gcal-toolbar.c | 2 +-
src/gcal-window.c | 8 ++++++--
3 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/data/gtk-styles.css b/data/gtk-styles.css
index b039aae..00f33be 100644
--- a/data/gtk-styles.css
+++ b/data/gtk-styles.css
@@ -56,3 +56,8 @@
padding-left: 8px;
padding-right: 8px;
}
+
+GtkClutterOffscreen.sources {
+ background-color: transparent;
+ background-image: none;
+}
diff --git a/src/gcal-toolbar.c b/src/gcal-toolbar.c
index 66c8908..30771c8 100644
--- a/src/gcal-toolbar.c
+++ b/src/gcal-toolbar.c
@@ -191,7 +191,7 @@ gcal_toolbar_set_overview_mode (GcalToolbar *toolbar)
priv->sources_button = gtk_toggle_button_new ();
gtk_container_add (
GTK_CONTAINER (priv->sources_button),
- gtk_image_new_from_icon_name ("emblem-documents-symbolic",
+ gtk_image_new_from_icon_name ("view-list-symbolic",
GTK_ICON_SIZE_MENU));
context = gtk_widget_get_style_context (priv->sources_button);
diff --git a/src/gcal-window.c b/src/gcal-window.c
index 76e6716..a9d8413 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -108,6 +108,7 @@ gcal_window_constructed (GObject *object)
ClutterActor *body_actor;
ClutterLayoutManager *body_layout_manager;
ClutterLayoutManager *contents_layout_manager;
+ GtkWidget *holder_parent;
GtkWidget *holder;
GtkStyleContext *context;
@@ -217,6 +218,11 @@ gcal_window_constructed (GObject *object)
CLUTTER_BIN_ALIGNMENT_START);
clutter_actor_hide (priv->sources_actor);
+ holder_parent = gtk_widget_get_parent (holder);
+ gtk_style_context_add_class (
+ gtk_widget_get_style_context (holder_parent),
+ "sources");
+
/* signals connection/handling */
g_signal_connect (priv->main_toolbar,
"view-changed",
@@ -267,8 +273,6 @@ gcal_window_set_sources_view (GcalWindow *window)
TRUE);
renderer = gtk_cell_renderer_toggle_new ();
- gtk_cell_renderer_toggle_set_radio (GTK_CELL_RENDERER_TOGGLE (renderer),
- TRUE);
column = gtk_tree_view_column_new_with_attributes ("",
renderer,
"active",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]