]> git.0d.be Git - empathy.git/commitdiff
Refactor app menu as per design decision
authorDanielle Madeley <danielle.madeley@collabora.co.uk>
Tue, 15 May 2012 03:27:29 +0000 (13:27 +1000)
committerDanielle Madeley <danielle.madeley@collabora.co.uk>
Tue, 15 May 2012 10:40:27 +0000 (20:40 +1000)
src/empathy-roster-window-menubar.ui
src/empathy-roster-window.c

index 3e18306c45b27ad8381a7bd901e3c0e404159bb5..47dc4ee2509b431aa8b7704c29169e25de8fc246 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <!--*- mode: xml -*-->
 <interface>
-  <menu id="menubutton">
+  <menu id="appmenu">
       <section>
         <item>
           <attribute translatable="yes" name="label">_New Conversation...</attribute>
           <attribute translatable="yes" name="accel">&lt;Primary&gt;m</attribute>
         </item>
       </section>
-      <section>
-        <item>
-          <attribute translatable="yes" name="label">_Add Contacts...</attribute>
-          <attribute translatable="yes" name="action">win.chat_add_contact</attribute>
-        </item>
-        <item>
-          <attribute translatable="yes" name="label">_Search for Contacts...</attribute>
-          <attribute translatable="yes" name="action">win.chat_search_contacts</attribute>
-          <attribute translatable="yes" name="accel">&lt;Shift&gt;f</attribute>
-        </item>
-      </section>
-      <section>
-        <item>
-          <attribute translatable="yes" name="label">Edit _Accounts</attribute>
-          <attribute translatable="yes" name="action">win.edit_accounts</attribute>
-          <attribute translatable="yes" name="accel">F4</attribute>
-        </item>
-        <item>
-          <attribute translatable="yes" name="label">Edit _Blocked Contacts</attribute>
-          <attribute translatable="yes" name="action">win.edit_blocked_contacts</attribute>
-        </item>
-      </section>
+      <submenu>
+        <attribute translatable="yes" name="label">Contacts</attribute>
+        <section>
+          <item>
+            <attribute translatable="yes" name="label">_Add Contacts...</attribute>
+            <attribute translatable="yes" name="action">win.chat_add_contact</attribute>
+          </item>
+          <item>
+            <attribute translatable="yes" name="label">_Search for Contacts...</attribute>
+            <attribute translatable="yes" name="action">win.chat_search_contacts</attribute>
+            <attribute translatable="yes" name="accel">&lt;Shift&gt;f</attribute>
+          </item>
+        </section>
+        <section>
+          <item>
+            <attribute translatable="yes" name="label">_Blocked Contacts</attribute>
+            <attribute translatable="yes" name="action">win.edit_blocked_contacts</attribute>
+          </item>
+        </section>
+      </submenu>
+      <submenu>
+        <attribute translatable="yes" name="label">_Rooms</attribute>
+        <section>
+          <item>
+            <attribute translatable="yes" name="label">_Join...</attribute>
+            <attribute translatable="yes" name="action">win.room_join_new</attribute>
+          </item>
+          <item>
+            <attribute translatable="yes" name="label">Join _Favorites</attribute>
+            <attribute translatable="yes" name="action">win.room_join_favorites</attribute>
+            <attribute translatable="yes" name="accel">F5</attribute>
+          </item>
+        </section>
+        <item>
+          <link name="section" id="rooms"/>
+        </item>
+        <section>
+          <item>
+            <attribute translatable="yes" name="label">_Manage Favorites</attribute>
+            <attribute translatable="yes" name="action">win.room_manage_favorites</attribute>
+          </item>
+        </section>
+      </submenu>
       <section>
         <item>
           <attribute translatable="yes" name="label">_Previous Conversations</attribute>
           <attribute translatable="yes" name="label">_File Transfers</attribute>
           <attribute translatable="yes" name="action">win.view_show_ft_manager</attribute>
         </item>
-        <item>
-          <attribute translatable="yes" name="label">Contacts on a _Map</attribute>
-          <attribute translatable="yes" name="action">win.view_show_map</attribute>
-        </item>
       </section>
-    <submenu>
-      <attribute translatable="yes" name="label">_Room</attribute>
       <section>
         <item>
-          <attribute translatable="yes" name="label">_Join...</attribute>
-          <attribute translatable="yes" name="action">win.room_join_new</attribute>
-        </item>
-        <item>
-          <attribute translatable="yes" name="label">Join _Favorites</attribute>
-          <attribute translatable="yes" name="action">win.room_join_favorites</attribute>
-          <attribute translatable="yes" name="accel">F5</attribute>
+          <attribute translatable="yes" name="label">_Accounts</attribute>
+          <attribute translatable="yes" name="action">win.edit_accounts</attribute>
+          <attribute translatable="yes" name="accel">F4</attribute>
         </item>
-      </section>
-      <item>
-        <link name="section" id="rooms"/>
-      </item>
-      <section>
         <item>
-          <attribute translatable="yes" name="label">_Manage Favorites</attribute>
-          <attribute translatable="yes" name="action">win.room_manage_favorites</attribute>
+          <attribute translatable="yes" name="label">P_references</attribute>
+          <attribute translatable="yes" name="action">win.edit_preferences</attribute>
         </item>
       </section>
-    </submenu>
       <section>
         <item>
           <attribute translatable="yes" name="label">Help</attribute>
           <attribute translatable="yes" name="accel">F1</attribute>
         </item>
         <item>
-          <attribute translatable="yes" name="label">Debug</attribute>
-          <attribute translatable="yes" name="action">win.help_debug</attribute>
-        </item>
-        <item>
-          <attribute translatable="yes" name="label">About</attribute>
+          <attribute translatable="yes" name="label">About Empathy</attribute>
           <attribute translatable="yes" name="action">win.help_about</attribute>
         </item>
-      </section>
-      <section>
-        <item>
-          <attribute translatable="yes" name="label">P_references</attribute>
-          <attribute translatable="yes" name="action">win.edit_preferences</attribute>
-        </item>
        <item>
-         <attribute translatable="yes" name="label">Close</attribute>
+          <attribute translatable="yes" name="label">_Quit</attribute>
          <attribute translatable="yes" name="action">win.chat_quit</attribute>
          <attribute translatable="yes" name="accel">&lt;Primary&gt;q</attribute>
        </item>
index 4c199297954e2927fc478f9b05da8b3cd4e63678..fe61397422ecde530d233a63d95e59c9738c67b1 100644 (file)
@@ -2188,7 +2188,7 @@ empathy_roster_window_init (EmpathyRosterWindow *self)
 
   filename = empathy_file_lookup ("empathy-roster-window-menubar.ui", "src");
   gui = empathy_builder_get_file (filename,
-      "menubutton", &self->priv->menumodel,
+      "appmenu", &self->priv->menumodel,
       "rooms", &self->priv->rooms_section,
       NULL);
   g_free (filename);