summaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2017-06-12 16:54:13 -0700
committerJohn Stebbins <[email protected]>2017-06-12 16:54:13 -0700
commit0c23a9f435dd9c9d53bf698bc4dbd6ef47c53b93 (patch)
treeb17e37b4bc2b96a715e0af2413d9d420e5e648cd /gtk
parentc26035e2e6ddab325b39276cc56c09b042582698 (diff)
LinGui: Allow resizing window smaller
Make widget geometry changes that allow the window to be sized smaller. Minimum size with Fedora's default Adwaita theme is 1080x698. Other themes will vary in size.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/src/ghb.m464
-rw-r--r--gtk/src/main.c5
2 files changed, 33 insertions, 36 deletions
diff --git a/gtk/src/ghb.m4 b/gtk/src/ghb.m4
index 74ab62bed..736ce9e1b 100644
--- a/gtk/src/ghb.m4
+++ b/gtk/src/ghb.m4
@@ -2204,7 +2204,7 @@ This allows a player to initiate playback before downloading the entire file.</p
<packing>
<property name="top_attach">0</property>
<property name="left_attach">0</property>
- <property name="width">2</property>
+ <property name="width">4</property>
<property name="height">1</property>
</packing>
</child>
@@ -2226,13 +2226,13 @@ the required multiple.</property>
<packing>
<property name="top_attach">1</property>
<property name="left_attach">0</property>
- <property name="width">2</property>
+ <property name="width">4</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkSpinButton" id="PictureLeftCrop">
- <property name="width-chars">7</property>
+ <property name="width-chars">6</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
@@ -2245,13 +2245,13 @@ the required multiple.</property>
<packing>
<property name="top_attach">2</property>
<property name="left_attach">0</property>
- <property name="width">1</property>
+ <property name="width">6</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkSpinButton" id="PictureTopCrop">
- <property name="width-chars">7</property>
+ <property name="width-chars">6</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
@@ -2263,14 +2263,14 @@ the required multiple.</property>
</object>
<packing>
<property name="top_attach">1</property>
- <property name="left_attach">1</property>
- <property name="width">1</property>
+ <property name="left_attach">5</property>
+ <property name="width">6</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkSpinButton" id="PictureBottomCrop">
- <property name="width-chars">7</property>
+ <property name="width-chars">6</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
@@ -2282,14 +2282,14 @@ the required multiple.</property>
</object>
<packing>
<property name="top_attach">3</property>
- <property name="left_attach">1</property>
- <property name="width">1</property>
+ <property name="left_attach">5</property>
+ <property name="width">6</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkSpinButton" id="PictureRightCrop">
- <property name="width-chars">7</property>
+ <property name="width-chars">6</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
@@ -2301,8 +2301,8 @@ the required multiple.</property>
</object>
<packing>
<property name="top_attach">2</property>
- <property name="left_attach">2</property>
- <property name="width">1</property>
+ <property name="left_attach">10</property>
+ <property name="width">6</property>
<property name="height">1</property>
</packing>
</child>
@@ -2317,7 +2317,7 @@ the required multiple.</property>
<packing>
<property name="top_attach">5</property>
<property name="left_attach">0</property>
- <property name="width">1</property>
+ <property name="width">4</property>
<property name="height">1</property>
</packing>
</child>
@@ -2331,8 +2331,8 @@ the required multiple.</property>
</object>
<packing>
<property name="top_attach">5</property>
- <property name="left_attach">1</property>
- <property name="width">1</property>
+ <property name="left_attach">4</property>
+ <property name="width">4</property>
<property name="height">1</property>
</packing>
</child>
@@ -2419,7 +2419,7 @@ This will be the resolution that most closely matches the source resolution afte
</child>
<child>
<object class="GtkSpinButton" id="scale_width">
- <property name="width-chars">7</property>
+ <property name="width-chars">6</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
@@ -2454,7 +2454,7 @@ The actual display dimensions will differ if the pixel aspect ratio is not 1:1.<
</child>
<child>
<object class="GtkSpinButton" id="scale_height">
- <property name="width-chars">7</property>
+ <property name="width-chars">6</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
@@ -2643,7 +2643,7 @@ You should use 2 unless you experience compatibility issues.</property>
</child>
<child>
<object class="GtkSpinButton" id="PictureDisplayWidth">
- <property name="width-chars">7</property>
+ <property name="width-chars">6</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
@@ -2677,7 +2677,7 @@ You should use 2 unless you experience compatibility issues.</property>
</child>
<child>
<object class="GtkSpinButton" id="PictureDisplayHeight">
- <property name="width-chars">7</property>
+ <property name="width-chars">6</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
@@ -2725,7 +2725,7 @@ You should use 2 unless you experience compatibility issues.</property>
</child>
<child>
<object class="GtkSpinButton" id="PicturePARWidth">
- <property name="width-chars">8</property>
+ <property name="width-chars">6</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
@@ -2762,7 +2762,7 @@ Players will scale the image in order to achieve the specified aspect.</property
</child>
<child>
<object class="GtkSpinButton" id="PicturePARHeight">
- <property name="width-chars">8</property>
+ <property name="width-chars">6</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
@@ -3164,8 +3164,8 @@ If your source exhibits 'blockiness', this filter may help clean it up.</propert
])dnl
ifelse(eval(gtk_version < 312), 1, filter_output([
<packing>
- <property name="top_attach">1</property>
- <property name="left_attach">0</property>
+ <property name="top_attach">0</property>
+ <property name="left_attach">3</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
@@ -3302,7 +3302,7 @@ SpatialLuma:SpatialChroma:TemporalLuma:TemporalChroma</property>
ifelse(eval(gtk_version < 312), 1, filter_output([
<packing>
<property name="top_attach">1</property>
- <property name="left_attach">1</property>
+ <property name="left_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
@@ -3436,7 +3436,7 @@ SpatialLuma:SpatialChroma:TemporalLuma:TemporalChroma</property>
ifelse(eval(gtk_version < 312), 1, filter_output([
<packing>
<property name="top_attach">1</property>
- <property name="left_attach">2</property>
+ <property name="left_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
@@ -3487,7 +3487,7 @@ filter_output([
ifelse(eval(gtk_version < 312), 1, filter_output([
<packing>
<property name="top_attach">1</property>
- <property name="left_attach">3</property>
+ <property name="left_attach">2</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
@@ -3511,7 +3511,7 @@ filter_output([
ifelse(eval(gtk_version < 312), 1, filter_output([
<packing>
<property name="top_attach">1</property>
- <property name="left_attach">4</property>
+ <property name="left_attach">3</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
@@ -6384,12 +6384,6 @@ no-fast-pskip=0:no-dct-decimate=0:cabac=1</property>
<property name="position">0</property>
</packing>
</child>
- <child>
- <placeholder/>
- </child>
- <child>
- <placeholder/>
- </child>
</object>
<packing>
<property name="expand">False</property>
@@ -6897,8 +6891,6 @@ This file may be reloaded at a later time to edit your jobs and re-encode.</prop
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<child>
<object class="GtkTreeView" id="queue_list">
- <property name="width_request">900</property>
- <property name="height_request">300</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
diff --git a/gtk/src/main.c b/gtk/src/main.c
index 9ec6e3137..57a96645d 100644
--- a/gtk/src/main.c
+++ b/gtk/src/main.c
@@ -794,6 +794,11 @@ const gchar *MyCSS =
background-color: @gray32; \n\
color: @white; \n\
} \n\
+ \n\
+stackswitcher button.text-button \n\
+{ \n\
+ min-width: 50px; \n\
+} \n\
"
#if GTK_CHECK_VERSION(3, 16, 0)
" \n\