[gitg/wip/sindhus/interactive-rebase] Add a rebase result dialog



commit 5c49d8c2d69ccabe67e423549d9707b0ba6d3597
Author: Sindhu S <sindhus live in>
Date:   Wed Sep 11 20:13:52 2013 +0530

    Add a rebase result dialog

 gitg/Makefile.am                    |    1 +
 gitg/gitg-rebase-result-dialog.vala |   50 +++++++++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+), 0 deletions(-)
---
diff --git a/gitg/Makefile.am b/gitg/Makefile.am
index e99b9a0..0e6404e 100644
--- a/gitg/Makefile.am
+++ b/gitg/Makefile.am
@@ -45,6 +45,7 @@ VALASOURCES =                                                 \
        gitg-rebase-list-box.vala                               \
        gitg-rebase-parser.vala                                 \
        gitg-rebase-window.vala                                 \
+       gitg-rebase-result-dialog.vala                  \
        gitg-rebase-controller.vala                             \
        gitg-rebase-commit-editor-window.vala   \
        gitg-application.vala                                   \
diff --git a/gitg/gitg-rebase-result-dialog.vala b/gitg/gitg-rebase-result-dialog.vala
new file mode 100644
index 0000000..510a679
--- /dev/null
+++ b/gitg/gitg-rebase-result-dialog.vala
@@ -0,0 +1,50 @@
+/*
+ * This file is part of gitg
+ *
+ * Copyright (C) 2013 - Sindhu S
+ *
+ * gitg is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * gitg is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with gitg. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+namespace Gitg
+{
+       public class RebaseResultDialog: Gtk.Dialog
+       {
+               private Gtk.TextView output_view;
+
+               public RebaseResultDialog()
+               {
+                       this.title = "Rebase Result";
+                       output_view = new Gtk.TextView();
+                       var hbox = new Gtk.Box (Gtk.Orientation.VERTICAL, 1);
+                       hbox.homogeneous = true;
+                       hbox.add (output_view);
+                       var ok_button = new Gtk.Button();
+                       ok_button.label = "Return to gitg";
+                       ok_button.clicked.connect(return_to_gitg);
+                       hbox.add(ok_button);
+                       add (hbox)
+               }
+
+               public void set_rebase_output(string output)
+               {
+                       output_view.buffer.set_text(output);
+               }
+
+               public void return_to_gitg()
+               {
+
+               }
+       }
+}
\ No newline at end of file


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]