X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-dialog-action-comments.c;h=dcbe4ddaca898d586d454bc8fc1b760cc975f515;hb=e578eb29fb25153e5fa44696963ac5cef58c640d;hp=bbb0a9dfda77e2a775793831b317b65cf884a5e4;hpb=e83d90847323b194bdb04267f9b0eb557fb139d4;p=pspp diff --git a/src/ui/gui/psppire-dialog-action-comments.c b/src/ui/gui/psppire-dialog-action-comments.c index bbb0a9dfda..dcbe4ddaca 100644 --- a/src/ui/gui/psppire-dialog-action-comments.c +++ b/src/ui/gui/psppire-dialog-action-comments.c @@ -188,13 +188,13 @@ psppire_dialog_action_comments_activate (PsppireDialogAction *pda) act->check = get_widget_assert (xml, "comments-checkbutton1"); g_signal_connect_swapped (pda->dialog, "show", G_CALLBACK (retrieve_comments), pda); - + { PangoContext * context ; PangoLayout * layout ; PangoRectangle rect; - + /* Since we're going to truncate lines to 80 chars, we need a monospaced font otherwise it'll look silly */ PangoFontDescription *font_desc = @@ -222,7 +222,7 @@ psppire_dialog_action_comments_activate (PsppireDialogAction *pda) GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); g_object_unref (cssp); } - + /* And let's just make sure that a complete line fits into the widget's width */ context = gtk_widget_create_pango_context (act->textview); @@ -242,7 +242,7 @@ psppire_dialog_action_comments_activate (PsppireDialogAction *pda) pango_font_description_free (font_desc); } - + g_signal_connect (buffer, "mark-set", G_CALLBACK (set_column_number), label); @@ -252,7 +252,7 @@ psppire_dialog_action_comments_activate (PsppireDialogAction *pda) gtk_text_buffer_get_iter_at_offset (buffer, &iter, 0); gtk_text_buffer_place_cursor (buffer, &iter); } - + psppire_dialog_action_set_valid_predicate (pda, dialog_state_valid); psppire_dialog_action_set_refresh (pda, refresh); }