The menubar is not used in embedded mode (disables accelerators though)
This commit is contained in:
parent
c5b24e9a71
commit
8bd591944f
@ -400,12 +400,16 @@ void on_fullscreen(GtkToggleToolButton * button, gpointer data)
|
||||
|
||||
if(gtk_toggle_tool_button_get_active(button))
|
||||
{
|
||||
#ifndef FOR_EMBEDDED
|
||||
gtk_widget_hide(surfer->menubar);
|
||||
#endif
|
||||
gtk_window_fullscreen(GTK_WINDOW(surfer->window));
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifndef FOR_EMBEDDED
|
||||
gtk_widget_show(surfer->menubar);
|
||||
#endif
|
||||
gtk_window_unfullscreen(GTK_WINDOW(surfer->window));
|
||||
}
|
||||
}
|
||||
|
@ -44,7 +44,9 @@ typedef struct _Surfer
|
||||
/* widgets */
|
||||
/* main window */
|
||||
GtkWidget * window;
|
||||
#ifndef FOR_EMBEDDED
|
||||
GtkWidget * menubar;
|
||||
#endif
|
||||
GtkToolItem * tb_back;
|
||||
GtkToolItem * tb_forward;
|
||||
GtkToolItem * tb_stop;
|
||||
|
Loading…
Reference in New Issue
Block a user