~noskcaj/ubuntu/vivid/thunar/1.6.4

« back to all changes in this revision

Viewing changes to thunar/thunar-compact-view.c

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc
  • Date: 2010-12-04 16:46:20 UTC
  • mto: (2.1.3 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 69.
  • Revision ID: james.westby@ubuntu.com-20101204164620-h7p4t2e9z6hfhz6l
Tags: upstream-1.1.4
ImportĀ upstreamĀ versionĀ 1.1.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
 
27
27
 
28
 
static void         thunar_compact_view_class_init     (ThunarCompactViewClass  *klass);
29
 
static void         thunar_compact_view_init           (ThunarCompactView       *compact_view);
30
28
static AtkObject   *thunar_compact_view_get_accessible (GtkWidget               *widget);
31
29
 
32
30
 
43
41
 
44
42
 
45
43
 
46
 
static GObjectClass *thunar_compact_view_parent_class;
47
 
 
48
 
 
49
 
 
50
 
GType
51
 
thunar_compact_view_get_type (void)
52
 
{
53
 
  static GType type = G_TYPE_INVALID;
54
 
 
55
 
  if (G_UNLIKELY (type == G_TYPE_INVALID))
56
 
    {
57
 
      static const GTypeInfo info =
58
 
      {
59
 
        sizeof (ThunarCompactViewClass),
60
 
        NULL,
61
 
        NULL,
62
 
        (GClassInitFunc) thunar_compact_view_class_init,
63
 
        NULL,
64
 
        NULL,
65
 
        sizeof (ThunarCompactView),
66
 
        0,
67
 
        (GInstanceInitFunc) thunar_compact_view_init,
68
 
        NULL,
69
 
      };
70
 
 
71
 
      type = g_type_register_static (THUNAR_TYPE_ABSTRACT_ICON_VIEW, I_("ThunarCompactView"), &info, 0);
72
 
    }
73
 
 
74
 
  return type;
75
 
}
 
44
G_DEFINE_TYPE (ThunarCompactView, thunar_compact_view, THUNAR_TYPE_ABSTRACT_ICON_VIEW)
76
45
 
77
46
 
78
47
 
82
51
  ThunarStandardViewClass *thunarstandard_view_class;
83
52
  GtkWidgetClass          *gtkwidget_class;
84
53
 
85
 
  /* determine the parent type class */
86
 
  thunar_compact_view_parent_class = g_type_class_peek_parent (klass);
87
 
 
88
54
  gtkwidget_class = GTK_WIDGET_CLASS (klass);
89
55
  gtkwidget_class->get_accessible = thunar_compact_view_get_accessible;
90
56