Skip to content

Commit

Permalink
Added a connect to peer menu.
Browse files Browse the repository at this point in the history
git-svn-id: https://subversion.cs.uiuc.edu/svn/bang/eoh2009@78 69d76c3e-0761-0410-948c-9895a8bb34fc
  • Loading branch information
nbysani2 committed Jan 28, 2009
1 parent 9cd3aa9 commit 43b3f0a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions Makefile
Expand Up @@ -80,6 +80,7 @@ doc:
clean:
rm -f $(EXENAME) $(LOBJS) $(AOBJS) $(LIBRARIES)
rm -Rf doc/dox
rm menus.xml

commit:
git commit -a
Expand Down
5 changes: 3 additions & 2 deletions src/app/menus.c
Expand Up @@ -9,8 +9,9 @@ static const GtkActionEntry entries[] =
{ "EditMenuAction", NULL, "_Edit", "", "Edit functionality.", NULL },
{ "EditPreferencesAction", GTK_STOCK_PREFERENCES, "_Edit Prefrences", "<control>e", "Edit your prefrences.", NULL },

{ "ServerMenuAction", NULL, "_Server", "", "Control the bang server.", NULL },
{ "StartStopServerAction", GTK_STOCK_CONNECT, "_Start Server", "<control>s", "Start or stop the the server.", NULL }
{ "NetworkMenuAction", NULL, "_Network", "", "Control the bang networking.", NULL },
{ "StartStopServerAction", GTK_STOCK_CONNECT, "_Start Server", "<control>s", "Start or stop the the server.", NULL },
{ "ConnectPeerAction", GTK_STOCK_CONNECT, "_Connect to Peer", "<control>p", "Connect to a peer.", NULL }
};

static const guint n_entries = G_N_ELEMENTS(entries);
Expand Down
5 changes: 3 additions & 2 deletions src/app/menus.xml
Expand Up @@ -4,10 +4,11 @@
<menuitem name="OpenModule" action="OpenModuleAction" />
</menu>
<menu name="EditMenu" action="EditMenuAction">
<menuitem name="Edit Preferences" action="EditPreferencesAction" />
<menuitem name="EditPreferences" action="EditPreferencesAction" />
</menu>
<menu name="ServerMenu" action="ServerMenuAction">
<menu name="NetworkMenu" action="NetworkMenuAction">
<menuitem name="SSServer" action="StartStopServerAction" />
<menuitem name="ConnectPeer" action="ConnectPeerAction" />
</menu>
</menubar>
</ui>

0 comments on commit 43b3f0a

Please sign in to comment.