Adding support for showing/hiding menu bar.
parent
f89248a0c4
commit
8299227c23
|
@ -7,7 +7,7 @@
|
|||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* $Id: actions.cpp,v 1.1 2005-12-06 03:19:35 suwalski Exp $
|
||||
* $Id: actions.cpp,v 1.2 2005-12-11 21:25:53 suwalski Exp $
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
@ -434,6 +434,12 @@ void actionStarsFewer(GtkAction*, AppData* app)
|
|||
}
|
||||
|
||||
|
||||
void actionMenuBarVisible(GtkToggleAction* action, AppData* app)
|
||||
{
|
||||
g_object_set(G_OBJECT(app->mainMenu), "visible", gtk_toggle_action_get_active(action), NULL);
|
||||
}
|
||||
|
||||
|
||||
void actionMultiSplitH(GtkAction*, AppData* app)
|
||||
{
|
||||
app->core->splitView(View::HorizontalSplit);
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* $Id: actions.h,v 1.1 2005-12-06 03:19:35 suwalski Exp $
|
||||
* $Id: actions.h,v 1.2 2005-12-11 21:25:53 suwalski Exp $
|
||||
*/
|
||||
|
||||
#ifndef GTK_ACTIONS_H
|
||||
|
@ -47,6 +47,7 @@ void actionFullScreen(GtkAction*, AppData*);
|
|||
void actionViewOptions(GtkAction*, AppData*);
|
||||
void actionStarsMore(GtkAction*, AppData*);
|
||||
void actionStarsFewer(GtkAction*, AppData*);
|
||||
void actionMenuBarVisible(GtkToggleAction*, AppData*);
|
||||
void actionMultiSplitH(GtkAction*, AppData*);
|
||||
void actionMultiSplitV(GtkAction*, AppData*);
|
||||
void actionMultiCycle(GtkAction*, AppData*);
|
||||
|
|
|
@ -92,13 +92,14 @@
|
|||
<menuitem action='AmbientLow'/>
|
||||
<menuitem action='AmbientMedium'/>
|
||||
</menu>
|
||||
<separator/>
|
||||
<separator/>
|
||||
<menuitem action='StarsMore'/>
|
||||
<menuitem action='StarsFewer'/>
|
||||
</menu>
|
||||
<menu action='WindowMenu'>
|
||||
<menuitem action='ViewerSize'/>
|
||||
<menuitem action='FullScreen'/>
|
||||
<menuitem action='MenuBarVisible'/>
|
||||
<separator/>
|
||||
<menuitem action='MultiSplitH'/>
|
||||
<menuitem action='MultiSplitV'/>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* $Id: ui.h,v 1.1 2005-12-06 03:19:36 suwalski Exp $
|
||||
* $Id: ui.h,v 1.2 2005-12-11 21:25:53 suwalski Exp $
|
||||
*/
|
||||
|
||||
#ifndef GTK_UI_H
|
||||
|
@ -88,7 +88,8 @@ static const GtkActionEntry actionsPlain[] = {
|
|||
/* Regular Checkbox Actions */
|
||||
static const GtkToggleActionEntry actionsToggle[] = {
|
||||
{ "TimeLocal", NULL, "Show _Local Time", NULL, NULL, G_CALLBACK(actionTimeLocal), FALSE },
|
||||
{ "FullScreen", GTK_STOCK_FULLSCREEN, "Full Screen", "<alt>Return", NULL, G_CALLBACK(actionFullScreen), FALSE },
|
||||
{ "FullScreen", GTK_STOCK_FULLSCREEN, "_Full Screen", "<alt>Return", NULL, G_CALLBACK(actionFullScreen), FALSE },
|
||||
{ "MenuBarVisible", NULL, "_Menu Bar", "<control>M", NULL, G_CALLBACK(actionMenuBarVisible), TRUE },
|
||||
{ "MultiShowFrames", NULL, "Show _Frames", NULL, NULL, G_CALLBACK(actionMultiShowFrames), FALSE },
|
||||
{ "MultiShowActive", NULL, "Active Frame Highlighted", NULL, NULL, G_CALLBACK(actionMultiShowActive), FALSE },
|
||||
{ "MultiSyncTime", NULL, "Synchronize _Time", NULL, NULL, G_CALLBACK(actionMultiSyncTime), FALSE },
|
||||
|
|
Loading…
Reference in New Issue