More descriptive print, and adds feature fixing bug #8.

presentation
Wilson Brenna 13 years ago
parent 9957eec498
commit 7c20265637
  1. 4
      src/gui/dialog/LatexGlade.cpp
  2. 4
      src/gui/widgets/XournalWidget.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);
}

@ -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) {

Loading…
Cancel
Save