Подробности

[В начало]

Проблема в стандарте № D0085

Краткое описание

Дополнение к документации функции "g_object_connect"

Подробное описание

Описание интерфейса "g_object_connect" содержит следующий текст:

  • signal - equivalent to g_signal_connect_data (...)
  • object_signal, object-signal - equivalent to g_signal_connect_object (...)
  • swapped_signal, swapped-signal - equivalent to g_signal_connect_data (..., G_CONNECT_SWAPPED)
  • swapped_object_signal, swapped-object-signal - equivalent to g_signal_connect_object (..., G_CONNECT_SWAPPED)
  • signal_after, signal-after - equivalent to g_signal_connect_data (..., G_CONNECT_AFTER)
  • object_signal_after, object-signal-after - equivalent to g_signal_connect_object (..., G_CONNECT_AFTER)
  • swapped_signal_after, swapped-signal-after - equivalent to g_signal_connect_data (..., G_CONNECT_SWAPPED | G_CONNECT_AFTER)
  • swapped_object_signal_after, swapped-object-signal-after - equivalent to g_signal_connect_object (..., G_CONNECT_SWAPPED | G_CONNECT_AFTER)

Раздел стандарта

Linux Standard Base Desktop Specification 3.1, Chapter 12. Libraries, 12.5.1 glib-2.0/glib-object.h; http://www.gtk.org/api/2.6/gobject/gobject-The-Base-Object-Type.html#g-object-connect

Способы устранения

Предлагается улучшить документацию, указав значения пропущенных параметров:

  • signal equivalent to g_signal_connect_data (..., NULL, 0)
  • object_signal, object-signal, equivalent to g_signal_connect_object (..., 0)
  • swapped_signal, swapped-signal, equivalent to g_signal_connect_data (..., NULL, G_CONNECT_SWAPPED)
  • swapped_object_signal, swapped-object-signal, equivalent to g_signal_connect_object (..., G_CONNECT_SWAPPED)
  • signal_after, signal-after, equivalent to g_signal_connect_data (..., NULL, G_CONNECT_AFTER)
  • object_signal_after, object-signal-after, equivalent to g_signal_connect_object (..., G_CONNECT_AFTER)
  • swapped_signal_after, swapped-signal-after, equivalent to g_signal_connect_data (..., NULL, G_CONNECT_SWAPPED | G_CONNECT_AFTER)
  • swapped_object_signal_after, swapped-object-signal-after, equivalent to g_signal_connect_object (..., G_CONNECT_SWAPPED | G_CONNECT_AFTER)

Принято

Gnome Bugzilla 528719

Статус

Принято в glib 2.18

[В начало]