gnome-terminal r3224 - trunk/src
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-terminal r3224 - trunk/src
- Date: Sat, 29 Nov 2008 20:15:28 +0000 (UTC)
Author: chpe
Date: Sat Nov 29 20:15:28 2008
New Revision: 3224
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=3224&view=rev
Log:
Only compile the debugging code if debug support is enabled.
Modified:
trunk/src/terminal-screen.c
Modified: trunk/src/terminal-screen.c
==============================================================================
--- trunk/src/terminal-screen.c (original)
+++ trunk/src/terminal-screen.c Sat Nov 29 20:15:28 2008
@@ -190,6 +190,7 @@
g_slice_free (TagData, tagdata);
}
+#ifdef GNOME_ENABLE_DEBUG
static void
parent_size_request (GtkWidget *scrolled_window, GtkRequisition *req, GtkWidget *screen)
{
@@ -197,6 +198,7 @@
"[screen %p] scrolled-window size req %d : %d\n",
screen, req->width, req->height);
}
+#endif
static void
parent_parent_set_cb (GtkWidget *widget,
@@ -229,6 +231,7 @@
if (widget->parent)
g_signal_connect (widget->parent, "parent-set", G_CALLBACK (parent_parent_set_cb), widget);
+#ifdef GNOME_ENABLE_DEBUG
if (_terminal_debug_on (TERMINAL_DEBUG_GEOMETRY))
{
if (old_parent)
@@ -236,6 +239,7 @@
if (widget->parent)
g_signal_connect (widget->parent, "size-request", G_CALLBACK (parent_size_request), widget);
}
+#endif
}
static void
@@ -299,6 +303,7 @@
terminal_screen_change_font (screen);
}
+#ifdef GNOME_ENABLE_DEBUG
static void
size_request (GtkWidget *widget,
GtkRequisition *req)
@@ -316,6 +321,7 @@
"[screen %p] size-alloc %d : %d at (%d, %d)\n",
widget, allocation->width, allocation->height, allocation->x, allocation->y);
}
+#endif
static void
terminal_screen_init (TerminalScreen *screen)
@@ -393,11 +399,13 @@
g_signal_connect (screen, "parent-set", G_CALLBACK (parent_set_callback), NULL);
+#ifdef GNOME_ENABLE_DEBUG
if (_terminal_debug_on (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
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]