[#2464] [GTKUI] Fix unable add trackers in createtorrentdialog
This commit is contained in:
parent
67873f39dc
commit
27682cb666
|
@ -433,7 +433,7 @@ class CreateTorrentDialog:
|
||||||
log.debug("_on_button_add_clicked")
|
log.debug("_on_button_add_clicked")
|
||||||
builder = gtk.Builder()
|
builder = gtk.Builder()
|
||||||
builder.add_from_file(deluge.common.resource_filename(
|
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 = builder.get_object("add_tracker_dialog")
|
||||||
dialog.set_transient_for(self.dialog)
|
dialog.set_transient_for(self.dialog)
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
<property name="window_position">center-on-parent</property>
|
<property name="window_position">center-on-parent</property>
|
||||||
<property name="destroy_with_parent">True</property>
|
<property name="destroy_with_parent">True</property>
|
||||||
<property name="type_hint">dialog</property>
|
<property name="type_hint">dialog</property>
|
||||||
<property name="decorated">False</property>
|
|
||||||
<child internal-child="vbox">
|
<child internal-child="vbox">
|
||||||
<object class="GtkVBox" id="dialog-vbox5">
|
<object class="GtkVBox" id="dialog-vbox5">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
@ -25,10 +24,10 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkButton" id="button_add_cancel">
|
<object class="GtkButton" id="button_add_cancel">
|
||||||
<property name="label">gtk-cancel</property>
|
<property name="label">gtk-cancel</property>
|
||||||
|
<property name="use_action_appearance">False</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="receives_default">True</property>
|
<property name="receives_default">True</property>
|
||||||
<property name="use_action_appearance">False</property>
|
|
||||||
<property name="use_stock">True</property>
|
<property name="use_stock">True</property>
|
||||||
<signal name="clicked" handler="on_button_add_cancel_clicked" swapped="no"/>
|
<signal name="clicked" handler="on_button_add_cancel_clicked" swapped="no"/>
|
||||||
</object>
|
</object>
|
||||||
|
@ -41,12 +40,12 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkButton" id="button_add_ok">
|
<object class="GtkButton" id="button_add_ok">
|
||||||
<property name="label">gtk-ok</property>
|
<property name="label">gtk-ok</property>
|
||||||
|
<property name="use_action_appearance">False</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="can_default">True</property>
|
<property name="can_default">True</property>
|
||||||
<property name="has_default">True</property>
|
<property name="has_default">True</property>
|
||||||
<property name="receives_default">True</property>
|
<property name="receives_default">True</property>
|
||||||
<property name="use_action_appearance">False</property>
|
|
||||||
<property name="use_stock">True</property>
|
<property name="use_stock">True</property>
|
||||||
<signal name="clicked" handler="on_button_add_ok_clicked" swapped="no"/>
|
<signal name="clicked" handler="on_button_add_ok_clicked" swapped="no"/>
|
||||||
</object>
|
</object>
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
<property name="window_position">center-on-parent</property>
|
<property name="window_position">center-on-parent</property>
|
||||||
<property name="destroy_with_parent">True</property>
|
<property name="destroy_with_parent">True</property>
|
||||||
<property name="type_hint">dialog</property>
|
<property name="type_hint">dialog</property>
|
||||||
<property name="decorated">False</property>
|
|
||||||
<child internal-child="vbox">
|
<child internal-child="vbox">
|
||||||
<object class="GtkVBox" id="dialog-vbox7">
|
<object class="GtkVBox" id="dialog-vbox7">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
@ -24,10 +23,10 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkButton" id="button_add_cancel1">
|
<object class="GtkButton" id="button_add_cancel1">
|
||||||
<property name="label">gtk-cancel</property>
|
<property name="label">gtk-cancel</property>
|
||||||
|
<property name="use_action_appearance">False</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="receives_default">True</property>
|
<property name="receives_default">True</property>
|
||||||
<property name="use_action_appearance">False</property>
|
|
||||||
<property name="use_stock">True</property>
|
<property name="use_stock">True</property>
|
||||||
<signal name="clicked" handler="on_button_edit_cancel_clicked" swapped="no"/>
|
<signal name="clicked" handler="on_button_edit_cancel_clicked" swapped="no"/>
|
||||||
</object>
|
</object>
|
||||||
|
@ -40,12 +39,12 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkButton" id="button_add_ok1">
|
<object class="GtkButton" id="button_add_ok1">
|
||||||
<property name="label">gtk-ok</property>
|
<property name="label">gtk-ok</property>
|
||||||
|
<property name="use_action_appearance">False</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="can_default">True</property>
|
<property name="can_default">True</property>
|
||||||
<property name="has_default">True</property>
|
<property name="has_default">True</property>
|
||||||
<property name="receives_default">True</property>
|
<property name="receives_default">True</property>
|
||||||
<property name="use_action_appearance">False</property>
|
|
||||||
<property name="use_stock">True</property>
|
<property name="use_stock">True</property>
|
||||||
<signal name="clicked" handler="on_button_edit_ok_clicked" swapped="no"/>
|
<signal name="clicked" handler="on_button_edit_ok_clicked" swapped="no"/>
|
||||||
</object>
|
</object>
|
||||||
|
@ -140,8 +139,8 @@
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="invisible_char">•</property>
|
<property name="invisible_char">•</property>
|
||||||
<property name="truncate_multiline">True</property>
|
|
||||||
<property name="activates_default">True</property>
|
<property name="activates_default">True</property>
|
||||||
|
<property name="truncate_multiline">True</property>
|
||||||
<property name="invisible_char_set">True</property>
|
<property name="invisible_char_set">True</property>
|
||||||
<property name="primary_icon_activatable">False</property>
|
<property name="primary_icon_activatable">False</property>
|
||||||
<property name="secondary_icon_activatable">False</property>
|
<property name="secondary_icon_activatable">False</property>
|
||||||
|
|
Loading…
Reference in New Issue