diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-04-06 11:09:00 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-04-06 11:09:00 (GMT) |
commit | 944225261e872785366d1df5377f59ea917a2195 (patch) | |
tree | fb6d2c12e22f368808bfb92557d647b1e5688a8a /src/gtkext/gtksourceview.c | |
parent | e108e192582aa1dbe020dfbc09bee5e6ab2cc534 (diff) |
Done some refactoring in order to make the code more GObject-friendly.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@506 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext/gtksourceview.c')
-rw-r--r-- | src/gtkext/gtksourceview.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gtkext/gtksourceview.c b/src/gtkext/gtksourceview.c index 0b008fa..113b9bb 100644 --- a/src/gtkext/gtksourceview.c +++ b/src/gtkext/gtksourceview.c @@ -80,6 +80,11 @@ G_DEFINE_TYPE(GtkSourceView, gtk_source_view, GTK_TYPE_BUFFER_VIEW) static void gtk_source_view_class_init(GtkSourceViewClass *class) { + GtkViewPanelClass *panel_class; /* Classe parente */ + + panel_class = GTK_VIEW_PANEL_CLASS(class); + + panel_class->attach = (attach_binary_fc)gtk_source_view_attach_binary; } @@ -98,11 +103,6 @@ static void gtk_source_view_class_init(GtkSourceViewClass *class) static void gtk_source_view_init(GtkSourceView *view) { - GtkViewPanel *panel; /* Instance parente */ - - panel = GTK_VIEW_PANEL(view); - - panel->attach = (attach_binary_fc)gtk_source_view_attach_binary; } |