d6fba7ac82
Although theoretically GtkLabel from GTK3 should be able to replace GeanyWrapLabel altogether, a bug [1] with it makes it use way too much space in our about dialog (and possibly other places), making it not really usable. So, port the GeanyWrapLabel hack to GTK3, with the appropriate additional hacks for it to work. At least it looks good and don't seem to have resizing issues now. [1] https://bugzilla.gnome.org/show_bug.cgi?id=657621
49 lines
1.8 KiB
C
49 lines
1.8 KiB
C
/*
|
|
* geanywraplabel.h - this file is part of Geany, a fast and lightweight IDE
|
|
*
|
|
* Copyright 2009-2012 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
|
* Copyright 2009-2012 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
|
*
|
|
* 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.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*/
|
|
|
|
#ifndef GEANY_WRAP_LABEL_H
|
|
#define GEANY_WRAP_LABEL_H
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
#define GEANY_WRAP_LABEL_TYPE (geany_wrap_label_get_type())
|
|
#define GEANY_WRAP_LABEL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), \
|
|
GEANY_WRAP_LABEL_TYPE, GeanyWrapLabel))
|
|
#define GEANY_WRAP_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), \
|
|
GEANY_WRAP_LABEL_TYPE, GeanyWrapLabelClass))
|
|
#define IS_GEANY_WRAP_LABEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), \
|
|
GEANY_WRAP_LABEL_TYPE))
|
|
#define IS_GEANY_WRAP_LABEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), \
|
|
GEANY_WRAP_LABEL_TYPE))
|
|
|
|
|
|
typedef struct _GeanyWrapLabel GeanyWrapLabel;
|
|
typedef struct _GeanyWrapLabelClass GeanyWrapLabelClass;
|
|
|
|
GType geany_wrap_label_get_type (void);
|
|
GtkWidget* geany_wrap_label_new (const gchar *text);
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* GEANY_WRAP_LABEL_H */
|