Commit 92765b97 authored by Cosimo Cecchi's avatar Cosimo Cecchi
Browse files

cc-window: don't render a frame around scrolled windows

The header bar will now render one.
parent f1553fc5
...@@ -1334,7 +1334,6 @@ create_main_page (CcWindow *self) ...@@ -1334,7 +1334,6 @@ create_main_page (CcWindow *self)
gtk_style_context_add_class (context, "view"); gtk_style_context_add_class (context, "view");
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (priv->scrolled_window), gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (priv->scrolled_window),
GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (priv->scrolled_window), GTK_SHADOW_IN);
gtk_notebook_append_page (GTK_NOTEBOOK (priv->notebook), priv->scrolled_window, NULL); gtk_notebook_append_page (GTK_NOTEBOOK (priv->notebook), priv->scrolled_window, NULL);
priv->main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); priv->main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
...@@ -1360,7 +1359,6 @@ create_search_page (CcWindow *self) ...@@ -1360,7 +1359,6 @@ create_search_page (CcWindow *self)
priv->search_scrolled = gtk_scrolled_window_new (NULL, NULL); priv->search_scrolled = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (priv->search_scrolled), gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (priv->search_scrolled),
GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (priv->scrolled_window), GTK_SHADOW_IN);
gtk_notebook_append_page (GTK_NOTEBOOK (priv->notebook), priv->search_scrolled, NULL); gtk_notebook_append_page (GTK_NOTEBOOK (priv->notebook), priv->search_scrolled, NULL);
/* setup search functionality */ /* setup search functionality */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment