mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 03:20:46 -05:00
fix and clean up
This commit is contained in:
parent
bceae43706
commit
2484917339
@ -220,11 +220,12 @@ check_vblank_env (const char *name)
|
|||||||
* without explicitely calling clutter_feature_init() inside clutter_init()
|
* without explicitely calling clutter_feature_init() inside clutter_init()
|
||||||
* and we also need to have an open X display when we test for the features.
|
* and we also need to have an open X display when we test for the features.
|
||||||
* __features is dynamically allocated, and applications tend to badly
|
* __features is dynamically allocated, and applications tend to badly
|
||||||
* crash when trying to access __features; so when can't use a NULL check
|
* crash when trying to access __features components if we did not allocate
|
||||||
* to know whether we already invoked clutter_feature_init() once; hence,
|
* it; so when can't use a NULL check to know whether we already invoked
|
||||||
* we must allocate it anyway, and have a flag to let us know when the
|
* clutter_feature_init() once; hence, we must allocate it anyway, and have
|
||||||
* features have been set - that is when clutter_feature_init() has been
|
* a flag to let us know when the features have been set - that is when
|
||||||
* successfully completed with an open X display.
|
* clutter_feature_init() has been successfully completed with an open
|
||||||
|
* X display.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
clutter_feature_init (void)
|
clutter_feature_init (void)
|
||||||
|
@ -26,17 +26,14 @@
|
|||||||
#ifndef _HAVE_CLUTTER_LABEL_H
|
#ifndef _HAVE_CLUTTER_LABEL_H
|
||||||
#define _HAVE_CLUTTER_LABEL_H
|
#define _HAVE_CLUTTER_LABEL_H
|
||||||
|
|
||||||
#include <glib-object.h>
|
#include <clutter/clutter-actor.h>
|
||||||
#include <gdk-pixbuf/gdk-pixbuf.h>
|
|
||||||
#include <clutter/clutter-texture.h>
|
|
||||||
#include <clutter/clutter-color.h>
|
#include <clutter/clutter-color.h>
|
||||||
|
|
||||||
#include <pango/pango.h>
|
#include <pango/pango.h>
|
||||||
|
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define CLUTTER_TYPE_LABEL clutter_label_get_type()
|
#define CLUTTER_TYPE_LABEL (clutter_label_get_type ())
|
||||||
|
|
||||||
#define CLUTTER_LABEL(obj) \
|
#define CLUTTER_LABEL(obj) \
|
||||||
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
|
(G_TYPE_CHECK_INSTANCE_CAST ((obj), \
|
||||||
@ -83,10 +80,9 @@ struct _ClutterLabelClass
|
|||||||
|
|
||||||
GType clutter_label_get_type (void) G_GNUC_CONST;
|
GType clutter_label_get_type (void) G_GNUC_CONST;
|
||||||
|
|
||||||
ClutterActor *clutter_label_new (void);
|
ClutterActor * clutter_label_new (void);
|
||||||
ClutterActor *clutter_label_new_with_text (const gchar *font_name,
|
ClutterActor * clutter_label_new_with_text (const gchar *font_name,
|
||||||
const gchar *text);
|
const gchar *text);
|
||||||
|
|
||||||
void clutter_label_set_text (ClutterLabel *label,
|
void clutter_label_set_text (ClutterLabel *label,
|
||||||
const gchar *text);
|
const gchar *text);
|
||||||
G_CONST_RETURN gchar *clutter_label_get_text (ClutterLabel *label);
|
G_CONST_RETURN gchar *clutter_label_get_text (ClutterLabel *label);
|
||||||
@ -97,52 +93,26 @@ void clutter_label_set_color (ClutterLabel *label,
|
|||||||
const ClutterColor *color);
|
const ClutterColor *color);
|
||||||
void clutter_label_get_color (ClutterLabel *label,
|
void clutter_label_get_color (ClutterLabel *label,
|
||||||
ClutterColor *color);
|
ClutterColor *color);
|
||||||
|
void clutter_label_set_ellipsize (ClutterLabel *label,
|
||||||
void
|
|
||||||
clutter_label_set_ellipsize (ClutterLabel *label,
|
|
||||||
PangoEllipsizeMode mode);
|
PangoEllipsizeMode mode);
|
||||||
|
PangoEllipsizeMode clutter_label_get_ellipsize (ClutterLabel *label);
|
||||||
PangoEllipsizeMode
|
void clutter_label_set_line_wrap (ClutterLabel *label,
|
||||||
clutter_label_get_ellipsize (ClutterLabel *label);
|
|
||||||
|
|
||||||
void
|
|
||||||
clutter_label_set_line_wrap (ClutterLabel *label,
|
|
||||||
gboolean wrap);
|
gboolean wrap);
|
||||||
|
gboolean clutter_label_get_line_wrap (ClutterLabel *label);
|
||||||
gboolean
|
void clutter_label_set_line_wrap_mode (ClutterLabel *label,
|
||||||
clutter_label_get_line_wrap (ClutterLabel *label);
|
|
||||||
|
|
||||||
void
|
|
||||||
clutter_label_set_line_wrap_mode (ClutterLabel *label,
|
|
||||||
PangoWrapMode wrap_mode);
|
PangoWrapMode wrap_mode);
|
||||||
|
PangoWrapMode clutter_label_get_line_wrap_mode (ClutterLabel *label);
|
||||||
PangoWrapMode
|
PangoLayout * clutter_label_get_layout (ClutterLabel *label);
|
||||||
clutter_label_get_line_wrap_mode (ClutterLabel *label);
|
void clutter_label_set_attributes (ClutterLabel *label,
|
||||||
|
|
||||||
PangoLayout*
|
|
||||||
clutter_label_get_layout (ClutterLabel *label);
|
|
||||||
|
|
||||||
void
|
|
||||||
clutter_label_set_attributes (ClutterLabel *label,
|
|
||||||
PangoAttrList *attrs);
|
PangoAttrList *attrs);
|
||||||
|
PangoAttrList * clutter_label_get_attributes (ClutterLabel *label);
|
||||||
PangoAttrList*
|
void clutter_label_set_use_markup (ClutterLabel *label,
|
||||||
clutter_label_get_attributes (ClutterLabel *label);
|
|
||||||
|
|
||||||
void
|
|
||||||
clutter_label_set_use_markup (ClutterLabel *label,
|
|
||||||
gboolean setting);
|
gboolean setting);
|
||||||
|
gboolean clutter_label_get_use_markup (ClutterLabel *label);
|
||||||
gboolean
|
void clutter_label_set_alignment (ClutterLabel *label,
|
||||||
clutter_label_get_use_markup (ClutterLabel *label);
|
|
||||||
|
|
||||||
void
|
|
||||||
clutter_label_set_alignment (ClutterLabel *label,
|
|
||||||
PangoAlignment alignment);
|
PangoAlignment alignment);
|
||||||
gboolean
|
gboolean clutter_label_get_alignment (ClutterLabel *label);
|
||||||
clutter_label_get_alignment (ClutterLabel *label);
|
|
||||||
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif
|
#endif /* _HAVE_CLUTTER_LABEL_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user