From 74973218b1502c78efc2cedfa256a5e0fdba25dc Mon Sep 17 00:00:00 2001 From: "Ignacio R. Morelle" Date: Mon, 22 Feb 2016 19:06:59 -0300 Subject: [PATCH] Revert "gui2: dropped repeating buttons from scrollbars" This reverts commit 04d510a91cb9d9ff97a56b09690ca9499c82ab30. --- .../default/macros/horizontal_scrollbar.cfg | 41 +++++++++++++ .../gui/default/macros/vertical_scrollbar.cfg | 57 +++++++++++++++++++ 2 files changed, 98 insertions(+) diff --git a/data/gui/default/macros/horizontal_scrollbar.cfg b/data/gui/default/macros/horizontal_scrollbar.cfg index 3762fff6f4c1..4f0d2d70ae77 100644 --- a/data/gui/default/macros/horizontal_scrollbar.cfg +++ b/data/gui/default/macros/horizontal_scrollbar.cfg @@ -8,6 +8,16 @@ horizontal_grow = "true" [row] + [column] + + # note we want a special button definition for this later. + [repeating_button] + id = "_half_page_up" + definition = "left_arrow" + [/repeating_button] + + [/column] + [column] grow_factor = 1 horizontal_grow = "true" @@ -19,6 +29,16 @@ horizontal_grow = "true" [/column] + [column] + + # note we want a special button definition for this later. + [repeating_button] + id = "_half_page_down" + definition = "right_arrow" + [/repeating_button] + + [/column] + [/row] [/grid] @@ -31,6 +51,16 @@ horizontal_grow = "true" [row] + [column] + + # note we want a special button definition for this later. + [repeating_button] + id = "_half_page_up" + definition = "left_arrow_transparent" + [/repeating_button] + + [/column] + [column] grow_factor = 1 horizontal_grow = "true" @@ -42,7 +72,18 @@ horizontal_grow = "true" [/column] + [column] + + # note we want a special button definition for this later. + [repeating_button] + id = "_half_page_down" + definition = "right_arrow_transparent" + [/repeating_button] + + [/column] + [/row] [/grid] #enddef + diff --git a/data/gui/default/macros/vertical_scrollbar.cfg b/data/gui/default/macros/vertical_scrollbar.cfg index cb4ea4e19654..704c8234f08b 100644 --- a/data/gui/default/macros/vertical_scrollbar.cfg +++ b/data/gui/default/macros/vertical_scrollbar.cfg @@ -6,6 +6,20 @@ vertical_grow = "true" [grid] id = "_vertical_scrollbar_grid" + [row] + + [column] + + # note we want a special button definition for this later. + [repeating_button] + id = "_half_page_up" + definition = "up_arrow" + [/repeating_button] + + [/column] + + [/row] + [row] grow_factor = 1 @@ -21,6 +35,20 @@ vertical_grow = "true" [/row] + [row] + + [column] + + # note we want a special button definition for this later. + [repeating_button] + id = "_half_page_down" + definition = "down_arrow" + [/repeating_button] + + [/column] + + [/row] + [/grid] #enddef @@ -29,6 +57,20 @@ vertical_grow = "true" [grid] id = "_vertical_scrollbar_grid" + [row] + + [column] + + # note we want a special button definition for this later. + [repeating_button] + id = "_half_page_up" + definition = "up_arrow_transparent" + [/repeating_button] + + [/column] + + [/row] + [row] grow_factor = 1 @@ -44,5 +86,20 @@ vertical_grow = "true" [/row] + [row] + + [column] + + # note we want a special button definition for this later. + [repeating_button] + id = "_half_page_down" + definition = "down_arrow_transparent" + [/repeating_button] + + [/column] + + [/row] + [/grid] #enddef +