mainmenu.c: consistent indentation
This commit is contained in:
parent
2a361fec55
commit
04665b6453
@ -68,7 +68,8 @@ static gchar *_menu_translate(const gchar *path, gpointer data) {
|
||||
return gettext(path);
|
||||
}
|
||||
|
||||
void menu_get_main(GtkWidget *window, GtkWidget **menubar) {
|
||||
void menu_get_main(GtkWidget *window, GtkWidget **menubar)
|
||||
{
|
||||
GtkAccelGroup *accel_group;
|
||||
|
||||
_action_group = gtk_action_group_new("MenuActions");
|
||||
@ -83,14 +84,16 @@ void menu_get_main(GtkWidget *window, GtkWidget **menubar) {
|
||||
*menubar = gtk_ui_manager_get_widget(_ui_manager, "/MainMenu");
|
||||
}
|
||||
|
||||
void _menu_set_sensitive(const gchar *path, gboolean sensitive) {
|
||||
void _menu_set_sensitive(const gchar *path, gboolean sensitive)
|
||||
{
|
||||
GtkWidget *widget;
|
||||
|
||||
widget = gtk_ui_manager_get_widget(_ui_manager, path);
|
||||
gtk_widget_set_sensitive(widget, sensitive);
|
||||
}
|
||||
|
||||
void menu_set_sensitive_undo(gboolean sensitive) {
|
||||
void menu_set_sensitive_undo(gboolean sensitive)
|
||||
{
|
||||
_menu_set_sensitive("/MainMenu/EditMenu/Undo", sensitive);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user