From: Jim Evins Date: Wed, 16 Dec 2009 03:38:05 +0000 (-0500) Subject: Minor cleanup of label.c X-Git-Tag: glabels-2_3_0~113 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1bddb489410c3e82ced613cd500080c5e0e94790;p=glabels Minor cleanup of label.c Removed unused variables. Added a couple explicit casts. --- diff --git a/src/label.c b/src/label.c index 7c82881d..e482ac3e 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.