gtkvpaned.c 2.02 KB
Newer Older
Cody Russell's avatar
Cody Russell committed
1
/* GTK - The GIMP Toolkit
Elliot Lee's avatar
Elliot Lee committed
2 3 4
 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
 *
 * This library is free software; you can redistribute it and/or
5
 * modify it under the terms of the GNU Lesser General Public
Elliot Lee's avatar
Elliot Lee committed
6 7 8 9 10 11
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library 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
12
 * Lesser General Public License for more details.
Elliot Lee's avatar
Elliot Lee committed
13
 *
14
 * You should have received a copy of the GNU Lesser General Public
Javier Jardón's avatar
Javier Jardón committed
15
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
Elliot Lee's avatar
Elliot Lee committed
16
 */
17 18

/*
19
 * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
20 21
 * file for a list of people on the GTK+ Team.  See the ChangeLog
 * files for a list of changes.  These files are distributed with
22
 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
23 24
 */

25
#include "config.h"
26 27

#include "gtkorientable.h"
28

Elliot Lee's avatar
Elliot Lee committed
29
#include "gtkvpaned.h"
30

31
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
32

33 34 35 36 37 38 39 40 41
/**
 * SECTION:gtkvpaned
 * @Short_description: A container with two panes arranged vertically
 * @Title: GtkVPaned
 *
 * The VPaned widget is a container widget with two
 * children arranged vertically. The division between
 * the two panes is adjustable by the user by dragging
 * a handle. See #GtkPaned for details.
42 43
 *
 * GtkVPaned has been deprecated, use #GtkPaned instead.
44 45
 */

Matthias Clasen's avatar
Matthias Clasen committed
46
G_DEFINE_TYPE (GtkVPaned, gtk_vpaned, GTK_TYPE_PANED)
Elliot Lee's avatar
Elliot Lee committed
47 48 49 50 51 52 53 54 55

static void
gtk_vpaned_class_init (GtkVPanedClass *class)
{
}

static void
gtk_vpaned_init (GtkVPaned *vpaned)
{
56 57
  gtk_orientable_set_orientation (GTK_ORIENTABLE (vpaned),
                                  GTK_ORIENTATION_VERTICAL);
Elliot Lee's avatar
Elliot Lee committed
58 59
}

60 61 62 63 64 65
/**
 * gtk_vpaned_new:
 *
 * Create a new #GtkVPaned
 *
 * Returns: the new #GtkVPaned
66 67
 *
 * Deprecated: 3.2: Use gtk_paned_new() with %GTK_ORIENTATION_VERTICAL instead
68
 */
69
GtkWidget *
70
gtk_vpaned_new (void)
Elliot Lee's avatar
Elliot Lee committed
71
{
72
  return g_object_new (GTK_TYPE_VPANED, NULL);
Elliot Lee's avatar
Elliot Lee committed
73
}