]> git.sur5r.net Git - glabels/commitdiff
2008-12-18 Jim Evins <evins@snaught.com>
authorJim Evins <evins@snaught.com>
Fri, 19 Dec 2008 03:08:39 +0000 (03:08 +0000)
committerJim Evins <evins@snaught.com>
Fri, 19 Dec 2008 03:08:39 +0000 (03:08 +0000)
* src/view.c: (selection_received_cb):
Fixed paste bug that caused a duplicate phantom view_object to be created for
each new label_object.  This is because the view now (as of r673) the view
monitiors the label for new objects and creates view_objects automatically.

git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/branches/glabels-2_2@803 f5e0f49d-192f-0410-a22d-a8d8700d0965

glabels2/ChangeLog
glabels2/src/view.c

index be10bccb528574e85e73ed095b1f2afb31901861..05f6c6c89d5c21f5278a9c4858008e6943364776 100644 (file)
@@ -1,3 +1,10 @@
+2008-12-18  Jim Evins  <evins@snaught.com>
+
+       * src/view.c: (selection_received_cb):
+               Fixed paste bug that caused a duplicate phantom view_object to be created for
+               each new label_object.  This is because the view now (as of r673) the view
+               monitiors the label for new objects and creates view_objects automatically.
+
 2008-12-14  Jim Evins  <evins@snaught.com>
 
        * po/POTFILES.in:
index a9e7ceeb6cd26b5d9f9b8495e45e11b9df8af649..e59623941889b84b26baaec84c9488d7081436f3 100644 (file)
@@ -2791,31 +2791,6 @@ selection_received_cb (GtkWidget        *widget,
                newobject = gl_label_object_dup (object, view->label);
 
                gl_debug (DEBUG_VIEW, "object pasted");
-
-               if (GL_IS_LABEL_BOX (newobject)) {
-                       view_object = gl_view_box_new (GL_LABEL_BOX(newobject),
-                                                      view);
-               } else if (GL_IS_LABEL_ELLIPSE (newobject)) {
-                       view_object = gl_view_ellipse_new (GL_LABEL_ELLIPSE(newobject),
-                                                          view);
-               } else if (GL_IS_LABEL_LINE (newobject)) {
-                       view_object = gl_view_line_new (GL_LABEL_LINE(newobject),
-                                                       view);
-               } else if (GL_IS_LABEL_IMAGE (newobject)) {
-                       view_object = gl_view_image_new (GL_LABEL_IMAGE(newobject),
-                                                        view);
-               } else if (GL_IS_LABEL_TEXT (newobject)) {
-                       view_object = gl_view_text_new (GL_LABEL_TEXT(newobject),
-                                                       view);
-               } else if (GL_IS_LABEL_BARCODE (newobject)) {
-                       view_object = gl_view_barcode_new (GL_LABEL_BARCODE(newobject),
-                                                          view);
-               } else {
-                       /* Should not happen! */
-                       view_object = NULL;
-                       g_message ("Invalid label object type.");
-               }
-               gl_view_select_object (view, view_object);
        }
        g_object_unref (label);