[#2464] [GTKUI] Fix unable add trackers in createtorrentdialog

This commit is contained in:
Calum Lind 2014-07-09 18:52:26 +01:00
parent 67873f39dc
commit 27682cb666
3 changed files with 6 additions and 8 deletions

View File

@ -433,7 +433,7 @@ class CreateTorrentDialog:
log.debug("_on_button_add_clicked")
builder = gtk.Builder()
builder.add_from_file(deluge.common.resource_filename(
"deluge.ui.gtkui", os.path.join("glade", "edit_trackers.ui")
"deluge.ui.gtkui", os.path.join("glade", "edit_trackers.add.ui")
))
dialog = builder.get_object("add_tracker_dialog")
dialog.set_transient_for(self.dialog)

View File

@ -11,7 +11,6 @@
<property name="window_position">center-on-parent</property>
<property name="destroy_with_parent">True</property>
<property name="type_hint">dialog</property>
<property name="decorated">False</property>
<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox5">
<property name="visible">True</property>
@ -25,10 +24,10 @@
<child>
<object class="GtkButton" id="button_add_cancel">
<property name="label">gtk-cancel</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<property name="use_stock">True</property>
<signal name="clicked" handler="on_button_add_cancel_clicked" swapped="no"/>
</object>
@ -41,12 +40,12 @@
<child>
<object class="GtkButton" id="button_add_ok">
<property name="label">gtk-ok</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
<property name="has_default">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<property name="use_stock">True</property>
<signal name="clicked" handler="on_button_add_ok_clicked" swapped="no"/>
</object>

View File

@ -10,7 +10,6 @@
<property name="window_position">center-on-parent</property>
<property name="destroy_with_parent">True</property>
<property name="type_hint">dialog</property>
<property name="decorated">False</property>
<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox7">
<property name="visible">True</property>
@ -24,10 +23,10 @@
<child>
<object class="GtkButton" id="button_add_cancel1">
<property name="label">gtk-cancel</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<property name="use_stock">True</property>
<signal name="clicked" handler="on_button_edit_cancel_clicked" swapped="no"/>
</object>
@ -40,12 +39,12 @@
<child>
<object class="GtkButton" id="button_add_ok1">
<property name="label">gtk-ok</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
<property name="has_default">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
<property name="use_stock">True</property>
<signal name="clicked" handler="on_button_edit_ok_clicked" swapped="no"/>
</object>
@ -140,8 +139,8 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char">•</property>
<property name="truncate_multiline">True</property>
<property name="activates_default">True</property>
<property name="truncate_multiline">True</property>
<property name="invisible_char_set">True</property>
<property name="primary_icon_activatable">False</property>
<property name="secondary_icon_activatable">False</property>