[gnome-applets] [stickynotes] fix missing titlebar menu, bug #601908



commit 436110c56184d02cb842f665aaf106f0fa90547c
Author: Neil Bird <neilbird src gnome org>
Date:   Sun Jul 18 12:19:50 2010 +0100

    [stickynotes] fix missing titlebar menu, bug #601908

 stickynotes/stickynotes.ui |   46 +++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 43 insertions(+), 3 deletions(-)
---
diff --git a/stickynotes/stickynotes.ui b/stickynotes/stickynotes.ui
index 16c3a29..3df4289 100644
--- a/stickynotes/stickynotes.ui
+++ b/stickynotes/stickynotes.ui
@@ -1,4 +1,5 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE gtk-builder SYSTEM "gtk-builder.dtd">
 <interface>
   <requires lib="gtk+" version="2.16"/>
   <!-- interface-naming-policy toplevel-contextual -->
@@ -16,7 +17,46 @@
     <property name="step_increment">10</property>
     <property name="page_increment">100</property>
   </object>
-  <object class="GtkUIManager" id="uimanager1"/>
+  <object class="GtkUIManager" id="uimanager1">
+    <child>
+      <object class="GtkActionGroup" id="actiongroup1">
+        <child>
+          <object class="GtkAction" id="popup_create">
+            <property name="name">popup_create</property>
+            <property name="label" translatable="yes">_New Note</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkAction" id="popup_destroy">
+            <property name="name">popup_destroy</property>
+            <property name="label" translatable="yes">_Delete Note...</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkToggleAction" id="popup_toggle_lock">
+            <property name="name">popup_toggle_lock</property>
+            <property name="label" translatable="yes">_Lock Note</property>
+          </object>
+        </child>
+        <child>
+          <object class="GtkAction" id="popup_properties">
+            <property name="name">popup_properties</property>
+            <property name="label" translatable="yes">_Properties</property>
+          </object>
+        </child>
+      </object>
+    </child>
+    <ui>
+      <popup name="stickynote_menu">
+        <menuitem action="popup_create"/>
+        <menuitem action="popup_destroy"/>
+        <separator/>
+        <menuitem action="popup_toggle_lock"/>
+        <separator/>
+        <menuitem action="popup_properties"/>
+      </popup>
+    </ui>
+  </object>
   <object class="GtkDialog" id="preferences_dialog">
     <property name="border_width">5</property>
     <property name="title" translatable="yes">Sticky Notes Preferences</property>
@@ -853,7 +893,7 @@
       </object>
     </child>
   </object>
-  <object class="GtkMenu" id="stickynote_menu"/>
+  <object class="GtkMenu" constructor="uimanager1" id="stickynote_menu"/>
   <object class="GtkDialog" id="stickynote_properties">
     <property name="border_width">5</property>
     <property name="title" translatable="yes">Sticky Note Properties</property>



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