Skip to content

Commit

Permalink
Remove border around the notebook in Preferences dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
yktoo committed Jun 6, 2020
1 parent 345297a commit 2b02bf1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
indicator-sound-switcher (2.3.4-1) eoan; urgency=low

* Fix symbolic icons (#88)
* Remove border around the notebook in Preferences dialog

-- Dmitry Kann <yktooo@gmail.com> Mon, 06 Jun 2020 14:21:16 +0200

Expand Down
10 changes: 3 additions & 7 deletions lib/indicator_sound_switcher/prefs.glade
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.22.1
<!-- Generated with glade 3.22.1
Copyright (C)
Expand Down Expand Up @@ -69,10 +69,6 @@ Author: Dmitry Kann
<child internal-child="vbox">
<object class="GtkBox">
<property name="can_focus">False</property>
<property name="margin_left">10</property>
<property name="margin_right">10</property>
<property name="margin_top">10</property>
<property name="margin_bottom">10</property>
<property name="orientation">vertical</property>
<property name="spacing">2</property>
<child internal-child="action_area">
Expand All @@ -95,6 +91,7 @@ Author: Dmitry Kann
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="show_border">False</property>
<child>
<object class="GtkGrid">
<property name="visible">True</property>
Expand Down Expand Up @@ -480,7 +477,6 @@ Author: Dmitry Kann
</child>
<child>
<object class="GtkButton" id="b_port_set_shortcut">
<property name="label" translatable="yes"/>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
Expand Down Expand Up @@ -522,7 +518,7 @@ Author: Dmitry Kann
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
Expand Down
3 changes: 3 additions & 0 deletions lib/indicator_sound_switcher/prefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ def __init__(self, indicator):
self.builder = Gtk.Builder()
self.builder.add_from_file(os.path.join(os.path.dirname(__file__), 'prefs.glade'))

# Remove the 2-pixel "aura" around the notebook
self.prefs_dialog.get_content_area().set_border_width(0)

# Create a text renderer for preferred profiles to support ellipsizing the text
renderer_text = Gtk.CellRendererText()
renderer_text.props.ellipsize = Pango.EllipsizeMode.END
Expand Down

0 comments on commit 2b02bf1

Please sign in to comment.