[gnome-music] playlistdialog: Fix minor typo



commit fadd962ba4af8b8bcaf909e6efa5e657d34b74c7
Author: Jean Felder <jean felder gmail com>
Date:   Fri Jan 12 12:02:09 2018 +0100

    playlistdialog: Fix minor typo
    
    1 suffix is useless

 data/PlaylistDialog.ui               | 18 +++++++++---------
 gnomemusic/widgets/playlistdialog.py |  8 ++++----
 2 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/data/PlaylistDialog.ui b/data/PlaylistDialog.ui
index 1fe6d56..c34abce 100644
--- a/data/PlaylistDialog.ui
+++ b/data/PlaylistDialog.ui
@@ -10,7 +10,7 @@
     <property name="destroy_with_parent">True</property>
     <property name="type_hint">dialog</property>
     <child internal-child="vbox">
-      <object class="GtkBox" id="dialog-vbox1">
+      <object class="GtkBox" id="dialog-vbox">
         <property name="can_focus">False</property>
         <property name="orientation">vertical</property>
         <child internal-child="action_area">
@@ -41,7 +41,7 @@
                     <property name="can_focus">False</property>
                     <property name="orientation">vertical</property>
                     <child>
-                      <object class="GtkImage" id="image1">
+                      <object class="GtkImage" id="image">
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
                         <property name="valign">center</property>
@@ -57,7 +57,7 @@
                       </packing>
                     </child>
                     <child>
-                      <object class="GtkLabel" id="label1">
+                      <object class="GtkLabel" id="label">
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
                         <property name="label" translatable="yes">Enter a name for your first 
playlist</property>
@@ -202,20 +202,20 @@
                   </packing>
                 </child>
                 <child>
-                  <object class="GtkScrolledWindow" id="scrolledwindow1">
+                  <object class="GtkScrolledWindow" id="scrolledwindow">
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
                     <property name="vexpand">True</property>
                     <child>
-                      <object class="GtkTreeView" id="treeview1">
+                      <object class="GtkTreeView" id="treeview">
                         <property name="visible">True</property>
                         <property name="can_focus">True</property>
-                        <property name="model">liststore1</property>
+                        <property name="model">liststore</property>
                         <property name="headers_visible">False</property>
                         <property name="search_column">0</property>
                         <property name="activate_on_single_click">True</property>
                         <child internal-child="selection">
-                          <object class="GtkTreeSelection" id="treeview-selection1"/>
+                          <object class="GtkTreeSelection" id="treeview-selection"/>
                         </child>
                         <style>
                           <class name="list-row"/>
@@ -255,7 +255,7 @@
       </object>
     </child>
   </object>
-  <object class="GtkHeaderBar" id="headerbar1">
+  <object class="GtkHeaderBar" id="headerbar">
     <property name="visible">True</property>
     <property name="can_focus">False</property>
     <property name="title" translatable="yes">Select Playlist</property>
@@ -289,7 +289,7 @@
       </packing>
     </child>
   </object>
-  <object class="GtkListStore" id="liststore1">
+  <object class="GtkListStore" id="liststore">
     <columns>
       <!-- column-name playlist-name -->
       <column type="gchararray"/>
diff --git a/gnomemusic/widgets/playlistdialog.py b/gnomemusic/widgets/playlistdialog.py
index a8659a4..dd0f5cb 100644
--- a/gnomemusic/widgets/playlistdialog.py
+++ b/gnomemusic/widgets/playlistdialog.py
@@ -47,7 +47,7 @@ class PlaylistDialog():
         self._add_playlist_stack = self._ui.get_object('add_playlist_stack')
         self._normal_state = self._ui.get_object('normal_state')
         self._empty_state = self._ui.get_object('empty_state')
-        self._title_bar = self._ui.get_object('headerbar1')
+        self._title_bar = self._ui.get_object('headerbar')
         self._dialog_box.set_titlebar(self._title_bar)
         self._setup_dialog()
 
@@ -67,14 +67,14 @@ class PlaylistDialog():
 
     @log
     def _setup_dialog(self):
-        self._view = self._ui.get_object('treeview1')
+        self._view = self._ui.get_object('treeview')
         self._view.set_activate_on_single_click(False)
-        self._selection = self._ui.get_object('treeview-selection1')
+        self._selection = self._ui.get_object('treeview-selection')
         self._selection.connect('changed', self._on_selection_changed)
         self._add_list_renderers()
         self._view.connect('row-activated', self._on_item_activated)
 
-        self._model = self._ui.get_object('liststore1')
+        self._model = self._ui.get_object('liststore')
         self._populate()
 
         self._cancel_button = self._ui.get_object('cancel-button')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]