summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-08-26 18:58:59 +0200
committerlukefromdc <[email protected]>2019-08-29 20:39:27 +0000
commit9ea74faf261170680f57dc37d18490ccb0fff7f7 (patch)
tree29da6b2c85ac27ac4d1b7d45489e8c2beebbe42d
parent3745b0e978e7488f4d2fbedc071ae70861219d3c (diff)
downloadmate-terminal-9ea74faf261170680f57dc37d18490ccb0fff7f7.tar.bz2
mate-terminal-9ea74faf261170680f57dc37d18490ccb0fff7f7.tar.xz
terminal-window: avoid 'g_type_class_add_private'
-rw-r--r--src/terminal-window.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/terminal-window.c b/src/terminal-window.c
index 77bb577..3993175 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -265,7 +265,7 @@ sync_screen_icon_title (TerminalScreen *screen,
GParamSpec *psepc,
TerminalWindow *window);
-G_DEFINE_TYPE (TerminalWindow, terminal_window, GTK_TYPE_WINDOW)
+G_DEFINE_TYPE_WITH_PRIVATE (TerminalWindow, terminal_window, GTK_TYPE_WINDOW)
/* Menubar mnemonics & accel settings handling */
@@ -2126,7 +2126,7 @@ terminal_window_init (TerminalWindow *window)
GtkAccelGroup *accel_group;
GtkClipboard *clipboard;
- priv = window->priv = G_TYPE_INSTANCE_GET_PRIVATE (window, TERMINAL_TYPE_WINDOW, TerminalWindowPrivate);
+ priv = window->priv = terminal_window_get_instance_private (window);
g_signal_connect (G_OBJECT (window), "delete_event",
G_CALLBACK(terminal_window_delete_event),
@@ -2289,8 +2289,6 @@ terminal_window_class_init (TerminalWindowClass *klass)
widget_class->map_event = terminal_window_map_event;
widget_class->window_state_event = terminal_window_state_event;
widget_class->screen_changed = terminal_window_screen_changed;
-
- g_type_class_add_private (object_class, sizeof (TerminalWindowPrivate));
}
static void