[Sugar-devel] [PATCH sugar-artwork] Set notebook padding to 0px in the GTK3 CSS #3482

Simon Schampijer simon at schampijer.de
Thu Apr 26 10:25:03 EDT 2012


On 04/24/2012 06:40 PM, Manuel Quiñones wrote:
> This removes the 2 pixel padding that was around all the notebook
> page, preventing a confortable use of the scroll bar with the mouse
> pointer, as #3482 describes.
>
> Signed-off-by: Manuel Quiñones<manuq at laptop.org>
> ---
>   gtk3/theme/gtk-widgets.css.em |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/gtk3/theme/gtk-widgets.css.em b/gtk3/theme/gtk-widgets.css.em
> index 6c823b6..dce2a58 100644
> --- a/gtk3/theme/gtk-widgets.css.em
> +++ b/gtk3/theme/gtk-widgets.css.em
> @@ -279,7 +279,7 @@ SugarPaletteWindowWidget GtkToggleButton.button:active {
>
>   .notebook {
>       background-color: @selection_grey;
> -    border-width: 0px;
> +    padding: 0px;
>       -GtkNotebook-tab-overlap: -2;
>       -GtkNotebook-tab-curvature: $default_padding;
>   }

Thanks Manuel, works great, pushed as 
http://git.sugarlabs.org/sugar-artwork/mainline/commit/0847edc8e37317fced59cbb1fc35709202ef1ad4

Thanks Anish for testing.

The Terminal has the same issue, we should do the same. I think it is 
fine to do (make sure) when we port Terminal to GTK-3, filed [1].

Regards,
    Simon

[1] http://bugs.sugarlabs.org/ticket/3529


More information about the Sugar-devel mailing list