Doesn't gtk_menu_ensure_uline_accel_group() work with pkg-config ?
- From: 조현상 <hscho newer co kr>
- To: <gtk-app-devel-list gnome org>
- Subject: Doesn't gtk_menu_ensure_uline_accel_group() work with pkg-config ?
- Date: Fri, 10 Jan 2003 16:44:00 +0900
Hi. All.
I am developing program with menu acceleration.
This is my code.
//*** code start
GtkWidget *menu_bar, *file_item, *separator, *file_menu, *exit_item;
GtkWidget *help_item, *help_menu, *what_item, *separator1, *about_item;
GtkWidget *plot_item;
GtkAccelGroup *file_accel_group;
guint key;
menu_bar = gtk_menu_bar_new();
file_menu = gtk_menu_new();
file_item = gtk_menu_item_new_with_label("File");
separator = gtk_menu_item_new();
exit_item = gtk_menu_item_new_with_label("");
help_menu = gtk_menu_new();
help_item = gtk_menu_item_new_with_label("help");
separator1 = gtk_menu_item_new();
what_item = gtk_menu_item_new_with_label("What's this ?");
about_item = gtk_menu_item_new_with_label("About my program");
plot_item = gtk_menu_item_new_with_label("Plot");
file_accel_group = gtk_menu_ensure_uline_accel_group(GTK_MENU(file_menu));
key = gtk_label_parse_uline(GTK_LABEL(GTK_BIN(exit_item)->child),"_Exit");
gtk_widget_add_accelerator(exit_item, "activate", file_accel_group,key, GDK_CONTROL_MASK,
GTK_ACCEL_VISIBLE);
//*** code end
I compiled my code according to tutorial for GTK+2.0, that is
cc `pkg-config --cflags --libs gtk+-2.0` hello.c -o hello
but, compiler generates error message
undefined reference to ‘gtk_menu_ensure_uline_accel_group’
It operated well (no error and the result execute program works well) with
cc hello.c -o hello `gtk-config --cflags --libs`
I want to use under-line menu acceleration with pkg-config.
What can I do ?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]