Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

general: Move log messages from g_print to g_info #39

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/editor/editor.c
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ _erase_content (TextFragment *item,
}
else
{
g_print ("Cannot delete a non-opaque inline element");
g_info ("Cannot delete a non-opaque inline element");
}
}

Expand Down Expand Up @@ -1319,7 +1319,7 @@ text_editor_split_at_mark (TextEditor *self,
// TODO: Make supported
if (!TEXT_IS_RUN (start))
{
g_print ("Unsupported!\n");
g_info ("Unsupported!\n");
}
else
{
Expand Down Expand Up @@ -1451,7 +1451,7 @@ text_editor_insert_text_at_mark (TextEditor *self,
}
else
{
g_print ("Not supported: Inserting into non-text run\n");
g_info ("Not supported: Inserting into non-text run\n");
return;
}
}
Expand Down Expand Up @@ -1546,7 +1546,7 @@ text_editor_insert_fragment_at_mark (TextEditor *self,
}
else
{
g_print ("Cannot split opaque inline element!\n");
g_info ("Cannot split opaque inline element!\n");
return;
}

Expand Down
6 changes: 3 additions & 3 deletions src/format/import-html.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ build_text_frame_recursive (xmlNode *nodes,
else
{
// Catch-all for not-yet implemented elements
g_print ("Ignored element %s\n", cur_node->name);
g_info ("Ignored element %s\n", cur_node->name);
}
}
else if (cur_node->type == XML_TEXT_NODE)
Expand Down Expand Up @@ -134,7 +134,7 @@ format_parse_html (const gchar *html)
xmlNode *root;
TextFrame *frame;

g_print ("%s\n", html);
g_info ("%s\n", html);

doc = htmlParseDoc ((const guchar *)html, "utf-8");

Expand All @@ -156,7 +156,7 @@ format_parse_html (const gchar *html)

frame = text_frame_new ();

g_print ("Root Node discovered: %s\n", root->name);
g_info ("Root Node discovered: %s\n", root->name);

build_text_frame (root, frame);

Expand Down
6 changes: 3 additions & 3 deletions src/ui/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ text_display_set_property (GObject *object,
static void
_rebuild_layout_tree (TextDisplay *self, int width)
{
g_print ("Rebuilding layout tree\n");
g_info ("Rebuilding layout tree\n");

if (self->layout_tree)
text_node_clear (&self->layout_tree);
Expand Down Expand Up @@ -912,7 +912,7 @@ commit (GtkIMContext *context,
gtk_widget_queue_allocate (GTK_WIDGET (self));
gtk_widget_queue_draw (GTK_WIDGET (self));

g_print ("commit: %s\n", str);
g_info ("commit: %s\n", str);
}

static gboolean
Expand Down Expand Up @@ -1103,7 +1103,7 @@ key_pressed (GtkEventControllerKey *controller,
clipboard = gdk_display_get_clipboard (display);

text = text_editor_dump_plain_text (self->editor);
g_print ("Saving to clipboard:\nSTART\n%s\nEND\n", text);
g_info ("Saving to clipboard:\nSTART\n%s\nEND\n", text);

// "Save" to clipboard for now
gdk_clipboard_set_text (clipboard, text);
Expand Down
Loading