/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* * Author : * Damon Chaplin * * Copyright 1999, Ximian, Inc. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA */ /* * This is similar to GtkLabel but clips itself and displays '...' if it * can't fit inside its allocated area. The intended use is for inside buttons * that are a fixed size. The GtkLabel would normally display only the middle * part of the text, which doesn't look very good. This only supports one line * of text (so no wrapping/justification), without underlined characters. */ #ifndef _E_CLIPPED_LABEL_H_ #define _E_CLIPPED_LABEL_H_ #include #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #define E_CLIPPED_LABEL(obj) GTK_CHECK_CAST (obj, e_clipped_label_get_type (), EClippedLabel) #define E_CLIPPED_LABEL_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, e_clipped_label_get_type (), EClippedLabelClass) #define E_IS_CLIPPED_LABEL(obj) GTK_CHECK_TYPE (obj, e_clipped_label_get_type ()) typedef struct _EClippedLabel EClippedLabel; typedef struct _EClippedLabelClass EClippedLabelClass; struct _EClippedLabel { GtkMisc misc; gchar *label; GdkWChar *label_wc; /* This is the number of wide characters in the label. */ gint wc_len; /* This is the width of the entire label string, in pixels. */ gint label_width; /* This is the number of characters we can fit in, or E_CLIPPED_LABEL_NEED_RECALC if it needs to be recalculated, or E_CLIPPED_LABEL_SHOW_ENTIRE_LABEL to show the entire label. */ gint chars_displayed; /* This is the x position to display the ellipsis string, e.g. '...', relative to the start of the label. */ gint ellipsis_x; }; struct _EClippedLabelClass { GtkMiscClass parent_class; }; GtkType e_clipped_label_get_type (void); GtkWidget* e_clipped_label_new (const gchar *text); gchar* e_clipped_label_get_text (EClippedLabel *label); void e_clipped_label_set_text (EClippedLabel *label, const gchar *text); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* _E_CLIPPED_LABEL_H_ */ n4/files/node-fetch-2.6.1 FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* Update to KDE 3.5.8lofi2007-10-304-8/+6
* - Fix UTF-8 buggabor2007-10-073-0/+21
* - Update to 1.2.1gabor2007-09-284-99/+89
* - Update to 1.1.10gabor2007-08-283-5/+31
* - Update to 1.1.9gabor2007-08-014-8/+18
* - Update to 1.1.8gabor2007-07-214-19/+38
* Update to KDE 3.5.7 / KOffice 1.6.3lofi2007-07-048-29/+12
* BROKEN: Still broken on 6.x and abovekris2007-05-251-0/+2
* - Welcome X.org 7.2 \o/.flz2007-05-205-2/+5
* Remove BROKEN: This might be fixedkris2007-04-291-2/+0
* BROKEN: Does not installkris2007-03-251-0/+2
* Update to KDE 3.5.6 / KOffice 1.6.2lofi2007-03-147-11/+12
* Really normalize Aspell dictionaries ports PKGVERSION...thierry2007-02-151-1/+1
* Normalize Aspell dictionaries PKGNAMEs.thierry2007-01-141-0/+1
* Update to KDE 3.5.5 / KOffice 1.6.1lofi2006-12-205-10/+11
* - Update to 1.1.4miwi2006-11-105-71/+27
* KDE 3.5.4 / KOffice 1.5.2lofi2006-09-134-10/+10
* Now installs again.kris2006-08-171-2/+0
* Mark BROKEN: does not installerwin2006-08-041-0/+2
* Update to 1.0itetcu2006-08-013-43/+107
* All dictionaries can be installed separately:thierry2006-07-154-7/+15
* Update to KDE 3.5.3lofi2006-06-064-22/+20
* Update to KOffice 1.5.1lofi2006-05-272-4/+4
* remove USE_REINPLACE for all categories starting with Hedwin2006-05-081-1/+0
* Update to KOffice 1.5.0lofi2006-04-293-5/+8
* Update to KDE 3.5.2lofi2006-03-314-128/+22
* Update to KDE 3.5.1.lofi2006-02-014-6/+20
* SHA256ifyedwin2006-01-227-0/+8
* Update to KDE 3.5.0lofi2006-01-094-110/+48
* Remove the usage of 'misc' as a secondary category.linimon2005-11-102-2/+2
* Update to KDE 3.4.3 / KOffice 1.4.2lofi2005-11-055-8/+7
* Remove all the secondary port of editors/ooodict-allmaho2005-11-012-21/+0
* Fix index build by moving openoffice.org-1.1 ports.maho2005-08-291-1/+1
* Update to KDE 3.4.2 / KOffice 1.4.1lofi2005-08-014-7/+7
* Update to KOffice 1.4.0a.lofi2005-07-063-30/+7
* Remove openoffice.org localized ports as I announced:maho2005-06-292-16/+0
* Update to KDE 3.4.1lofi2005-06-264-10/+4
* - Unbreak and general updatepav2005-06-061-2/+2
* Added slave port of lang/php_doc for the Hungarian languageedwin2005-05-232-0/+14
* - Update to 1.0.R.2pav2005-05-203-25/+10
* Update to KDE 3.4lofi2005-03-214-62/+270
* - Update MASTER_SITES, WWWpav2005-02-162-2/+2
* - Update MASTER_SITES, WWWpav2005-02-162-2/+2
* Add i18nized doc subdirs to kdehier and adjust i18n port plists accordingly.lofi2004-12-232-2/+0
* - Use new support for plugin ports from textproc/jdictionaryhq2004-12-194-47/+10
* Fix some more plist nits.lofi2004-12-173-3/+0
* Fix kde3-i18n ports.lofi2004-12-162-4/+4
* Update to KDE 3.3.2lofi2004-12-149-13/+16
* Update to KDE 3.3.1lofi2004-11-084-7/+7
* Update to KDE 3.3lofi2004-08-317-21/+133
* Add slaves ports for Aspell's new dictionaries.thierry2004-08-293-0/+22
* Factor out all but one of the build switches of the KDE main module portslofi2004-08-112-3/+3
* Update to 1.0.R.1arved2004-08-102-4/+4