summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Bird <neilbird@src.gnome.org>2010-07-18 12:19:50 +0100
committerNeil Bird <neilbird@src.gnome.org>2010-07-18 21:11:05 +0100
commit436110c56184d02cb842f665aaf106f0fa90547c (patch)
tree107ce9a8beffbeab4473f179c39c0f0eae141057
parent4cbd3f60135b4adb092948960c941ecc7858f20a (diff)
[stickynotes] fix missing titlebar menu, bug #601908
-rw-r--r--stickynotes/stickynotes.ui46
1 files changed, 43 insertions, 3 deletions
diff --git a/stickynotes/stickynotes.ui b/stickynotes/stickynotes.ui
index 16c3a2954..3df4289f9 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>