~ubuntu-branches/ubuntu/precise/rhythmbox/precise-201203091205

« back to all changes in this revision

Viewing changes to widgets/rb-simple-view.c

Tags: upstream-0.9.2cvs20060102
ImportĀ upstreamĀ versionĀ 0.9.2cvs20060102

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
 
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
 
2
 *
2
3
 *  arch-tag: Implementation of widget to display RhythmDB properties
3
4
 *
4
5
 *  Copyright (C) 2005 Renato Filho <renato.filho@indt.org.br>
19
20
 *
20
21
 */
21
22
 
22
 
#include <gtk/gtktreeview.h>
23
 
 
24
 
#include <gtk/gtktreeselection.h>
25
 
#include <gtk/gtkcellrenderertext.h>
26
 
#include <gtk/gtkiconfactory.h>
27
 
#include <gtk/gtktooltips.h>
28
 
#include <gdk/gdkkeysyms.h>
29
 
#include <glib/ghash.h>
30
 
#include <glib/glist.h>
31
23
#include <config.h>
32
 
#include <libgnome/gnome-i18n.h>
33
 
#include <libgnomevfs/gnome-vfs-utils.h>
 
24
 
34
25
#include <string.h>
35
26
#include <stdlib.h>
36
27
 
 
28
#include <glib/gi18n.h>
 
29
#include <glib.h>
 
30
#include <gdk/gdkkeysyms.h>
 
31
#include <gtk/gtk.h>
 
32
#include <libgnomevfs/gnome-vfs-utils.h>
 
33
 
37
34
#include "rb-simple-view.h"
38
35
#include "rb-tree-dnd.h"
39
36
#include "rb-dialog.h"
54
51
 
55
52
struct RBSimpleViewPrivate
56
53
{
57
 
 
 
54
        int reserved;
58
55
};
59
56
 
 
57
#define RB_SIMPLE_VIEW_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), RB_TYPE_SIMPLE_VIEW, RBSimpleViewPrivate))
 
58
 
60
59
 
61
60
static void rb_simple_view_class_init           (RBSimpleViewClass *klass);
62
61
static void rb_simple_view_init                 (RBSimpleView *view);
90
89
                              G_TYPE_NONE,
91
90
                              0);
92
91
 
 
92
        g_type_class_add_private (klass, sizeof (RBSimpleViewPrivate));
93
93
}
94
94
 
95
95
static void
96
96
rb_simple_view_init (RBSimpleView *view)
97
97
{
98
 
        view->priv = g_new0 (RBSimpleViewPrivate, 1);
 
98
        view->priv = RB_SIMPLE_VIEW_GET_PRIVATE (view);
99
99
}
100
100
 
101
101
static void
110
110
 
111
111
        g_return_if_fail (view->priv != NULL);
112
112
 
113
 
        g_free (view->priv);
114
 
 
115
113
        G_OBJECT_CLASS (rb_simple_view_parent_class)->finalize (object);
116
114
}
117
115