[gnome-control-center/gbsneto/background: 11/20] background-panel: Remove background chooser buttons
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gbsneto/background: 11/20] background-panel: Remove background chooser buttons
- Date: Sun, 26 May 2019 02:08:53 +0000 (UTC)
commit e40c7e78bdbb37503a6c57b84f80804e4f3be042
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed May 22 12:32:49 2019 -0300
background-panel: Remove background chooser buttons
The chooser itself is now located below, and we don't need
to have the buttons anymore.
panels/background/cc-background-panel.ui | 83 +++++---------------------------
1 file changed, 12 insertions(+), 71 deletions(-)
---
diff --git a/panels/background/cc-background-panel.ui b/panels/background/cc-background-panel.ui
index e569d86b5..a28cbfa50 100644
--- a/panels/background/cc-background-panel.ui
+++ b/panels/background/cc-background-panel.ui
@@ -25,39 +25,13 @@
<property name="valign">center</property>
<property name="orientation">vertical</property>
<child>
- <object class="GtkButton" id="background-set-button">
+ <object class="GtkDrawingArea" id="desktop_drawing_area">
+ <property name="width_request">310</property>
+ <property name="height_request">170</property>
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <signal name="clicked" handler="on_background_button_clicked_cb"
object="CcBackgroundPanel" swapped="no" />
- <child>
- <object class="GtkBox" id="box2">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="margin">6</property>
- <property name="spacing">6</property>
- <property name="orientation">vertical</property>
- <child>
- <object class="GtkDrawingArea" id="desktop_drawing_area">
- <property name="width_request">310</property>
- <property name="height_request">170</property>
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="valign">center</property>
- <signal name="draw" handler="on_preview_draw_cb" object="CcBackgroundPanel"
swapped="no" />
- </object>
- </child>
- <child>
- <object class="GtkLabel" id="label1">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">_Background</property>
- <property name="use_underline">True</property>
- <property name="mnemonic_widget">background-set-button</property>
- </object>
- </child>
- </object>
- </child>
+ <property name="can_focus">False</property>
+ <property name="valign">center</property>
+ <signal name="draw" handler="on_preview_draw_cb" object="CcBackgroundPanel" swapped="no"
/>
</object>
</child>
<child>
@@ -108,39 +82,13 @@
<property name="halign">start</property>
<property name="valign">center</property>
<child>
- <object class="GtkButton" id="background-lock-set-button">
+ <object class="GtkDrawingArea" id="lock_drawing_area">
+ <property name="width_request">310</property>
+ <property name="height_request">170</property>
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <signal name="clicked" handler="on_lock_button_clicked_cb" object="CcBackgroundPanel"
swapped="no" />
- <child>
- <object class="GtkBox">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="margin">6</property>
- <property name="spacing">6</property>
- <property name="orientation">vertical</property>
- <child>
- <object class="GtkDrawingArea" id="lock_drawing_area">
- <property name="width_request">310</property>
- <property name="height_request">170</property>
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="valign">center</property>
- <signal name="draw" handler="on_lock_preview_draw_cb" object="CcBackgroundPanel"
swapped="no" />
- </object>
- </child>
- <child>
- <object class="GtkLabel" id="label2">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label" translatable="yes" comments="To translators: This is a
noun, not a verb">_Lock Screen</property>
- <property name="use_underline">True</property>
- <property name="mnemonic_widget">background-lock-set-button</property>
- </object>
- </child>
- </object>
- </child>
+ <property name="can_focus">False</property>
+ <property name="valign">center</property>
+ <signal name="draw" handler="on_lock_preview_draw_cb" object="CcBackgroundPanel"
swapped="no" />
</object>
</child>
<child>
@@ -242,11 +190,4 @@
</row>
</data>
</object>
- <object class="GtkSizeGroup" id="sizegroup">
- <property name="mode">vertical</property>
- <widgets>
- <widget name="desktop_slide_label"/>
- <widget name="strut"/>
- </widgets>
- </object>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]