After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 637786 - Context menu
Context menu
Status: RESOLVED DUPLICATE of bug 606831
Product: devhelp
Classification: Applications
Component: General
2.32.x
Other Linux
: Normal normal
: ---
Assigned To: devhelp-maint
devhelp-maint
Depends on:
Blocks:
 
 
Reported: 2010-12-21 21:29 UTC by Voldemar Khramtsov
Modified: 2012-03-12 18:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to create a popup menu. (4.01 KB, patch)
2010-12-21 21:29 UTC, Voldemar Khramtsov
none Details | Review

Description Voldemar Khramtsov 2010-12-21 21:29:20 UTC
Created attachment 176868 [details] [review]
Patch to create a popup menu.

I had to the context menu. Maybe it will take to someone else. In attachment a patch to the popup menu in the main window
Comment 1 Voldemar Khramtsov 2010-12-21 21:49:30 UTC
Comment on attachment 176868 [details] [review]
Patch to create a popup menu.

--- modified file 'data/ui/window.ui'
--- data/ui/window.ui	2010-08-02 23:29:52.000000000 +0900
+++ data/ui/window.ui	2010-12-22 06:41:51.430000010 +0900
@@ -38,6 +38,17 @@
     </menu>
   </menubar>
 
+  <popup name="PopUp">    
+    <menuitem action="Back"/>    
+    <menuitem action="Forward"/>    
+    <separator/>    
+    <menuitem action="Copy"/>    
+    <menuitem action="Find"/>    
+    <separator/>    
+    <menuitem action="ZoomIn"/>    
+    <menuitem action="ZoomOut"/>  
+  </popup>  
+
   <toolbar name="Toolbar">
     <toolitem action="Back"/>
     <toolitem action="Forward"/>
--- modified file 'src/dh-window.c'
--- src/dh-window.c	2010-08-02 23:32:49.000000000 +0900
+++ src/dh-window.c	2010-12-22 06:45:41.656666677 +0900
@@ -1443,6 +1443,14 @@
                                        DhWindow       *window)
 {
         if (event->button == 3) {
+                DhWindowPriv  *priv;                
+                GtkWidget *menu;                
+                
+                priv = window->priv;                
+                menu = gtk_ui_manager_get_widget(priv->manager, "/PopUp");                
+                gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL,                                                
+                                            event->button, event->time);
+                
                 return TRUE;
         }
Comment 2 Javier Jardón (IRC: jjardon) 2012-03-12 18:38:08 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 606831 ***