~ubuntu-branches/ubuntu/maverick/gnomad2/maverick

« back to all changes in this revision

Viewing changes to src/data.c

  • Committer: Bazaar Package Importer
  • Author(s): Andrea Veri
  • Date: 2007-06-20 23:39:14 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20070620233914-iwc10qsm2yr0vrqn
Tags: 2.8.12-2ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - Lessen the build-depends on libmtp-dev to >= 0.1.3.
  - Modify Maintainer value to match Debian-Maintainer-Field Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
  if (jukebox_locked) {
42
42
    create_error_dialog(_("Jukebox busy"));
43
43
    destroy_metalist(metalist);
44
 
    return;
 
44
    return NULL;
45
45
  }
46
46
 
47
47
  if (metalist != NULL) {
98
98
    cancel_jukebox_operation = FALSE;
99
99
    g_thread_create(jb2hd_data_thread,(gpointer) jb2hd_data_thread_args, FALSE, NULL);
100
100
  }
 
101
  return NULL;
101
102
}
102
103
 
103
104
 
112
113
  if (jukebox_locked) {
113
114
    create_error_dialog(_("Jukebox busy"));
114
115
    destroy_metalist(metalist);
115
 
    return;
 
116
    return NULL;
116
117
  }
117
118
  
118
119
  if (metalist != NULL) {
169
170
    cancel_jukebox_operation = FALSE;
170
171
    g_thread_create(hd2jb_data_thread,(gpointer) hd2jb_data_thread_args, FALSE, NULL);
171
172
  }
 
173
  return NULL;
172
174
}
173
175
 
174
176
static void add_to_history (gchar *string)
201
203
static GCallback hdmenu_rescan_response(gpointer data)
202
204
{
203
205
  fill_in_dir(HDDATA_LIST, get_current_dir());
 
206
  return NULL;
204
207
}
205
208
 
206
209
 
208
211
static GCallback hdmenu_transfer_response(gpointer data)
209
212
{
210
213
  data_from_hd_to_jukebox(NULL, NULL);
 
214
  return NULL;
211
215
}
212
216
 
213
217
/* Response to the "delete" call from the harddisk popup menu */
221
225
    destroy_metalist(metalist);
222
226
    // fill_in_dir(HDDATA_LIST, get_current_dir());
223
227
  }
 
228
  return NULL;
224
229
}
225
230
 
226
231
/* Handles descending into a directory */
254
259
 
255
260
static void go_down_jukebox()
256
261
{
257
 
  gchar *path;
258
262
  metadata_t *meta;
259
263
 
260
264
  meta = get_first_metadata_from_selection(JBDATA_LIST);
317
321
static GCallback jbmenu_rescan_response(gpointer data)
318
322
{
319
323
  scan_jukebox(NULL);
 
324
  return NULL;
320
325
}
321
326
 
322
327
 
324
329
static GCallback jbmenu_transfer_response(gpointer data)
325
330
{
326
331
  data_from_jukebox_to_hd(NULL, NULL);
 
332
  return NULL;
327
333
}
328
334
 
329
335
 
338
344
  g_print("Creating folder \"%s\"...\n", foldername);
339
345
  jukebox_create_folder(foldername);
340
346
  g_free(foldername);
 
347
  return NULL;
341
348
}
342
349
 
343
350
 
404
411
                   G_OBJECT (new_folder_dialog));
405
412
 
406
413
  gtk_widget_show_all(new_folder_dialog);
 
414
  return NULL;
407
415
}
408
416
 
409
417
 
417
425
    remove_selected(JBDATA_LIST);
418
426
    destroy_metalist(metalist);
419
427
  }
 
428
  return NULL;
420
429
}
421
430
 
422
431
 
472
481
  metadata_t *meta = get_data_metadata_from_model(model, iter);
473
482
  if (meta->size == 0) {
474
483
    g_object_set(G_OBJECT(cell),
475
 
                 "foreground", "blue", 
 
484
                 "foreground", GNOMAD_DIRECTORY_FOLDER_ENTRY_COLOR, 
476
485
                 "weight", "bold",
477
486
                 "underline", TRUE,
478
487
                 NULL);
479
488
  } else {
480
489
    g_object_set(G_OBJECT(cell),
481
 
                 "foreground", "black", 
 
490
                 "foreground", GNOMAD_DIRECTORY_FILE_ENTRY_COLOR, 
482
491
                 "weight", NULL,
483
492
                 "underline", FALSE,
484
493
                 NULL);
490
499
static GtkWidget *create_listview(GtkListStore *liststore)
491
500
{
492
501
  GtkWidget *listview;
493
 
  GtkTreeIter listiter;
494
502
  GtkCellRenderer *dirtextrenderer;
495
503
  GtkCellRenderer *textrenderer;
496
504
  GtkTreeViewColumn *view;
549
557
{
550
558
  GtkWidget *popupmenu, *popupmenu_item;
551
559
  GtkWidget *button;
552
 
  GtkWidget *vbox, *hbox;
553
560
  GtkWidget *leftbox;
554
561
  GtkWidget *panel;
555
562
  GtkWidget *transfer_button_vbox;
565
572
  GtkWidget *jblistview;
566
573
  GtkTreeSelection *hdlistselection;
567
574
  GtkTreeSelection *jblistselection;
568
 
  gint i;
569
575
 
570
576
  data_widgets.history = NULL;
571
577
  /* Just add something to the history... */