Main Page   File List   Globals   Related Pages  

gui_menu.c File Reference

the menubar widget and related functions. More...

#include <gtk/gtk.h>
#include "gui_dict.h"

Go to the source code of this file.

Functions

void gui_menu_append_item (GtkMenu *menu, char *label, GtkSignalFunc cb, gpointer data)
 appends a new menu item to a menu. More...

GtkWidget * gui_menu_file_new ()
 The File menu widget. More...

GtkWidget * gui_menu_dict_new ()
 creates a new Dictionary menu. More...

GtkWidget * gui_menu_mini_dict_new ()
 Creates a Mini dictionary menu. More...

void gui_menu_to_menubar (GtkMenuBar *bar, char *label, GtkWidget *menu)
 adds a menu to the menubar. More...

GtkWidget * gui_menu_mainmenu_new ()
 creates the main menubar. More...


Detailed Description

the menubar widget and related functions.

Definition in file gui_menu.c.


Function Documentation

void gui_menu_append_item GtkMenu *    menu,
char *    label,
GtkSignalFunc    cb,
gpointer    data
 

appends a new menu item to a menu.

the function appends a new item with the specified label and connects a signal with specified user data to the activate event of the menu item if the callback function is not NULL.

Parameters:
menu  the menu widget for the menu item to add into.
label  the label of the menu item.
cb  the call back function.
data  the user data passed to the callback function.

Definition at line 19 of file gui_menu.c.

Referenced by gui_menu_dict_new(), gui_menu_file_new(), and gui_menu_mini_dict_new().

GtkWidget* gui_menu_dict_new  
 

creates a new Dictionary menu.

See also:
gui_dict_open_cb() , gui_dict_close_cb() , gui_menu_append_item()

Definition at line 53 of file gui_menu.c.

References gui_menu_append_item().

Referenced by gui_menu_mainmenu_new().

GtkWidget* gui_menu_file_new  
 

The File menu widget.

Returns:
the file menu widget.
See also:
gui_menu_append_item()

Definition at line 36 of file gui_menu.c.

References gui_menu_append_item().

Referenced by gui_menu_mainmenu_new().

GtkWidget* gui_menu_mainmenu_new  
 

creates the main menubar.

The menubar contains:

See also:
gui_menu_file_new() , gui_menu_dict_new() , gui_menu_mini_dict_new()

Definition at line 112 of file gui_menu.c.

References gui_menu_dict_new(), gui_menu_file_new(), gui_menu_mini_dict_new(), and gui_menu_to_menubar().

Referenced by top_window_new().

GtkWidget* gui_menu_mini_dict_new  
 

Creates a Mini dictionary menu.

Its menu items are (not yet implemented) are:

Returns:
the mini dict menu
See also:
gui_menu_append_item()

Definition at line 72 of file gui_menu.c.

References gui_menu_append_item().

Referenced by gui_menu_mainmenu_new().

void gui_menu_to_menubar GtkMenuBar *    bar,
char *    label,
GtkWidget *    menu
 

adds a menu to the menubar.

Parameters:
bar  the menubar
label  the label for the menu
menu  the menu

Definition at line 94 of file gui_menu.c.

Referenced by gui_menu_mainmenu_new().


Generated on Tue Jun 25 12:02:42 2002 for LearnWords by doxygen1.2.15