summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSorokin Alexei <[email protected]>2016-03-08 02:45:13 +0300
committerSorokin Alexei <[email protected]>2016-03-08 02:45:13 +0300
commita3d1c5f081cf3cf820f6854384ad17ea2cc9c79a (patch)
treedc54743f40544b16c5f175d2b6b5cd69c8d9177b /src
parentc0efce1fb03875877ddc9e7d3a7aca77b10fd434 (diff)
downloadmate-terminal-a3d1c5f081cf3cf820f6854384ad17ea2cc9c79a.tar.bz2
mate-terminal-a3d1c5f081cf3cf820f6854384ad17ea2cc9c79a.tar.xz
remove debug callbacks for deprecated size-request signal
Diffstat (limited to 'src')
-rw-r--r--src/terminal-screen-container.c12
-rw-r--r--src/terminal-screen.c10
-rw-r--r--src/terminal-window.c10
3 files changed, 6 insertions, 26 deletions
diff --git a/src/terminal-screen-container.c b/src/terminal-screen-container.c
index 7017be9..290685c 100644
--- a/src/terminal-screen-container.c
+++ b/src/terminal-screen-container.c
@@ -100,13 +100,13 @@ terminal_screen_container_set_placement_set (TerminalScreenContainer *container,
#if defined(USE_SCROLLED_WINDOW) && defined(MATE_ENABLE_DEBUG)
static void
-size_request_cb (GtkWidget *widget,
- GtkRequisition *req,
- TerminalScreenContainer *container)
+size_allocate_cb (GtkWidget *widget,
+ GdkRectangle *rect,
+ TerminalScreenContainer *container)
{
_terminal_debug_print (TERMINAL_DEBUG_GEOMETRY,
- "[screen %p] scrolled-window size req %d : %d\n",
- container->priv->screen, req->width, req->height);
+ "[screen %p] scrolled-window size alloc %d : %d\n",
+ container->priv->screen, rect->width, rect->height);
}
#endif
@@ -162,7 +162,7 @@ terminal_screen_container_constructor (GType type,
gtk_widget_show (priv->scrolled_window);
#ifdef MATE_ENABLE_DEBUG
- g_signal_connect (priv->scrolled_window, "size-request", G_CALLBACK (size_request_cb), container);
+ g_signal_connect (priv->scrolled_window, "size-allocate", G_CALLBACK (size_allocate_cb), container);
#endif
#else
diff --git a/src/terminal-screen.c b/src/terminal-screen.c
index 6b0c795..8ede9c4 100644
--- a/src/terminal-screen.c
+++ b/src/terminal-screen.c
@@ -344,15 +344,6 @@ terminal_screen_style_set (GtkWidget *widget,
#ifdef MATE_ENABLE_DEBUG
static void
-size_request (GtkWidget *widget,
- GtkRequisition *req)
-{
- _terminal_debug_print (TERMINAL_DEBUG_GEOMETRY,
- "[screen %p] size-request %d : %d\n",
- widget, req->width, req->height);
-}
-
-static void
size_allocate (GtkWidget *widget,
GtkAllocation *allocation)
{
@@ -436,7 +427,6 @@ terminal_screen_init (TerminalScreen *screen)
#ifdef MATE_ENABLE_DEBUG
_TERMINAL_DEBUG_IF (TERMINAL_DEBUG_GEOMETRY)
{
- g_signal_connect_after (screen, "size-request", G_CALLBACK (size_request), NULL);
g_signal_connect_after (screen, "size-allocate", G_CALLBACK (size_allocate), NULL);
}
#endif
diff --git a/src/terminal-window.c b/src/terminal-window.c
index 9bcd397..b2b1295 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -1518,15 +1518,6 @@ terminal_window_accel_activate_cb (GtkAccelGroup *accel_group,
#ifdef MATE_ENABLE_DEBUG
static void
-terminal_window_size_request_cb (GtkWidget *widget,
- GtkRequisition *req)
-{
- _terminal_debug_print (TERMINAL_DEBUG_GEOMETRY,
- "[window %p] size-request result %d : %d\n",
- widget, req->width, req->height);
-}
-
-static void
terminal_window_size_allocate_cb (GtkWidget *widget,
GtkAllocation *allocation)
{
@@ -2071,7 +2062,6 @@ terminal_window_init (TerminalWindow *window)
#ifdef MATE_ENABLE_DEBUG
_TERMINAL_DEBUG_IF (TERMINAL_DEBUG_GEOMETRY)
{
- g_signal_connect_after (window, "size-request", G_CALLBACK (terminal_window_size_request_cb), NULL);
g_signal_connect_after (window, "size-allocate", G_CALLBACK (terminal_window_size_allocate_cb), NULL);
}
#endif