Fix ‘GtkLabel {aka struct _GtkLabel}’ has no member named ‘label’
[claws.git] / src / editjpilot.c
index 9f1132ee98f5cd396b772f8a195c4f6201941ebe..631ef74f3b10e846155641fd6ee3b73cbb0ec9f1 100644 (file)
@@ -138,11 +138,11 @@ static void edit_jpilot_fill_check_box_new() {
 
 static void edit_jpilot_read_check_box( JPilotFile *pilotFile ) {
        gint i;
-       gchar *labelName;
+       const gchar *labelName;
        jpilot_clear_custom_labels( pilotFile );
        for( i = 0; i < JPILOT_NUM_CUSTOM_LABEL; i++ ) {
                if( gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(jpilotedit.custom_check[i]) ) ) {
-                       labelName = GTK_LABEL(jpilotedit.custom_label[i])->label;
+                       labelName = gtk_label_get_label (GTK_LABEL(jpilotedit.custom_label[i]));
                        jpilot_add_custom_label( pilotFile, labelName );
                }
        }