~mfisch/brasero/update-to-3.8.0

« back to all changes in this revision

Viewing changes to src/brasero-layout.c

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2012-11-28 13:25:56 UTC
  • mto: This revision was merged to the branch mainline in revision 106.
  • Revision ID: package-import@ubuntu.com-20121128132556-7jrbir2myg04zvhe
Tags: upstream-3.6.1
ImportĀ upstreamĀ versionĀ 3.6.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
#include "brasero-setting.h"
41
41
#include "brasero-layout.h"
 
42
 
 
43
#ifdef BUILD_PREVIEW
42
44
#include "brasero-preview.h"
 
45
#endif
 
46
 
43
47
#include "brasero-project.h"
44
48
#include "brasero-uri-container.h"
45
49
#include "brasero-layout-object.h"
318
322
        layout->priv->project = project;
319
323
}
320
324
 
 
325
#ifdef BUILD_PREVIEW
321
326
static void
322
327
brasero_layout_preview_toggled_cb (GtkToggleAction *action, BraseroLayout *layout)
323
328
{
334
339
                                   BRASERO_SETTING_SHOW_PREVIEW,
335
340
                                   GINT_TO_POINTER (active));
336
341
}
 
342
#endif
337
343
 
338
344
void
339
345
brasero_layout_add_preview (BraseroLayout *layout,
340
346
                            GtkWidget *preview)
341
347
{
 
348
#ifdef BUILD_PREVIEW
342
349
        gpointer value;
343
350
        gboolean active;
344
351
        gchar *accelerator;
376
383
                gtk_widget_hide (layout->priv->preview_pane);
377
384
 
378
385
        brasero_preview_set_enabled (BRASERO_PREVIEW (layout->priv->preview_pane), active);
 
386
#endif
379
387
}
380
388
 
381
389
/**************************** for the source panes *****************************/
660
668
        GtkTreeIter iter;
661
669
        gpointer value;
662
670
 
 
671
#ifdef BUILD_PREVIEW
663
672
        if (layout->priv->preview_pane)
664
673
                brasero_preview_hide (BRASERO_PREVIEW (layout->priv->preview_pane));
 
674
#endif
665
675
 
666
676
        if (type == BRASERO_LAYOUT_NONE) {
667
677
                gtk_widget_hide (GTK_WIDGET (layout));