om =gtk_option_menu_new(); gtk_widget_show (om); gtk_box_pack_start (GTK_BOX (hb), om, FALSE, FALSE,0); g_object_set_data (G_OBJECT (spw),"fill-rule", om);/* 0 - nonzero 1 - evenodd */m = gtk_menu_new (); gtk_widget_show (m); mi = gtk_menu_item_new_with_l...
G_CALLBACK(status_icon_on_button_press),NULL);/* App menu */app_menu = gtk_menu_new(); menu = GTK_MENU_SHELL(app_menu);/* Settings menu */settings_menu = gtk_menu_new(); menu = GTK_MENU_SHELL(settings_menu);/* About */item =gtk_menu_item_new_with_mnemonic(_("_About"))...
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc OS.gtk_misc_set_alignment(labelHandle,0,0); int/*long*/boxHandle=gtk_box_new(OS.GTK_ORIENTATION_HORIZONTAL,false,0); if(boxHandle==0)error(SWT.ERROR_NO_HANDLES); if(OS.SWT_PADDED_MENU_ITEMS){...
boxHandle=gtk_box_new(OS.GTK_ORIENTATION_HORIZONTAL,false,6); if(boxHandle==0)error(SWT.ERROR_NO_HANDLES); 代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc if(labelHandle==0)error(SWT.ERROR_NO_HANDLES); boxHandle=gtk_box_new(OS.GTK_ORIENTATION_HORIZONTAL,false,6)...
menu_bar =gtk_menu_bar_new( ); file_menu = gtk_menu_new( ); file_open = gtk_menu_item_new_with_label("Open"); gtk_signal_connect_object( GTK_OBJECT( file_open ),"activate", GTK_SIGNAL_FUNC( show_open_dialog ),NULL);