[gitg/wip/sindhus/interactive-rebase] Add close button to result dialog



commit e31517a3986044eb21b384b1cb310998a47da3ba
Author: Sindhu S <sindhus live in>
Date:   Fri Sep 13 20:47:14 2013 +0530

    Add close button to result dialog

 gitg/gitg-rebase-result-dialog.vala         |    4 +++-
 gitg/gitg-rebase-start-dialog.vala          |    4 ++--
 gitg/resources/gitg-rebase-result-dialog.ui |    2 +-
 3 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/gitg/gitg-rebase-result-dialog.vala b/gitg/gitg-rebase-result-dialog.vala
index 05e2b5c..93c0155 100644
--- a/gitg/gitg-rebase-result-dialog.vala
+++ b/gitg/gitg-rebase-result-dialog.vala
@@ -33,8 +33,10 @@ namespace Gitg
                        r_result_output.buffer.set_text(output);
                }
 
-               public void return_to_gitg()
+               public override void response(int id)
                {
+                       destroy();
                }
+
        }
 }
\ No newline at end of file
diff --git a/gitg/gitg-rebase-start-dialog.vala b/gitg/gitg-rebase-start-dialog.vala
index 67ceca5..d925577 100644
--- a/gitg/gitg-rebase-start-dialog.vala
+++ b/gitg/gitg-rebase-start-dialog.vala
@@ -33,7 +33,8 @@ namespace Gitg
                        repository_path = workdir.get_path();
                }
 
-               public override void response(int id) {
+               public override void response(int id)
+               {
                        if (id == Gtk.ResponseType.OK)
                        {
                                var rebase_controller = new RebaseController(repository_path);
@@ -45,6 +46,5 @@ namespace Gitg
                        destroy();
                }
 
-
        }
 }
\ No newline at end of file
diff --git a/gitg/resources/gitg-rebase-result-dialog.ui b/gitg/resources/gitg-rebase-result-dialog.ui
index 675600f..56659db 100644
--- a/gitg/resources/gitg-rebase-result-dialog.ui
+++ b/gitg/resources/gitg-rebase-result-dialog.ui
@@ -16,7 +16,7 @@
             <property name="layout_style">end</property>
             <child>
               <object class="GtkButton" id="rebase_result_ok">
-                <property name="label" translatable="yes">button</property>
+                <property name="label" translatable="yes">Close</property>
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
                 <property name="receives_default">True</property>


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