Get rid of GncScrolledWindow.

It's just a pointless rename, no added value at all.
This commit is contained in:
John Ralls 2020-05-20 16:29:07 -07:00
parent 700e2dc5ac
commit 53e48ab6fa
4 changed files with 2 additions and 158 deletions

View File

@ -11,7 +11,6 @@ set (register_gnome_SOURCES
gnucash-item-edit.c
gnucash-item-list.c
gnucash-register.c
gnucash-scrolled-window.c
gnucash-sheet-private.c
gnucash-sheet.c
gnucash-style.c
@ -29,7 +28,6 @@ set (register_gnome_noinst_HEADERS
gnucash-item-edit.h
gnucash-item-list.h
gnucash-register.h
gnucash-scrolled-window.h
gnucash-sheet.h
gnucash-sheetP.h
gnucash-style.h

View File

@ -34,7 +34,6 @@
#include "gnc-engine.h"
#include "gnucash-item-list.h"
#include "gnucash-scrolled-window.h"
/* Item list signals */
enum
@ -486,8 +485,8 @@ gnc_item_list_new (GtkListStore* list_store)
GNC_ITEM_LIST (g_object_new (GNC_TYPE_ITEM_LIST,
NULL));
scrollwin = gnc_scrolled_window_new();
gtk_container_add (GTK_CONTAINER (item_list), scrollwin);
scrollwin = gtk_scrolled_window_new(NULL, NULL);
gtk_container_add (GTK_CONTAINER (item_list), GTK_WIDGET (scrollwin));
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrollwin),
GTK_POLICY_AUTOMATIC,

View File

@ -1,92 +0,0 @@
/********************************************************************\
* gnucash-scrolled-window.c -- gnucash specific scrolled window *
* Copyright (C) 2001 Gnumatic, Inc. *
* Author: Dave Peticolas <dave@krondo.com> *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License as *
* published by the Free Software Foundation; either version 2 of *
* the License, or (at your option) any later version. *
* *
* This program 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 General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License*
* along with this program; if not, contact: *
* *
* Free Software Foundation Voice: +1-617-542-5942 *
* 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
* Boston, MA 02110-1301, USA gnu@gnu.org *
\********************************************************************/
#include <config.h>
#include "gnucash-scrolled-window.h"
/** Static Globals ****************************************************/
static GtkScrolledWindowClass *parent_class = NULL;
/** Declarations ******************************************************/
static void gnc_scrolled_window_class_init (GncScrolledWindowClass *klass);
static void gnc_scrolled_window_init (GncScrolledWindow *scrollwin);
/** Implementations ***************************************************/
GType
gnc_scrolled_window_get_type (void)
{
static GType gnc_scrolled_window_type = 0;
if (!gnc_scrolled_window_type)
{
static const GTypeInfo gnc_scrolled_window_info =
{
sizeof (GncScrolledWindowClass),
NULL,
NULL,
(GClassInitFunc) gnc_scrolled_window_class_init,
NULL,
NULL,
sizeof (GncScrolledWindow),
0,
(GInstanceInitFunc) gnc_scrolled_window_init
};
gnc_scrolled_window_type = g_type_register_static (GTK_TYPE_SCROLLED_WINDOW,
"GncScrolledWindow",
&gnc_scrolled_window_info, 0);
}
return gnc_scrolled_window_type;
}
GtkWidget *
gnc_scrolled_window_new (void)
{
return gtk_widget_new (GNC_TYPE_SCROLLED_WINDOW,
"hadjustment", NULL,
"vadjustment", NULL,
NULL);
}
static void
gnc_scrolled_window_class_init (GncScrolledWindowClass *klass)
{
GtkScrolledWindowClass *scroll_class = GTK_SCROLLED_WINDOW_CLASS (klass);
parent_class = g_type_class_peek_parent (klass);
scroll_class->scrollbar_spacing = 0;
}
static void
gnc_scrolled_window_init (GncScrolledWindow *scrollwin)
{
}

View File

@ -1,61 +0,0 @@
/********************************************************************\
* gnucash-scrolled-window.h -- gnucash specific scrolled window *
* Copyright (C) 2001 Gnumatic, Inc. *
* Author: Dave Peticolas <dave@krondo.com> *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License as *
* published by the Free Software Foundation; either version 2 of *
* the License, or (at your option) any later version. *
* *
* This program 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 General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License*
* along with this program; if not, contact: *
* *
* Free Software Foundation Voice: +1-617-542-5942 *
* 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
* Boston, MA 02110-1301, USA gnu@gnu.org *
\********************************************************************/
#ifndef GNC_SCROLLED_WINDOW_H
#define GNC_SCROLLED_WINDOW_H
#include <gtk/gtk.h>
/** @ingroup Register
* @addtogroup Gnome
* @{
* @brief Gtk+-2 widgets for displaying SplitRegister components.
*/
/** @file gnucash-scrolled-window.h
* @brief Public declarations for GncScrolledWindow class
*/
G_BEGIN_DECLS
#define GNC_TYPE_SCROLLED_WINDOW (gnc_scrolled_window_get_type ())
#define GNC_SCROLLED_WINDOW(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNC_TYPE_SCROLLED_WINDOW, GNCScrolledWindow))
#define GNC_SCROLLED_WINDOW_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GNC_TYPE_SCROLLED_WINDOW, GNCScrolledWindowClass))
#define GNC_IS_SCROLLED_WINDOW(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNC_TYPE_SCROLLED_WINDOW))
#define GNC_IS_SCROLLED_WINDOW_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GNC_TYPE_SCROLLED_WINDOW))
typedef struct
{
GtkScrolledWindow scrollwin;
} GncScrolledWindow;
typedef struct
{
GtkScrolledWindowClass parent_class;
} GncScrolledWindowClass;
GType gnc_scrolled_window_get_type (void);
GtkWidget *gnc_scrolled_window_new (void);
G_END_DECLS
/** @} */
#endif /* GNC_SCROLLED_WINDOW_H */