unit-menu.cpp revision 18a6bbc590e5390fc822b0d84dabdb07921f6a3e
335N/A#define __SP_UNIT_MENU_C__
335N/A#define noUNIT_SELECTOR_VERBOSE
335N/A#ifdef HAVE_CONFIG_H
335N/A#include "helper/sp-marshal.h"
335N/A#include "helper/unit-menu.h"
335N/A#include "widgets/spw-utilities.h"
335N/Astruct SPUnitSelector {
struct SPUnitSelectorClass {
if (!type) {
sizeof(SPUnitSelectorClass),
sizeof(SPUnitSelector),
return type;
gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (us->combo_box), renderer, "text", COMBO_COL_LABEL, NULL);
SPUnit const *
#ifdef UNIT_SELECTOR_VERBOSE
if ( !consumed
#ifdef UNIT_SELECTOR_VERBOSE
#ifdef UNIT_SELECTOR_VERBOSE
gint p = 0;
// i = gtk_menu_item_new_with_label((us->abbr) ? (us->plural) ? u->abbr_plural : u->abbr : (us->plural) ? u->plural : u->name);
pos = p;