projects
/
platform
/
upstream
/
glib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
include string.h
[platform/upstream/glib.git]
/
gobject
/
gsignal.c
diff --git
a/gobject/gsignal.c
b/gobject/gsignal.c
index
3c91c67
..
14a9cea
100644
(file)
--- a/
gobject/gsignal.c
+++ b/
gobject/gsignal.c
@@
-813,7
+813,7
@@
g_signal_lookup (const gchar *name,
return signal_id;
}
return signal_id;
}
-gchar*
+
G_CONST_RETURN
gchar*
g_signal_name (guint signal_id)
{
SignalNode *node;
g_signal_name (guint signal_id)
{
SignalNode *node;
@@
-873,7
+873,7
@@
g_signal_list_ids (GType itype,
for (i = 0; i < n_nodes; i++)
if (keys[i].itype == itype)
{
for (i = 0; i < n_nodes; i++)
if (keys[i].itype == itype)
{
- gchar *name = g_quark_to_string (keys[i].quark);
+
const
gchar *name = g_quark_to_string (keys[i].quark);
/* Signal names with "_" in them are aliases to the same
* name with "-" instead of "_".
/* Signal names with "_" in them are aliases to the same
* name with "-" instead of "_".