gdk: Intern signal names

We were forgetting this in a few places.
This commit is contained in:
Matthias Clasen 2017-11-17 22:47:11 -05:00
parent a129053ed9
commit 3b06ae5072
2 changed files with 5 additions and 5 deletions

View File

@ -285,7 +285,7 @@ gdk_drag_context_class_init (GdkDragContextClass *klass)
* Since: 3.20
*/
signals[CANCEL] =
g_signal_new ("cancel",
g_signal_new (g_intern_static_string ("cancel"),
G_TYPE_FROM_CLASS (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GdkDragContextClass, cancel),
@ -307,7 +307,7 @@ gdk_drag_context_class_init (GdkDragContextClass *klass)
* Since: 3.20
*/
signals[DROP_PERFORMED] =
g_signal_new ("drop-performed",
g_signal_new (g_intern_static_string ("drop-performed"),
G_TYPE_FROM_CLASS (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GdkDragContextClass, drop_performed),
@ -330,7 +330,7 @@ gdk_drag_context_class_init (GdkDragContextClass *klass)
* Since: 3.20
*/
signals[DND_FINISHED] =
g_signal_new ("dnd-finished",
g_signal_new (g_intern_static_string ("dnd-finished"),
G_TYPE_FROM_CLASS (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GdkDragContextClass, dnd_finished),
@ -352,7 +352,7 @@ gdk_drag_context_class_init (GdkDragContextClass *klass)
* Since: 3.20
*/
signals[ACTION_CHANGED] =
g_signal_new ("action-changed",
g_signal_new (g_intern_static_string ("action-changed"),
G_TYPE_FROM_CLASS (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GdkDragContextClass, action_changed),

View File

@ -171,7 +171,7 @@ gdk_keymap_class_init (GdkKeymapClass *klass)
* Since: 2.16
*/
signals[STATE_CHANGED] =
g_signal_new (g_intern_static_string ("state_changed"),
g_signal_new (g_intern_static_string ("state-changed"),
G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GdkKeymapClass, state_changed),