Back to index

indicator-appmenu  12.10.0
Functions
gtkmodelmenu.h File Reference
#include "gactionobservable.h"
#include <gtk/gtk.h>
#include <gio/gio.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

G_GNUC_INTERNAL GtkWidget * gtk_model_menu_create_menu_bar (GMenuModel *model, GActionObservable *actions, GtkAccelGroup *accels)
G_GNUC_INTERNAL GtkWidget * gtk_model_menu_create_menu (GMenuModel *model, GActionObservable *actions, GtkAccelGroup *accels)

Function Documentation

G_GNUC_INTERNAL GtkWidget* gtk_model_menu_create_menu ( GMenuModel *  model,
GActionObservable *  actions,
GtkAccelGroup *  accels 
)

Definition at line 257 of file gtkmodelmenu.c.

{
  GtkWidget *menu;

  menu = gtk_menu_new ();

  gtk_model_menu_bind (GTK_MENU_SHELL (menu), model, TRUE);
  gtk_model_menu_populate (GTK_MENU_SHELL (menu), actions, accels);

  return menu;
}

Here is the call graph for this function:

Here is the caller graph for this function:

G_GNUC_INTERNAL GtkWidget* gtk_model_menu_create_menu_bar ( GMenuModel *  model,
GActionObservable *  actions,
GtkAccelGroup *  accels 
)