summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Hallendal <micke@codefactory.se>2002-01-30 12:54:42 +0000
committerMikael Hallendal <hallski@src.gnome.org>2002-01-30 12:54:42 +0000
commit1da55a3c4d80814033628d05162225d1409dacba (patch)
treee5c6724529891e73927d73f39818ce0179fab9fd
parent311b8045fe423305d016290fd6d48fb7450037a0 (diff)
downloadyelp-1da55a3c4d80814033628d05162225d1409dacba.tar.gz
removed debug printouts.
2002-01-30 Mikael Hallendal <micke@codefactory.se> * src/yelp-util.c: removed debug printouts. * src/yelp-html.c: hide debug printouts. * src/yelp-view-content.c: same. * src/yelp-window.c: same.
-rw-r--r--ChangeLog8
-rw-r--r--src/yelp-html.c2
-rw-r--r--src/yelp-util.c10
-rw-r--r--src/yelp-view-content.c4
-rw-r--r--src/yelp-window.c18
5 files changed, 19 insertions, 23 deletions
diff --git a/ChangeLog b/ChangeLog
index 2088b243..0d668424 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2002-01-30 Mikael Hallendal <micke@codefactory.se>
+ * src/yelp-util.c: removed debug printouts.
+
+ * src/yelp-html.c: hide debug printouts.
+
+ * src/yelp-view-content.c: same.
+
+ * src/yelp-window.c: same.
+
* src/yelp-window.c (yw_populate): translate strings from item
factory.
diff --git a/src/yelp-html.c b/src/yelp-html.c
index 4528580e..5311d7fd 100644
--- a/src/yelp-html.c
+++ b/src/yelp-html.c
@@ -34,7 +34,7 @@
#include <stdio.h>
#include "yelp-html.h"
-#define d(x) x
+#define d(x)
typedef struct _StreamData StreamData;
diff --git a/src/yelp-util.c b/src/yelp-util.c
index ecd7f9a6..8e67b2c2 100644
--- a/src/yelp-util.c
+++ b/src/yelp-util.c
@@ -27,7 +27,6 @@
/* This code comes from gnome vfs: */
-
static gboolean
is_uri_relative (const char *uri)
{
@@ -450,9 +449,6 @@ tree_find_node (GNode *node, const gchar *uri)
}
if (!g_ascii_strcasecmp (uri, section->uri)) {
- g_print (">>>>>>>>>>>>>>>> FOUND A MATCH: %s == %s\n",
- uri, section->uri);
-
found_node = node;
return TRUE;
}
@@ -522,12 +518,6 @@ yelp_util_extract_docpath_from_uri (const gchar *str_uri)
}
}
- if (docpath) {
- g_print ("||||| docpath: %s\n", docpath);
- } else {
- g_print ("----- transformed_uri: %s\n", transformed_uri);
- }
-
return docpath;
}
diff --git a/src/yelp-view-content.c b/src/yelp-view-content.c
index c0313f55..b653e32c 100644
--- a/src/yelp-view-content.c
+++ b/src/yelp-view-content.c
@@ -33,6 +33,8 @@
#include "yelp-util.h"
#include "yelp-view-content.h"
+#define d(x)
+
static void yvc_init (YelpViewContent *html);
static void yvc_class_init (YelpViewContentClass *klass);
static void yvc_tree_selection_changed_cb (GtkTreeSelection *selection,
@@ -96,7 +98,7 @@ yvc_html_url_selected_cb (YelpHtml *html,
YelpViewContent *view)
{
/* Just propagate the signal to the view */
- g_print ("***** URI Clicked: %s, %s\n", base_url, url);
+ d(g_print ("***** URI Clicked: %s, %s\n", base_url, url));
g_signal_emit (view, signals[URL_SELECTED], 0,
url, base_url, handled);
diff --git a/src/yelp-window.c b/src/yelp-window.c
index 7051516a..f99101ca 100644
--- a/src/yelp-window.c
+++ b/src/yelp-window.c
@@ -40,6 +40,8 @@
#include "yelp-view-toc.h"
#include "yelp-window.h"
+#define d(x)
+
static void yw_init (YelpWindow *window);
static void yw_class_init (YelpWindowClass *klass);
@@ -285,16 +287,16 @@ yw_url_selected_cb (gpointer view,
g_return_if_fail (YELP_IS_WINDOW (window));
- g_print ("url_selected: %s base: %s, handled: %d\n", url, base_url, handled);
+ d(g_print ("url_selected: %s base: %s, handled: %d\n", url, base_url, handled));
priv = window->priv;
if (url && base_url) {
abs_url = yelp_util_resolve_relative_uri (base_url, url);
- g_print ("Link '%s' pressed relative to: %s -> %s\n",
- url,
- base_url,
- abs_url);
+ d(g_print ("Link '%s' pressed relative to: %s -> %s\n",
+ url,
+ base_url,
+ abs_url));
} else {
if (url) {
abs_url = g_strdup (url);
@@ -323,8 +325,6 @@ yw_toggle_history_buttons (GtkWidget *button,
g_return_if_fail (GTK_IS_BUTTON (button));
g_return_if_fail (YELP_IS_HISTORY (history));
- g_print ("History button toggled\n");
-
gtk_widget_set_sensitive (button, sensitive);
}
@@ -356,8 +356,6 @@ yw_home_button_clicked (GtkWidget *button, YelpWindow *window)
g_return_if_fail (GTK_IS_BUTTON (button));
g_return_if_fail (YELP_IS_WINDOW (window));
- g_print ("Home button clicked\n");
-
yelp_view_toc_open_url (YELP_VIEW_TOC (window->priv->toc_view),
"toc:");
gtk_notebook_set_current_page (GTK_NOTEBOOK (window->priv->notebook),
@@ -370,8 +368,6 @@ yw_index_button_clicked (GtkWidget *button, YelpWindow *window)
g_return_if_fail (GTK_IS_BUTTON (button));
g_return_if_fail (YELP_IS_WINDOW (window));
- g_print ("Index button clicked\n");
-
gtk_notebook_set_current_page (GTK_NOTEBOOK (window->priv->notebook),
PAGE_INDEX_VIEW);
}