[gnome-boxes/wip/ricotz/syntax: 2/3] Don't define identical delegates
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/wip/ricotz/syntax: 2/3] Don't define identical delegates
- Date: Mon, 28 May 2018 12:04:49 +0000 (UTC)
commit def37281d5be50823c78063bff4c4803609c4ae8
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Thu May 24 17:30:06 2018 +0200
Don't define identical delegates
Drop duplicates of DownloadChosenFunc and FileChosenFunc
src/properties-window.vala | 4 ++--
src/wizard-downloads-page.vala | 3 ++-
src/wizard-window.vala | 3 ---
3 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/properties-window.vala b/src/properties-window.vala
index 3a82db8f..b356e3b4 100644
--- a/src/properties-window.vala
+++ b/src/properties-window.vala
@@ -7,12 +7,12 @@
FILE_CHOOSER,
}
+public delegate void Boxes.FileChosenFunc (string path);
+
[GtkTemplate (ui = "/org/gnome/Boxes/ui/properties-window.ui")]
private class Boxes.PropertiesWindow: Gtk.Window, Boxes.UI {
public const string[] page_names = { "main", "troubleshoot_log", "file_chooser" };
- public delegate void FileChosenFunc (string path);
-
public UIState previous_ui_state { get; protected set; }
public UIState ui_state { get; protected set; }
diff --git a/src/wizard-downloads-page.vala b/src/wizard-downloads-page.vala
index 452ae4fd..3e3fbd65 100644
--- a/src/wizard-downloads-page.vala
+++ b/src/wizard-downloads-page.vala
@@ -6,12 +6,13 @@
NO_RESULTS,
}
+public delegate void Boxes.DownloadChosenFunc (Boxes.WizardDownloadableEntry entry);
+
[GtkTemplate (ui = "/org/gnome/Boxes/ui/wizard-downloads-page.ui")]
public class Boxes.WizardDownloadsPage : Gtk.Stack {
private OSDatabase os_db = new OSDatabase ();
public DownloadsSearch search { private set; get; }
- public delegate void DownloadChosenFunc (WizardDownloadableEntry entry);
public DownloadChosenFunc download_chosen_func;
[GtkChild]
diff --git a/src/wizard-window.vala b/src/wizard-window.vala
index 63ec64a3..2104f6ee 100644
--- a/src/wizard-window.vala
+++ b/src/wizard-window.vala
@@ -12,9 +12,6 @@
private class Boxes.WizardWindow : Gtk.Window, Boxes.UI {
public const string[] page_names = { "main", "customization", "file_chooser", "downloads" };
- public delegate void FileChosenFunc (string uri);
- public delegate void DownloadChosenFunc (WizardDownloadableEntry entry);
-
public HashTable<string,Osinfo.Os> logos_table;
public UIState previous_ui_state { get; protected set; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]