From 7c20265637bb9598222be8d84cbebd7ae847a08c Mon Sep 17 00:00:00 2001 From: Wilson Brenna Date: Fri, 23 Aug 2013 08:54:32 -0400 Subject: [PATCH] More descriptive print, and adds feature fixing bug #8. --- src/gui/dialog/LatexGlade.cpp | 4 +++- src/gui/widgets/XournalWidget.cpp | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gui/dialog/LatexGlade.cpp b/src/gui/dialog/LatexGlade.cpp index d1894182..80f109ec 100644 --- a/src/gui/dialog/LatexGlade.cpp +++ b/src/gui/dialog/LatexGlade.cpp @@ -14,7 +14,9 @@ LatexGlade::LatexGlade(GladeSearchpath * gladeSearchPath) : //GtkWidget * vbox = get("texVBox"); //g_return_if_fail(vbox != NULL); this->texBox = get("texEntry"); - gtk_entry_set_max_length(GTK_ENTRY(this->texBox),50); + //gtk_entry_set_max_length(GTK_ENTRY(this->texBox),50); + //increase the maximum length to something reasonable. + gtk_entry_set_max_length(GTK_ENTRY(this->texBox),500); gtk_widget_show(this->texBox); } diff --git a/src/gui/widgets/XournalWidget.cpp b/src/gui/widgets/XournalWidget.cpp index cc71b198..95eaab9c 100644 --- a/src/gui/widgets/XournalWidget.cpp +++ b/src/gui/widgets/XournalWidget.cpp @@ -713,7 +713,7 @@ static gboolean gtk_xournal_expose(GtkWidget * widget, GdkEventExpose * event) { // not visible, its on the right side of the visible area if (px > lastVisibleX) { - printf("test1\n"); + printf("Warning: object on right side of visible area.\n"); } else // not visible, its on the left side of the visible area @@ -723,7 +723,7 @@ static gboolean gtk_xournal_expose(GtkWidget * widget, GdkEventExpose * event) { // } else // not visible, its on the bottom side of the visible area if (py > lastVisibleY) { - printf("test3\n"); + printf("Warning: object below visible area.\n"); // } else // // not visible, its on the top side of the visible area // if (py + ph < firstVisibleY) {