Gtk_Menu NOT drawn ...
- From: Mike Flouris <flouris csi forth gr>
- To: gtk-list redhat com
- Subject: Gtk_Menu NOT drawn ...
- Date: Sun, 29 Mar 1998 16:59:37 +0300
Hi,
I'm building a simple application with GTK+
and I'm using some menus (not with MenuFactory).
The problem is that when I click on them they
are not drawn the first time, only when I click
on another menu and then reclick on them ...
The code looks like :
------------------------------
GtkWidget *menu;
GtkWidget *menubar;
GtkWidget *menuitem;
menubar = gtk_menu_bar_new();
gtk_widget_set_usize(menubar, 30, 30);
gtk_container_border_width (GTK_CONTAINER (menubar), 2);
menu = gtk_menu_new();
gtk_widget_show (menu);
menuitem = gtk_menu_item_new_with_label ("New...");
gtk_menu_append(GTK_MENU (menu), menuitem);
gtk_signal_connect(GTK_OBJECT(menuitem), "activate",
GTK_SIGNAL_FUNC (new_proj_handler), NULL);
gtk_widget_show(menuitem);
menuitem = gtk_menu_item_new_with_label ("File");
gtk_menu_item_set_submenu (GTK_MENU_ITEM (menuitem), menu);
gtk_menu_bar_append (GTK_MENU_BAR (menubar), menuitem);
gtk_widget_show (menuitem);
---------------------------
Does anybody know what I'm doing wrong ???
Do I have to use MenuFactory ??
Thanx,
Mike &
--
////
(@ @)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-oOO-\O/-OOo-=-=-=-=
Mike D. Flouris - Institute of Computer Science
Foundation for Research & Technology, Hellas.
http://www.ics.forth.gr/~flouris
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]