1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* brasero
* Copyright (C) Philippe Rouquier 2007-2008 <bonfire-app@wanadoo.fr>
*
* Brasero is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* brasero is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with brasero. If not, write to:
* The Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor
* Boston, MA 02110-1301, USA.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <glib/gi18n.h>
#include <gtk/gtk.h>
#include "brasero-pref.h"
#include "brasero-plugin-manager-ui.h"
typedef struct _BraseroPrefPrivate BraseroPrefPrivate;
struct _BraseroPrefPrivate
{
GtkWidget *notebook;
};
#define BRASERO_PREF_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), BRASERO_TYPE_PREF, BraseroPrefPrivate))
G_DEFINE_TYPE (BraseroPref, brasero_pref, GTK_TYPE_DIALOG);
GtkWidget *
brasero_pref_new (void)
{
return g_object_new (BRASERO_TYPE_PREF, NULL);
}
static void
brasero_pref_init (BraseroPref *object)
{
GtkWidget *notebook;
GtkWidget *plugins;
gtk_dialog_add_button (GTK_DIALOG (object), GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE);
gtk_window_set_default_size (GTK_WINDOW (object), 600, 400);
gtk_window_set_title (GTK_WINDOW (object), _("Brasero Plugins"));
notebook = gtk_notebook_new ();
gtk_notebook_set_show_border (GTK_NOTEBOOK (notebook), FALSE);
gtk_notebook_set_show_tabs (GTK_NOTEBOOK (notebook), FALSE);
gtk_box_pack_end (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (object))),
notebook,
TRUE,
TRUE,
0);
plugins = brasero_plugin_manager_ui_new ();
gtk_notebook_append_page (GTK_NOTEBOOK (notebook),
plugins,
NULL);
}
static void
brasero_pref_finalize (GObject *object)
{
G_OBJECT_CLASS (brasero_pref_parent_class)->finalize (object);
}
static void
brasero_pref_class_init (BraseroPrefClass *klass)
{
GObjectClass* object_class = G_OBJECT_CLASS (klass);
g_type_class_add_private (klass, sizeof (BraseroPrefPrivate));
object_class->finalize = brasero_pref_finalize;
}
|