[gnome-software] trivial: Correctly set the border radius of the screenshot thumbnails



commit 62808f1d7a44e24c0c08ae55cb5570d807995a0c
Author: Richard Hughes <richard hughsie com>
Date:   Tue Nov 12 16:36:49 2013 +0000

    trivial: Correctly set the border radius of the screenshot thumbnails

 src/gs-shell-details.c |    3 ++-
 src/gtk-style.css      |    4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 399c14f..57d1a0d 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -355,9 +355,10 @@ gs_shell_details_refresh_screenshots (GsShellDetails *shell_details)
                gs_screenshot_image_set_size (GS_SCREENSHOT_IMAGE (ssimg),
                                              GS_SCREENSHOT_SIZE_THUMBNAIL_WIDTH,
                                              GS_SCREENSHOT_SIZE_THUMBNAIL_HEIGHT);
+               gtk_style_context_add_class (gtk_widget_get_style_context (ssimg),
+                                            "screenshot-image-thumb");
                gs_screenshot_image_load_async (GS_SCREENSHOT_IMAGE (ssimg), NULL);
                gtk_list_box_insert (GTK_LIST_BOX (list), ssimg, -1);
-               gtk_style_context_add_class (gtk_widget_get_style_context (list), "scrthumb");
                gtk_widget_set_visible (ssimg, TRUE);
        }
 
diff --git a/src/gtk-style.css b/src/gtk-style.css
index 3eb7fc9..c963c1d 100644
--- a/src/gtk-style.css
+++ b/src/gtk-style.css
@@ -48,12 +48,12 @@ GtkNotebook.main-notebook-software > GtkScrolledWindow {
                                       );
   }
   
-.screenshot-image, .scrthumb {
+.screenshot-image, .screenshot-image-thumb {
         background-image: none;
         background-color: shade(@theme_bg_color, 0.9);
 }
   .screenshot-image { border-radius: 5px; }
-  .scrthumb { border-radius: 3px; }
+  .screenshot-image-thumb { border-radius: 3px; }
 
 .view.tile {
         border-radius: 0;


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