Now allows to rename titles just by double-clicking on them
This commit is contained in:
parent
88b23ca8ea
commit
34670d3ebd
3 changed files with 17 additions and 3 deletions
|
|
@ -34,6 +34,8 @@
|
||||||
<column type="GObject"/>
|
<column type="GObject"/>
|
||||||
<!-- column-name files -->
|
<!-- column-name files -->
|
||||||
<column type="gchararray"/>
|
<column type="gchararray"/>
|
||||||
|
<!-- column-name toedit -->
|
||||||
|
<column type="gboolean"/>
|
||||||
</columns>
|
</columns>
|
||||||
</object>
|
</object>
|
||||||
<object class="GtkWindow" id="wmain_window">
|
<object class="GtkWindow" id="wmain_window">
|
||||||
|
|
@ -229,8 +231,11 @@
|
||||||
<object class="GtkTreeViewColumn" id="treeviewcolumn2">
|
<object class="GtkTreeViewColumn" id="treeviewcolumn2">
|
||||||
<property name="title" translatable="yes">column</property>
|
<property name="title" translatable="yes">column</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkCellRendererText" id="cellrenderertext3"/>
|
<object class="GtkCellRendererText" id="cellrenderertext3">
|
||||||
|
<signal name="edited" handler="on_cellrenderertext3_edited" swapped="no"/>
|
||||||
|
</object>
|
||||||
<attributes>
|
<attributes>
|
||||||
|
<attribute name="editable">2</attribute>
|
||||||
<attribute name="text">1</attribute>
|
<attribute name="text">1</attribute>
|
||||||
</attributes>
|
</attributes>
|
||||||
</child>
|
</child>
|
||||||
|
|
|
||||||
|
|
@ -178,6 +178,11 @@ class file_movie(devede.interface_manager.interface_manager):
|
||||||
self.error = False
|
self.error = False
|
||||||
|
|
||||||
|
|
||||||
|
def set_title(self,new_title):
|
||||||
|
self.title_name = new_title
|
||||||
|
self.emit('title_changed',self.title_name)
|
||||||
|
|
||||||
|
|
||||||
def get_estimated_size(self):
|
def get_estimated_size(self):
|
||||||
""" Returns the estimated final file size, in kBytes, based on the final audio and video rate, and the subtitles """
|
""" Returns the estimated final file size, in kBytes, based on the final audio and video rate, and the subtitles """
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -186,6 +186,10 @@ class devede_project:
|
||||||
self.wdown_file.set_sensitive(False)
|
self.wdown_file.set_sensitive(False)
|
||||||
|
|
||||||
|
|
||||||
|
def on_cellrenderertext3_edited(self, widget, path, text):
|
||||||
|
self.wliststore_files[path][0].set_title(text)
|
||||||
|
|
||||||
|
|
||||||
def on_use_pal_toggled(self,b):
|
def on_use_pal_toggled(self,b):
|
||||||
|
|
||||||
self.config.PAL = self.wuse_pal.get_active()
|
self.config.PAL = self.wuse_pal.get_active()
|
||||||
|
|
@ -225,7 +229,7 @@ class devede_project:
|
||||||
error_list.append(os.path.basename(efile))
|
error_list.append(os.path.basename(efile))
|
||||||
else:
|
else:
|
||||||
new_file.connect('title_changed',self.title_changed)
|
new_file.connect('title_changed',self.title_changed)
|
||||||
self.wliststore_files.append([new_file, new_file.title_name])
|
self.wliststore_files.append([new_file, new_file.title_name,True])
|
||||||
if (len(error_list)!=0):
|
if (len(error_list)!=0):
|
||||||
devede.message.message_window(_("The following files could not be added:"),_("Error while adding files"),error_list)
|
devede.message.message_window(_("The following files could not be added:"),_("Error while adding files"),error_list)
|
||||||
self.set_interface_status(None)
|
self.set_interface_status(None)
|
||||||
|
|
@ -644,7 +648,7 @@ class devede_project:
|
||||||
else:
|
else:
|
||||||
new_file.restore_file(efile)
|
new_file.restore_file(efile)
|
||||||
new_file.connect('title_changed',self.title_changed)
|
new_file.connect('title_changed',self.title_changed)
|
||||||
self.wliststore_files.append([new_file, new_file.title_name])
|
self.wliststore_files.append([new_file, new_file.title_name,True])
|
||||||
if (len(error_list)!=0):
|
if (len(error_list)!=0):
|
||||||
devede.message.message_window(_("The following files in the project could not be added again:"),_("Error while adding files"),error_list)
|
devede.message.message_window(_("The following files in the project could not be added again:"),_("Error while adding files"),error_list)
|
||||||
self.set_interface_status(None)
|
self.set_interface_status(None)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue