/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* This file is part of the GNOME Devtools Libraries.
*
* Copyright (C) 2002 Gustavo Gir�ldez <gustavo.giraldez@gmx.net>
*
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "gdl-i18n.h"
#include "gdl-switcher.h"
#include "gdl-dock-notebook.h"
#include "gdl-dock-tablabel.h"
/* Private prototypes */
GParamSpec *pspec);
GParamSpec *pspec);
GValue *other_data);
GValue *other_data);
/* Class variables and definitions */
enum {
};
/* ----- Private functions ----- */
static void
{
_("The index of the current page"),
0, G_MAXINT,
0,
if (!style_initialized) {
"style \"gdl-dock-notebook-default\" {\n"
"xthickness = 2\n"
"ythickness = 2\n"
"}\n"
"widget_class \"*.GtkNotebook.GdlDockItem\" "
"style : gtk \"gdl-dock-notebook-default\"\n");
}
}
static void
{
/* chain the notify signal */
}
static gboolean
{
else
return FALSE;
}
static void
{
/* create the container notebook */
}
static void
{
switch (prop_id) {
case PROP_PAGE:
g_value_get_int (value));
}
break;
default:
break;
}
}
static void
{
switch (prop_id) {
case PROP_PAGE:
}
break;
default:
break;
}
}
static void
{
/* we need to call the virtual first, since in GdlDockDestroy our
children dock objects are detached */
/* after that we can remove the GtkNotebook */
};
}
static void
{
/* deactivate old tablabel */
if (gtk_notebook_get_current_page (nb)) {
};
/* activate new label */
if (GDL_DOCK_ITEM_USER_ACTION (notebook) &&
"layout-changed");
/* Signal that a new dock item has been selected */
}
static void
{
NULL);
}
static void
{
if (include_internals) {
/* use GdlDockItem's forall */
}
else {
}
}
static GType
{
return GDL_TYPE_DOCK_ITEM;
}
static void
{
struct {
}
static void
{
/* we only add support for GDL_DOCK_CENTER docking strategy here... for the rest
use our parent class' method */
if (position == GDL_DOCK_CENTER) {
/* we can only dock simple (not compound) items */
if (gdl_dock_object_is_compound (requestor)) {
struct {
} data;
}
else {
if (!label) {
}
#if 0
if (GDL_IS_DOCK_TABLABEL (label)) {
/* hide the item grip, as we will use the tablabel's */
}
#endif
/* Set current page to the newly docked widget. set current page
* really doesn't work if the page widget is not shown
*/
position);
}
}
else
GDL_DOCK_OBJECT_CLASS (gdl_dock_notebook_parent_class)->dock (object, requestor, position, other_data);
}
static void
{
else
}
}
static gboolean
{
break;
}
}
}
if (pos != GDL_DOCK_NONE) {
if (placement)
return TRUE;
}
else
return FALSE;
}
static void
{
int i;
GTK_WIDGET (child));
if (i >= 0)
}
static gboolean
{
GTK_WIDGET (requestor));
if (current_position >= 0) {
new_pos);
}
}
return handled;
}
/* ----- Public interface ----- */
gdl_dock_notebook_new (void)
{
return GTK_WIDGET (notebook);
}