[gnome-builder] build-panel: don't use css for textview padding



commit c613136f51a169e5118b275f946e5ff171bb5a06
Author: Christian Hergert <chergert redhat com>
Date:   Tue May 10 11:49:42 2016 +0300

    build-panel: don't use css for textview padding
    
    We can just use properties, and then all themes get the change.
    Additionally, I don't see the black borders when using the property
    to set the value.

 plugins/build-tools/gbp-build-log-panel.c    |    4 ++++
 plugins/build-tools/theme/Adwaita-shared.css |    4 ----
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/build-tools/gbp-build-log-panel.c b/plugins/build-tools/gbp-build-log-panel.c
index 5918b08..59d02e0 100644
--- a/plugins/build-tools/gbp-build-log-panel.c
+++ b/plugins/build-tools/gbp-build-log-panel.c
@@ -70,9 +70,13 @@ gbp_build_log_panel_reset_view (GbpBuildLogPanel *self)
                                                  NULL);
 
   self->text_view = g_object_new (GTK_TYPE_TEXT_VIEW,
+                                  "bottom-margin", 3,
                                   "buffer", self->buffer,
                                   "editable", FALSE,
+                                  "left-margin", 3,
                                   "monospace", TRUE,
+                                  "right-margin", 3,
+                                  "top-margin", 3,
                                   "visible", TRUE,
                                   NULL);
   context = gtk_widget_get_style_context (GTK_WIDGET (self->text_view));
diff --git a/plugins/build-tools/theme/Adwaita-shared.css b/plugins/build-tools/theme/Adwaita-shared.css
index 834fd14..3e43a02 100644
--- a/plugins/build-tools/theme/Adwaita-shared.css
+++ b/plugins/build-tools/theme/Adwaita-shared.css
@@ -39,10 +39,6 @@ buildpanel list row image {
 }
 */
 
-buildlogpanel textview {
-  padding: 3px;
-}
-
 buildpanel box.build-status {
   background: shade(@theme_bg_color, 0.96);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]