mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Stephen Evanchik's patch to convert GncItemEdit to GObject/GLib
and fix signal processing:
* src/register/register-gnome/gnucash-item-edit.h:
Made the gnc_item_edit_get_type function return GType
* src/register/register-gnome/gnucash-item-edit.h:
Made the gnc_item_edit_get_type function use GObject
* src/register/register-gnome/gnucash-item-list.c:
Removed an extra button_press_event handler
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gnucash-gnome2-dev@10420 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -1194,26 +1194,29 @@ gnc_item_edit_class_init (GncItemEditClass *gnc_item_edit_class)
|
||||
}
|
||||
|
||||
|
||||
GtkType
|
||||
GType
|
||||
gnc_item_edit_get_type (void)
|
||||
{
|
||||
static GtkType gnc_item_edit_type = 0;
|
||||
static GType gnc_item_edit_type = 0;
|
||||
|
||||
if (!gnc_item_edit_type) {
|
||||
GtkTypeInfo gnc_item_edit_info = {
|
||||
"GncItemEdit",
|
||||
sizeof (GncItemEdit),
|
||||
static const GTypeInfo gnc_item_edit_info = {
|
||||
sizeof (GncItemEditClass),
|
||||
(GtkClassInitFunc) gnc_item_edit_class_init,
|
||||
(GtkObjectInitFunc) gnc_item_edit_init,
|
||||
NULL, /* reserved_1 */
|
||||
NULL, /* reserved_2 */
|
||||
(GtkClassInitFunc) NULL
|
||||
NULL,
|
||||
NULL,
|
||||
(GClassInitFunc) gnc_item_edit_class_init,
|
||||
NULL,
|
||||
NULL,
|
||||
sizeof (GncItemEdit),
|
||||
0, /* n_preallocs */
|
||||
(GInstanceInitFunc) gnc_item_edit_init,
|
||||
NULL,
|
||||
};
|
||||
|
||||
gnc_item_edit_type =
|
||||
gtk_type_unique(gnome_canvas_item_get_type (),
|
||||
&gnc_item_edit_info);
|
||||
g_type_register_static(gnome_canvas_item_get_type (),
|
||||
"GncItemEdit",
|
||||
&gnc_item_edit_info, 0);
|
||||
}
|
||||
|
||||
return gnc_item_edit_type;
|
||||
|
||||
@@ -115,7 +115,7 @@ typedef struct {
|
||||
} GncItemEditClass;
|
||||
|
||||
|
||||
GtkType gnc_item_edit_get_type (void);
|
||||
GType gnc_item_edit_get_type (void);
|
||||
|
||||
void gnc_item_edit_configure (GncItemEdit *item_edit);
|
||||
|
||||
|
||||
@@ -377,9 +377,6 @@ gnc_item_list_new(GnomeCanvasGroup *parent)
|
||||
g_signal_connect_after (G_OBJECT(frame), "button_press_event",
|
||||
G_CALLBACK (gnc_item_list_button_event), item_list);
|
||||
|
||||
g_signal_connect (G_OBJECT (tree_view), "button_press_event",
|
||||
G_CALLBACK (gnc_item_list_key_event), item_list);
|
||||
|
||||
g_signal_connect (G_OBJECT (tree_view), "key_press_event",
|
||||
G_CALLBACK (gnc_item_list_key_event), item_list);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user