Home page logo
/

wireshark logo Wireshark mailing list archives

Re: I want to add a menuitem in statistics menu, what should i do?
From: "??????????" <237825552 () qq com>
Date: Tue, 18 Mar 2014 23:50:51 +0800

and I modified the name of other menuitem both place,it appears to be the same as before.




------------------ Original ------------------
From:  "Anders Broman";<anders.broman () ericsson com>;
Date:  Tue, Mar 18, 2014 11:37 PM
To:  "Developer support list for Wireshark"<wireshark-dev () wireshark org>; 

Subject:  Re: [Wireshark-dev] I want to add a menuitem in statistics menu,what should i do?



  
Hi,
 
By the file names it sounds like you are working against an older release that stuff is now in 
 
Ui/gtk/ main_menubar.c
 
 
 
 
 
I don??t remember when we got rid of the deprecated ...factory.. stuff but assuming it??s
 
 
 
static const GtkActionEntry main_menu_bar_entries[] = {
 
 
 
make sure the action name
 
 
 
static const char *ui_desc_menubar =
 
"<ui>\n"
 
"  <menubar name ='Menubar'>\n"
 
"    <menu name= 'FileMenu' action='/File'>\n"
 
                                     ^^^
 
 
 
Matches
 
static const GtkActionEntry main_menu_bar_entries[] = {
 
  /* Top level */
 
  { "/File",                    NULL,                              "_File",              NULL,                   NULL,  
         NULL },
 
      ^^^
 
 
 
Regards
 
Anders
 
 
 
From: wireshark-dev-bounces () wireshark org  [mailto:wireshark-dev-bounces () wireshark org] On Behalf Of ?????
 Sent: den 18 mars 2014 16:22
 To: wireshark-dev
 Subject: [Wireshark-dev] I want to add a menuitem in statistics menu, what should i do?
 
 
 
I just want to add a menuitem in statistics menu,what should i do?
  
I modified the ui_desc_menubar string  in gtk/menus.c  and a item in main_menu_bar_entries in gtk/menus.c,but it din't 
function well,what should i do ?
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]