1 /* gEDA - GPL Electronic Design Automation
2 * gschem - gEDA Schematic Capture
3 * Copyright (C) 1998-2010 Ales Hvezda
4 * Copyright (C) 1998-2020 gEDA Contributors (see ChangeLog for details)
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 * \file gschem_main_window.c
37 #include <gdk/gdkkeysyms.h>
40 get_property (GObject
*object
, guint param_id
, GValue
*value
, GParamSpec
*pspec
);
43 gschem_main_window_class_init (GschemMainWindowClass
*klass
);
46 gschem_main_window_init (GschemMainWindow
*window
);
49 set_property (GObject
*object
, guint param_id
, const GValue
*value
, GParamSpec
*pspec
);
53 /*! \brief Get a property
56 * \param [in] param_id
57 * \param [in,out] value
61 get_property (GObject
*object
, guint param_id
, GValue
*value
, GParamSpec
*pspec
)
63 //GschemMainWindow *window = GSCHEM_MAIN_WINDOW (object);
67 G_OBJECT_WARN_INVALID_PROPERTY_ID (object
, param_id
, pspec
);
73 /*! \brief Initialize GschemMainWindow class
75 * \param [in] klass The class for the GschemMainWindow
78 gschem_main_window_class_init (GschemMainWindowClass
*klass
)
80 G_OBJECT_CLASS (klass
)->get_property
= get_property
;
81 G_OBJECT_CLASS (klass
)->set_property
= set_property
;
86 /*! \brief Get/register GschemSelection type.
89 gschem_main_window_get_type ()
91 static GType type
= 0;
94 static const GTypeInfo info
= {
95 sizeof(GschemMainWindowClass
),
97 NULL
, /* base_finalize */
98 (GClassInitFunc
) gschem_main_window_class_init
,
99 NULL
, /* class_finalize */
100 NULL
, /* class_data */
101 sizeof(GschemMainWindow
),
103 (GInstanceInitFunc
) gschem_main_window_init
,
106 type
= g_type_register_static (GTK_TYPE_WINDOW
, "GschemMainWindow", &info
, 0);
114 /*! \brief Initialize GschemSelection instance
116 * \param [in,out] selection
119 gschem_main_window_init (GschemMainWindow
*window
)
125 /*! \brief Create a new instanceof the GschemMainWindow
127 * \return A new instanceof the GschemMainWindow
130 gschem_main_window_new ()
132 return GSCHEM_MAIN_WINDOW (g_object_new (GSCHEM_TYPE_MAIN_WINDOW
,
133 "type", GTK_WINDOW_TOPLEVEL
,
139 /*! \brief Set a property
141 * \param [in,out] object
142 * \param [in] param_id
147 set_property (GObject
*object
, guint param_id
, const GValue
*value
, GParamSpec
*pspec
)
149 //GschemMainWindow *window = GSCHEM_MAIN_WINDOW (object);
153 G_OBJECT_WARN_INVALID_PROPERTY_ID (object
, param_id
, pspec
);