From bda94d0451287dccb0fa7cbb232541c560a773e0 Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Sun, 14 Mar 2021 21:29:30 +0100 Subject: [PATCH] I18N: Drop 2 false c-format flags --- gnucash/gnome/gnc-plugin-page-sx-list.c | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/gnucash/gnome/gnc-plugin-page-sx-list.c b/gnucash/gnome/gnc-plugin-page-sx-list.c index c1b3e193f0..bb49e7f48b 100644 --- a/gnucash/gnome/gnc-plugin-page-sx-list.c +++ b/gnucash/gnome/gnc-plugin-page-sx-list.c @@ -360,8 +360,6 @@ gnc_plugin_page_sx_list_create_widget (GncPluginPage *plugin_page) GtkWidget *vbox; GtkWidget *label; GtkWidget *swin; - char *markup; - char *text; page = GNC_PLUGIN_PAGE_SX_LIST(plugin_page); priv = GNC_PLUGIN_PAGE_SX_LIST_GET_PRIVATE(page); @@ -381,12 +379,9 @@ gnc_plugin_page_sx_list_create_widget (GncPluginPage *plugin_page) gtk_box_set_homogeneous (GTK_BOX (vbox), FALSE); gtk_paned_pack1( GTK_PANED(widget), vbox, TRUE, FALSE); - label = gtk_label_new(NULL); - text = g_strdup_printf(_("Transactions")); - markup = g_markup_printf_escaped (" %s", text); - gtk_label_set_markup (GTK_LABEL (label), markup); - g_free (markup); - g_free (text); + label = gtk_label_new (_("Transactions")); + gnc_widget_style_context_add_class (GTK_WIDGET(label), "gnc-class-strong"); + gtk_widget_set_margin_start (GTK_WIDGET(label), 6); gnc_label_set_alignment (label, 0.0, 0); gtk_widget_show (label); gtk_box_pack_start ( GTK_BOX(vbox), label, FALSE, FALSE, 0); @@ -444,12 +439,9 @@ gnc_plugin_page_sx_list_create_widget (GncPluginPage *plugin_page) gtk_box_set_homogeneous (GTK_BOX (vbox), FALSE); gtk_paned_pack2( GTK_PANED(widget), vbox, TRUE, FALSE); - label = gtk_label_new(NULL); - text = g_strdup_printf(_("Upcoming Transactions")); - markup = g_markup_printf_escaped (" %s", text); - gtk_label_set_markup (GTK_LABEL (label), markup); - g_free (markup); - g_free (text); + label = gtk_label_new (_("Upcoming Transactions")); + gnc_widget_style_context_add_class (GTK_WIDGET(label), "gnc-class-strong"); + gtk_widget_set_margin_start (GTK_WIDGET(label), 6); gnc_label_set_alignment (label, 0.0, 0); gtk_widget_show (label);