[glabels] Minor cleanup of label.c



commit 1bddb489410c3e82ced613cd500080c5e0e94790
Author: Jim Evins <evins snaught com>
Date:   Tue Dec 15 22:38:05 2009 -0500

    Minor cleanup of label.c
    
    Removed unused variables.  Added a couple explicit casts.

 src/label.c |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/label.c b/src/label.c
index 7c82881..e482ac3 100644
--- a/src/label.c
+++ b/src/label.c
@@ -2213,9 +2213,7 @@ gl_label_copy_selection (glLabel       *label)
         glLabel           *label_copy;
 	GList             *p;
 	glLabelObject     *object;
-        gchar             *buffer;
         glXMLLabelStatus   status;
-        const GdkPixbuf   *pixbuf;
 
         ClipboardData     *data;
 
@@ -2225,7 +2223,7 @@ gl_label_copy_selection (glLabel       *label)
 
         GtkTargetList  *target_list;
         GtkTargetEntry *target_table;
-        guint           n_targets;
+        gint            n_targets;
 
 	gl_debug (DEBUG_LABEL, "START");
 
@@ -2373,7 +2371,7 @@ clipboard_get_cb (GtkClipboard     *clipboard,
                 gtk_selection_data_set (selection_data,
                                         gtk_selection_data_get_target (selection_data),
                                         8,
-                                        data->xml_buffer, strlen (data->xml_buffer));
+                                        (guchar *)data->xml_buffer, strlen (data->xml_buffer));
                 break;
 
         case 1:
@@ -2474,7 +2472,7 @@ paste_xml_received_cb (GtkClipboard     *clipboard,
                        GtkSelectionData *selection_data,
                        glLabel          *label)
 {
-        const gchar      *xml_buffer;
+        gchar            *xml_buffer;
         glLabel          *label_copy;
         glXMLLabelStatus  status;
         GList            *p;
@@ -2482,7 +2480,7 @@ paste_xml_received_cb (GtkClipboard     *clipboard,
 
 	gl_debug (DEBUG_LABEL, "START");
 
-        xml_buffer = gtk_selection_data_get_data (selection_data);
+        xml_buffer = (gchar *)gtk_selection_data_get_data (selection_data);
 
         /*
          * Deserialize XML label document and extract objects.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]