~sbaildon/transmission

bfa62f61160cc033931a7a9b417a2dcd8bd969cd — Charles Kerr 11 months ago 8cdb6ec
fix: handle DELETE_EVENT in create-torrent GTK dialog code (#5180)

M gtk/MakeDialog.cc => gtk/MakeDialog.cc +2 -1
@@ 258,6 258,7 @@ void MakeProgressDialog::onProgressDialogResponse(int response)
    switch (response)
    {
    case TR_GTK_RESPONSE_TYPE(CANCEL):
    case TR_GTK_RESPONSE_TYPE(DELETE_EVENT):
        builder_.cancelChecksums();
        close();
        break;


@@ 316,7 317,7 @@ std::unique_ptr<MakeProgressDialog> MakeProgressDialog::create(

void MakeDialog::Impl::onResponse(int response)
{
    if (response == TR_GTK_RESPONSE_TYPE(CLOSE))
    if (response == TR_GTK_RESPONSE_TYPE(CLOSE) || response == TR_GTK_RESPONSE_TYPE(DELETE_EVENT))
    {
        dialog_.close();
        return;

M gtk/ui/gtk3/AddTrackerDialog.ui => gtk/ui/gtk3/AddTrackerDialog.ui +2 -2
@@ 123,8 123,8 @@
      </object>
    </child>
    <action-widgets>
      <action-widget response="-6">cancel_button</action-widget>
      <action-widget response="-3">open_button</action-widget>
      <action-widget response="cancel">cancel_button</action-widget>
      <action-widget response="accept">open_button</action-widget>
    </action-widgets>
  </object>
</interface>

M gtk/ui/gtk3/DetailsDialog.ui => gtk/ui/gtk3/DetailsDialog.ui +1 -1
@@ 1192,7 1192,7 @@
      </object>
    </child>
    <action-widgets>
      <action-widget response="-7">close_button</action-widget>
      <action-widget response="close">close_button</action-widget>
    </action-widgets>
  </object>
  <object class="GtkSizeGroup" id="info_page_labels_width_group">

M gtk/ui/gtk3/EditTrackersDialog.ui => gtk/ui/gtk3/EditTrackersDialog.ui +2 -2
@@ 146,8 146,8 @@ To add a new primary URL, add it after a blank line.</property>
      </object>
    </child>
    <action-widgets>
      <action-widget response="-6">cancel_button</action-widget>
      <action-widget response="-3">save_button</action-widget>
      <action-widget response="cancel">cancel_button</action-widget>
      <action-widget response="accept">save_button</action-widget>
    </action-widgets>
  </object>
</interface>

M gtk/ui/gtk3/MakeDialog.ui => gtk/ui/gtk3/MakeDialog.ui +2 -2
@@ 415,8 415,8 @@ To add a new primary URL, add it after a blank line.</property>
      </object>
    </child>
    <action-widgets>
      <action-widget response="-7">close_button</action-widget>
      <action-widget response="-3">new_button</action-widget>
      <action-widget response="close">close_button</action-widget>
      <action-widget response="accept">new_button</action-widget>
    </action-widgets>
  </object>
  <object class="GtkSizeGroup" id="labels_width_group">

M gtk/ui/gtk3/MakeProgressDialog.ui => gtk/ui/gtk3/MakeProgressDialog.ui +3 -3
@@ 109,9 109,9 @@
      </object>
    </child>
    <action-widgets>
      <action-widget response="-6">cancel_button</action-widget>
      <action-widget response="-7">close_button</action-widget>
      <action-widget response="-3">add_button</action-widget>
      <action-widget response="cancel">cancel_button</action-widget>
      <action-widget response="close">close_button</action-widget>
      <action-widget response="accept">add_button</action-widget>
    </action-widgets>
  </object>
</interface>

M gtk/ui/gtk3/OptionsDialog.ui => gtk/ui/gtk3/OptionsDialog.ui +2 -2
@@ 245,8 245,8 @@
      </object>
    </child>
    <action-widgets>
      <action-widget response="-6">cancel_button</action-widget>
      <action-widget response="-3">open_button</action-widget>
      <action-widget response="cancel">cancel_button</action-widget>
      <action-widget response="accept">open_button</action-widget>
    </action-widgets>
  </object>
</interface>

M gtk/ui/gtk3/PrefsDialog.ui => gtk/ui/gtk3/PrefsDialog.ui +2 -2
@@ 2095,8 2095,8 @@ To add a new primary URL, add it after a blank line.</property>
      </object>
    </child>
    <action-widgets>
      <action-widget response="-11">help_button</action-widget>
      <action-widget response="-7">close_button</action-widget>
      <action-widget response="help">help_button</action-widget>
      <action-widget response="close">close_button</action-widget>
    </action-widgets>
  </object>
  <object class="GtkSizeGroup" id="downloading_page_labels_width_group">

M gtk/ui/gtk3/RelocateDialog.ui => gtk/ui/gtk3/RelocateDialog.ui +2 -2
@@ 164,8 164,8 @@
      </object>
    </child>
    <action-widgets>
      <action-widget response="-6">cancel_button</action-widget>
      <action-widget response="-10">apply_button</action-widget>
      <action-widget response="cancel">cancel_button</action-widget>
      <action-widget response="apply">apply_button</action-widget>
    </action-widgets>
  </object>
</interface>

M gtk/ui/gtk3/StatsDialog.ui => gtk/ui/gtk3/StatsDialog.ui +1 -1
@@ 361,7 361,7 @@
    </child>
    <action-widgets>
      <action-widget response="1">reset_button</action-widget>
      <action-widget response="-7">close_button</action-widget>
      <action-widget response="close">close_button</action-widget>
    </action-widgets>
  </object>
  <object class="GtkSizeGroup" id="labels_width_group">

M gtk/ui/gtk3/TorrentUrlChooserDialog.ui => gtk/ui/gtk3/TorrentUrlChooserDialog.ui +2 -2
@@ 123,8 123,8 @@
      </object>
    </child>
    <action-widgets>
      <action-widget response="-6">cancel_button</action-widget>
      <action-widget response="-3">open_button</action-widget>
      <action-widget response="cancel">cancel_button</action-widget>
      <action-widget response="accept">open_button</action-widget>
    </action-widgets>
  </object>
</interface>

M gtk/ui/gtk4/AddTrackerDialog.ui => gtk/ui/gtk4/AddTrackerDialog.ui +2 -2
@@ 78,8 78,8 @@
      </object>
    </child>
    <action-widgets>
      <action-widget response="-6">cancel_button</action-widget>
      <action-widget response="-3">open_button</action-widget>
      <action-widget response="cancel">cancel_button</action-widget>
      <action-widget response="accept">open_button</action-widget>
    </action-widgets>
  </object>
</interface>

M gtk/ui/gtk4/DetailsDialog.ui => gtk/ui/gtk4/DetailsDialog.ui +1 -1
@@ 848,7 848,7 @@
      </object>
    </child>
    <action-widgets>
      <action-widget response="-7">close_button</action-widget>
      <action-widget response="close">close_button</action-widget>
    </action-widgets>
  </object>
  <object class="GtkSizeGroup" id="info_page_labels_width_group">

M gtk/ui/gtk4/EditTrackersDialog.ui => gtk/ui/gtk4/EditTrackersDialog.ui +2 -2
@@ 98,8 98,8 @@ To add a new primary URL, add it after a blank line.</property>
      </object>
    </child>
    <action-widgets>
      <action-widget response="-6">cancel_button</action-widget>
      <action-widget response="-3">save_button</action-widget>
      <action-widget response="cancel">cancel_button</action-widget>
      <action-widget response="accept">save_button</action-widget>
    </action-widgets>
  </object>
</interface>

M gtk/ui/gtk4/MakeDialog.ui => gtk/ui/gtk4/MakeDialog.ui +2 -2
@@ 295,8 295,8 @@ To add a new primary URL, add it after a blank line.</property>
      </object>
    </child>
    <action-widgets>
      <action-widget response="-7">close_button</action-widget>
      <action-widget response="-3">new_button</action-widget>
      <action-widget response="close">close_button</action-widget>
      <action-widget response="accept">new_button</action-widget>
    </action-widgets>
  </object>
  <object class="GtkSizeGroup" id="labels_width_group">

M gtk/ui/gtk4/MakeProgressDialog.ui => gtk/ui/gtk4/MakeProgressDialog.ui +3 -3
@@ 58,9 58,9 @@
      </object>
    </child>
    <action-widgets>
      <action-widget response="-6">cancel_button</action-widget>
      <action-widget response="-7">close_button</action-widget>
      <action-widget response="-3">add_button</action-widget>
      <action-widget response="cancel">cancel_button</action-widget>
      <action-widget response="close">close_button</action-widget>
      <action-widget response="accept">add_button</action-widget>
    </action-widgets>
  </object>
</interface>

M gtk/ui/gtk4/OptionsDialog.ui => gtk/ui/gtk4/OptionsDialog.ui +2 -2
@@ 190,8 190,8 @@
      </object>
    </child>
    <action-widgets>
      <action-widget response="-6">cancel_button</action-widget>
      <action-widget response="-3">open_button</action-widget>
      <action-widget response="cancel">cancel_button</action-widget>
      <action-widget response="accept">open_button</action-widget>
    </action-widgets>
  </object>
</interface>

M gtk/ui/gtk4/PrefsDialog.ui => gtk/ui/gtk4/PrefsDialog.ui +2 -2
@@ 1497,8 1497,8 @@ To add a new primary URL, add it after a blank line.</property>
      </object>
    </child>
    <action-widgets>
      <action-widget response="-11">help_button</action-widget>
      <action-widget response="-7">close_button</action-widget>
      <action-widget response="help">help_button</action-widget>
      <action-widget response="close">close_button</action-widget>
    </action-widgets>
  </object>
  <object class="GtkSizeGroup" id="downloading_page_labels_width_group">

M gtk/ui/gtk4/RelocateDialog.ui => gtk/ui/gtk4/RelocateDialog.ui +2 -2
@@ 107,8 107,8 @@
      </object>
    </child>
    <action-widgets>
      <action-widget response="-6">cancel_button</action-widget>
      <action-widget response="-10">apply_button</action-widget>
      <action-widget response="cancel">cancel_button</action-widget>
      <action-widget response="apply">apply_button</action-widget>
    </action-widgets>
  </object>
</interface>

M gtk/ui/gtk4/StatsDialog.ui => gtk/ui/gtk4/StatsDialog.ui +1 -1
@@ 260,7 260,7 @@
    </child>
    <action-widgets>
      <action-widget response="1">reset_button</action-widget>
      <action-widget response="-7">close_button</action-widget>
      <action-widget response="close">close_button</action-widget>
    </action-widgets>
  </object>
  <object class="GtkSizeGroup" id="labels_width_group">

M gtk/ui/gtk4/TorrentUrlChooserDialog.ui => gtk/ui/gtk4/TorrentUrlChooserDialog.ui +2 -2
@@ 78,8 78,8 @@
      </object>
    </child>
    <action-widgets>
      <action-widget response="-6">cancel_button</action-widget>
      <action-widget response="-3">open_button</action-widget>
      <action-widget response="cancel">cancel_button</action-widget>
      <action-widget response="accept">open_button</action-widget>
    </action-widgets>
  </object>
</interface>