gint response,
glViewBarcode *view_barcode)
{
+ glLabelObject *object;
+
gl_debug (DEBUG_VIEW, "START");
g_return_if_fail(dialog != NULL);
gtk_widget_hide (GTK_WIDGET(dialog));
break;
case GTK_RESPONSE_DELETE_EVENT:
+ /* Dialog destroyed, remove callbacks that reference it. */
+ object = gl_view_object_get_object (GL_VIEW_OBJECT(view_barcode));
+
+ g_signal_handlers_disconnect_by_func (object, update_dialog_cb,
+ view_barcode);
+ g_signal_handlers_disconnect_by_func (object, update_dialog_from_move_cb,
+ view_barcode);
break;
default:
g_print ("response = %d", response);
gint response,
glViewBox *view_box)
{
+ glLabelObject *object;
+
gl_debug (DEBUG_VIEW, "START");
g_return_if_fail(dialog != NULL);
g_return_if_fail(GTK_IS_DIALOG(dialog));
switch(response) {
+
case GTK_RESPONSE_CLOSE:
gtk_widget_hide (GTK_WIDGET(dialog));
break;
+
case GTK_RESPONSE_DELETE_EVENT:
+ /* Dialog destroyed, remove callbacks that reference it. */
+ object = gl_view_object_get_object (GL_VIEW_OBJECT(view_box));
+
+ g_signal_handlers_disconnect_by_func (object, update_dialog_cb, view_box);
+ g_signal_handlers_disconnect_by_func (object, update_dialog_from_move_cb,
+ view_box);
break;
+
default:
g_print ("response = %d", response);
g_assert_not_reached ();
gint response,
glViewEllipse *view_ellipse)
{
+ glLabelObject *object;
+
gl_debug (DEBUG_VIEW, "START");
g_return_if_fail(dialog != NULL);
gtk_widget_hide (GTK_WIDGET(dialog));
break;
case GTK_RESPONSE_DELETE_EVENT:
+ /* Dialog destroyed, remove callbacks that reference it. */
+ object = gl_view_object_get_object (GL_VIEW_OBJECT(view_ellipse));
+
+ g_signal_handlers_disconnect_by_func (object, update_dialog_cb,
+ view_ellipse);
+ g_signal_handlers_disconnect_by_func (object, update_dialog_from_move_cb,
+ view_ellipse);
break;
default:
g_print ("response = %d", response);
gint response,
glViewImage *view_image)
{
+ glLabelObject *object;
+
gl_debug (DEBUG_VIEW, "START");
g_return_if_fail(dialog != NULL);
gtk_widget_hide (GTK_WIDGET(dialog));
break;
case GTK_RESPONSE_DELETE_EVENT:
+ /* Dialog destroyed, remove callbacks that reference it. */
+ object = gl_view_object_get_object (GL_VIEW_OBJECT(view_image));
+
+ g_signal_handlers_disconnect_by_func (object, update_dialog_cb,
+ view_image);
+ g_signal_handlers_disconnect_by_func (object, update_dialog_from_move_cb,
+ view_image);
break;
default:
g_print ("response = %d", response);
gint response,
glViewLine *view_line)
{
+ glLabelObject *object;
+
gl_debug (DEBUG_VIEW, "START");
g_return_if_fail(dialog != NULL);
gtk_widget_hide (GTK_WIDGET(dialog));
break;
case GTK_RESPONSE_DELETE_EVENT:
+ /* Dialog destroyed, remove callbacks that reference it. */
+ object = gl_view_object_get_object (GL_VIEW_OBJECT(view_line));
+
+ g_signal_handlers_disconnect_by_func (object, update_dialog_cb,
+ view_line);
+ g_signal_handlers_disconnect_by_func (object, update_dialog_from_move_cb,
+ view_line);
break;
default:
g_print ("response = %d", response);
gint response,
glViewText *view_text)
{
+ glLabelObject *object;
+
gl_debug (DEBUG_VIEW, "START");
g_return_if_fail(dialog != NULL);
gtk_widget_hide (GTK_WIDGET(dialog));
break;
case GTK_RESPONSE_DELETE_EVENT:
+ /* Dialog destroyed, remove callbacks that reference it. */
+ object = gl_view_object_get_object (GL_VIEW_OBJECT(view_text));
+
+ g_signal_handlers_disconnect_by_func (object, update_dialog_cb,
+ view_text);
+ g_signal_handlers_disconnect_by_func (object, update_dialog_from_move_cb,
+ view_text);
break;
default:
g_print ("response = %d", response);