[empathy: 3/53] Added Debug Window menu item.



commit 7e1d202225b540ed028343a5f882a2bb9c02f121
Author: Jonny Lamb <jonny lamb collabora co uk>
Date:   Sun Apr 19 19:29:41 2009 +0100

    Added Debug Window menu item.
    
    Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>
---
 src/empathy-main-window.c  |    9 +++++++++
 src/empathy-main-window.ui |    7 +++++++
 2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index b9993a8..9015a5d 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -55,6 +55,7 @@
 #include "ephy-spinner.h"
 #include "empathy-preferences.h"
 #include "empathy-about-dialog.h"
+#include "empathy-debug-dialog.h"
 #include "empathy-new-chatroom-dialog.h"
 #include "empathy-chatrooms-window.h"
 #include "empathy-event-manager.h"
@@ -921,6 +922,13 @@ main_window_help_about_cb (GtkAction         *action,
 }
 
 static void
+main_window_help_debug_cb (GtkAction         *action,
+			   EmpathyMainWindow *window)
+{
+	empathy_debug_dialog_new (GTK_WINDOW (window->window));
+}
+
+static void
 main_window_help_contents_cb (GtkAction         *action,
 			      EmpathyMainWindow *window)
 {
@@ -1128,6 +1136,7 @@ empathy_main_window_show (void)
 			      "edit_personal_information", "activate", main_window_edit_personal_information_cb,
 			      "edit_preferences", "activate", main_window_edit_preferences_cb,
 			      "help_about", "activate", main_window_help_about_cb,
+			      "help_debug", "activate", main_window_help_debug_cb,
 			      "help_contents", "activate", main_window_help_contents_cb,
 			      NULL);
 
diff --git a/src/empathy-main-window.ui b/src/empathy-main-window.ui
index cd45bc7..257b541 100644
--- a/src/empathy-main-window.ui
+++ b/src/empathy-main-window.ui
@@ -120,6 +120,12 @@
           <accelerator key="F1" modifiers=""/>
         </child>
         <child>
+          <object class="GtkAction" id="help_debug">
+            <property name="name">help_debug</property>
+            <property name="label" translatable="yes">_Debug Window</property>
+          </object>
+        </child>
+        <child>
           <object class="GtkAction" id="help_about">
             <property name="stock_id">gtk-about</property>
             <property name="name">help_about</property>
@@ -156,6 +162,7 @@
         </menu>
         <menu action="help">
           <menuitem action="help_contents"/>
+          <menuitem action="help_debug"/>
           <menuitem action="help_about"/>
         </menu>
       </menubar>



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