Skip to content

Commit 52ab8bb

Browse files
committed
Silence some gir-2.0-related warnings.
1 parent 7ce0c1b commit 52ab8bb

6 files changed

Lines changed: 14 additions & 14 deletions

File tree

src/cinnamon-global.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ cinnamon_global_class_init (CinnamonGlobalClass *klass)
355355
g_param_spec_object ("stage",
356356
"Stage",
357357
"Stage holding the desktop scene graph",
358-
CLUTTER_TYPE_ACTOR,
358+
CLUTTER_TYPE_STAGE,
359359
G_PARAM_READABLE));
360360
g_object_class_install_property (gobject_class,
361361
PROP_STAGE_INPUT_MODE,

src/st/st-entry.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,12 +1179,12 @@ st_entry_set_text (StEntry *entry,
11791179
* Returns: (transfer none): the #ClutterText used by #StEntry. The entry is
11801180
* owned by the #StEntry and should not be unref'ed by the application.
11811181
*/
1182-
ClutterActor*
1182+
ClutterText *
11831183
st_entry_get_clutter_text (StEntry *entry)
11841184
{
11851185
g_return_val_if_fail (ST_ENTRY (entry), NULL);
11861186

1187-
return entry->priv->entry;
1187+
return (ClutterText *) entry->priv->entry;
11881188
}
11891189

11901190
/**

src/st/st-entry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ StWidget * st_entry_new (const gchar *text);
6868
const gchar * st_entry_get_text (StEntry *entry);
6969
void st_entry_set_text (StEntry *entry,
7070
const gchar *text);
71-
ClutterActor* st_entry_get_clutter_text (StEntry *entry);
71+
ClutterText * st_entry_get_clutter_text (StEntry *entry);
7272

7373
void st_entry_set_hint_text (StEntry *entry,
7474
const gchar *text);

src/st/st-label.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,12 +388,12 @@ st_label_set_text (StLabel *label,
388388
* Returns: (transfer none): ethe #ClutterText used by #StLabel. The label
389389
* is owned by the #StLabel and should not be unref'ed by the application.
390390
*/
391-
ClutterActor*
391+
ClutterText *
392392
st_label_get_clutter_text (StLabel *label)
393393
{
394394
g_return_val_if_fail (ST_IS_LABEL (label), NULL);
395395

396-
return label->priv->label;
396+
return (ClutterText *) label->priv->label;
397397
}
398398

399399

src/st/st-label.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ StWidget * st_label_new (const gchar *text);
6464
const gchar * st_label_get_text (StLabel *label);
6565
void st_label_set_text (StLabel *label,
6666
const gchar *text);
67-
ClutterActor * st_label_get_clutter_text (StLabel *label);
67+
ClutterText * st_label_get_clutter_text (StLabel *label);
6868

6969
G_END_DECLS
7070

src/st/st-password-entry.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ clutter_text_password_char_cb (GObject *object,
141141
gpointer user_data)
142142
{
143143
StPasswordEntry *entry = ST_PASSWORD_ENTRY (user_data);
144-
ClutterActor *clutter_text;
144+
ClutterText *clutter_text;
145145

146146
clutter_text = st_entry_get_clutter_text (ST_ENTRY (entry));
147-
if (clutter_text_get_password_char (CLUTTER_TEXT (clutter_text)) == 0)
147+
if (clutter_text_get_password_char (clutter_text) == 0)
148148
st_password_entry_set_password_visible (entry, TRUE);
149149
else
150150
st_password_entry_set_password_visible (entry, FALSE);
@@ -154,7 +154,7 @@ static void
154154
st_password_entry_init (StPasswordEntry *entry)
155155
{
156156
StPasswordEntryPrivate *priv;
157-
ClutterActor *clutter_text;
157+
ClutterText *clutter_text;
158158

159159
priv = entry->priv = st_password_entry_get_instance_private (entry);
160160

@@ -167,7 +167,7 @@ st_password_entry_init (StPasswordEntry *entry)
167167
priv->show_peek_icon = TRUE;
168168

169169
clutter_text = st_entry_get_clutter_text (ST_ENTRY (entry));
170-
clutter_text_set_password_char (CLUTTER_TEXT (clutter_text), BULLET);
170+
clutter_text_set_password_char (clutter_text, BULLET);
171171

172172
g_signal_connect (clutter_text, "notify::password-char",
173173
G_CALLBACK (clutter_text_password_char_cb), entry);
@@ -243,7 +243,7 @@ st_password_entry_set_password_visible (StPasswordEntry *entry,
243243
gboolean value)
244244
{
245245
StPasswordEntryPrivate *priv;
246-
ClutterActor *clutter_text;
246+
ClutterText *clutter_text;
247247

248248
g_return_if_fail (ST_IS_PASSWORD_ENTRY (entry));
249249

@@ -256,12 +256,12 @@ st_password_entry_set_password_visible (StPasswordEntry *entry,
256256
clutter_text = st_entry_get_clutter_text (ST_ENTRY (entry));
257257
if (priv->password_visible)
258258
{
259-
clutter_text_set_password_char (CLUTTER_TEXT (clutter_text), 0);
259+
clutter_text_set_password_char (clutter_text, 0);
260260
st_icon_set_icon_name (ST_ICON (priv->peek_password_icon), "xsi-view-reveal-symbolic");
261261
}
262262
else
263263
{
264-
clutter_text_set_password_char (CLUTTER_TEXT (clutter_text), BULLET);
264+
clutter_text_set_password_char (clutter_text, BULLET);
265265
st_icon_set_icon_name (ST_ICON (priv->peek_password_icon), "xsi-view-conceal-symbolic");
266266
}
267267

0 commit comments

Comments
 (0)