/* * e-cell-number.c - Number item for e-table. * Copyright 2001, Ximian, Inc. * * Authors: * Chris Lahey * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License, version 2, as published by the Free Software Foundation. * * This library is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #include #include #include #include "e-util/e-i18n.h" #include "e-util/e-util.h" #include "e-cell-number.h" #define PARENT_TYPE e_cell_text_get_type () static ECellTextClass *parent_class; static char * ecn_get_text(ECellText *cell, ETableModel *model, int col, int row) { return e_format_number(GPOINTER_TO_INT (e_table_model_value_at(model, col, row))); } static void ecn_free_text(ECellText *cell, char *text) { g_free(text); } static void e_cell_number_class_init (GtkObjectClass *object_class) { ECellTextClass *ectc = (ECellTextClass *) object_class; parent_class = g_type_class_ref (PARENT_TYPE); ectc->get_text = ecn_get_text; ectc->free_text = ecn_free_text; } static void e_cell_number_init (GtkObject *object) { } /** * e_cell_number_new: * @fontname: font to be used to render on the screen * @justify: Justification of the string in the cell. * * Creates a new ECell renderer that can be used to render numbers that * that come from the model. The value returned from the model is * interpreted as being an int. * * See ECellText for other features. * * Returns: an ECell object that can be used to render numbers. */ ECell * e_cell_number_new (const char *fontname, GtkJustification justify) { ECellNumber *ecn = g_object_new (E_CELL_NUMBER_TYPE, NULL); e_cell_text_construct(E_CELL_TEXT(ecn), fontname, justify); return (ECell *) ecn; } E_MAKE_TYPE(e_cell_number, "ECellNumber", ECellNumber, e_cell_number_class_init, e_cell_number_init, PARENT_TYPE) n> FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* textproc/gi-docgen: rename to textproc/py-gi-docgenTobias C. Berner2021-05-281-1/+2
* x11-toolkits/pango: fix DOCS optionSergey Akhmatov2021-05-281-2/+2
* x11-toolkits/pango: Update to 1.48.4Neel Chauhan2021-05-251-6/+5
* Remove # $FreeBSD$ from Makefiles.Mathieu Arnold2021-04-061-1/+0
* x11/toolcits-pango: Actually apply security patchNiclas Zeising2020-09-261-1/+1
* Move some gnome@ ports to desktop@Tobias C. Berner2020-09-111-1/+1
* SECURITY UPDATE: Buffer overflowJochen Neumeister2020-07-241-1/+1
* Sprinkle some more USES=xorgNiclas Zeising2019-11-081-0/+1
* Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2019-07-271-1/+1
* Rename the GTKDOC option to DOCS.Mathieu Arnold2019-05-071-5/+4
* Bump PORTREVISION for ports depending on the canonical version of GCCGerald Pfeifer2018-12-121-0/+1
* To fix undefined reference to `__cxa_throw_bad_array_new_length@CXXABI_1.3.8',Mark Linimon2018-12-061-1/+1
* The FreeBSD GNOME team proudly presents GNOME 3.28 for FreeBSD.Koop Mast2018-09-301-14/+11
* Update to 1.42.0Baptiste Daroussin2018-03-271-3/+4
* Update pango to 1.40.6.Koop Mast2017-05-311-14/+6
* update to 1.40.4Baptiste Daroussin2017-04-051-6/+5
* Apply r402343 to other gnome@ ports restoring r297047 behaviorJan Beich2016-07-261-4/+5
* Fix pango install deinstall script that are no longer needed since 1.38Baptiste Daroussin2016-05-231-1/+1
* Remove ${PORTSDIR}/ from dependencies, categories v, w, x, y, and z.Mathieu Arnold2016-04-011-7/+7
* The FreeBSD GNOME team proudly presents GNOME 3.18 for FreeBSD.Koop Mast2016-02-151-5/+4
* * Add PORTSCOUT macros to only show stable gnome versions.Koop Mast2015-08-081-0/+2
* By default libtool replaces -export-symbols <file> with -retain-symbols-fileTijl Coosemans2015-08-021-1/+1
* Bump PORTREVISION to chase the new font pathsMark Felder2015-04-061-1/+1
* Make fonts repecting XDGBaptiste Daroussin2015-03-221-2/+2
* Switch some dependencies from a directory name or a file generated by pkg-ins...Antoine Brodin2015-01-241-1/+1
* Remove mkdir line in post-install, this is a left over form the old pangoKoop Mast2015-01-021-3/+0
* The FreeBSD GNOME team proudly presents GNOME 3.14 and Cinnamon 2.2.Koop Mast2014-11-191-7/+13
* Remove CONFIGURE_ARGS=--enable-explicit-deps. This option addsTijl Coosemans2014-08-281-2/+1
* x11-toolkits/pango: require explicit linkingJohn Marino2014-07-201-1/+2
* Fix check-plist.Koop Mast2014-06-061-7/+3
* When linking a library libA with a library libB using libtool, if libB.laTijl Coosemans2014-04-231-2/+2
* The FreeBSD x11@ and graphics team proudly presentsNiclas Zeising2014-04-171-1/+1
* Fix handling of the pango font cache.Koop Mast2014-03-151-3/+3
* StagifyKoop Mast2014-03-081-13/+14
* Add NO_STAGE all over the place in preparation for the staging support (cat: ...Baptiste Daroussin2013-09-211-0/+1
* Add gnomehier depend for introspection dirs.Koop Mast2013-08-061-2/+2
* The FreeBSD GNOME team presents a Glib and Gtk+ 3 update.Koop Mast2013-07-311-16/+16
* Remove latest usage of X_FONTS_ENCODINGS_PORT and X_FONTS_TTF_PORTBaptiste Daroussin2013-07-081-2/+2
* - Convert USE_GETTEXT to USES (part 4)Alex Kozlov2013-04-261-2/+1
* Finish converting the whole ports tree to USES=pkgconfigBaptiste Daroussin2013-04-231-1/+1
* Add an error check on if cairo is installed without GLIB (GObject) support.Jeremy Messenger2013-03-201-0/+6
* * Update the glib to 2.34.3 and gtk20 to 2.24.17 and gtk30 to 3.6.4 whichKoop Mast2013-03-081-35/+20
* - update png to 1.5.10Dirk Meyer2012-06-011-1/+1
* - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)Dmitry Marakasov2011-09-241-6/+6
* Also update these to there latest stable versions.Koop Mast2011-07-301-2/+2
* Sync to new bsd.autotools.mkAde Lovett2010-12-041-1/+1
* Presenting GNOME 2.32.1 for FreeBSD. The offical release notes for thisKoop Mast2010-11-201-2/+2
* Presenting GNOME 2.30.2. for FreeBSD.Koop Mast2010-07-261-3/+3
* Bump PORTREVISION and add USE_GETTEXT where missing.Joe Marcus Clarke2010-06-011-1/+1
* Presenting GNOME 2.30.1 for FreeBSD. The offical release notes for thisKoop Mast2010-05-111-5/+7
* - update to 1.4.1Dirk Meyer2010-03-281-1/+1
* Make blob unlocking 64bit-safe to fix the applications crash when displayingJeremy Messenger2010-03-181-1/+1
* Update to 1.26.2.Joe Marcus Clarke2009-12-181-5/+1
* The pango port shouldn't be installing gir modules itself.Joe Marcus Clarke2009-12-011-0/+4
* Presenting GNOME 2.28.1 for FreeBSD. The official release notes for thisJoe Marcus Clarke2009-11-291-6/+11