[chronojump] socialNetwork poll question in bold



commit faa2a0f60a150366babe98eb8bba182b49e4015a
Author: Xavier de Blas <xaviblas gmail com>
Date:   Tue Jun 8 16:54:48 2021 +0200

    socialNetwork poll question in bold

 glade/app1.glade           | 2 +-
 src/gui/app1/chronojump.cs | 3 +++
 src/gui/sendLogAndPoll.cs  | 9 +++++++++
 3 files changed, 13 insertions(+), 1 deletion(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 3c14c722a..544bcf0b9 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -48612,7 +48612,7 @@ then click this button.</property>
                                                           </packing>
                                                         </child>
                                                         <child>
-                                                          <widget class="GtkLabel" id="label645">
+                                                          <widget class="GtkLabel" 
id="label_social_network_poll_question">
                                                             <property name="visible">True</property>
                                                             <property name="can_focus">False</property>
                                                             <property name="xalign">0</property>
diff --git a/src/gui/app1/chronojump.cs b/src/gui/app1/chronojump.cs
index b81a85ea8..8036ce87f 100644
--- a/src/gui/app1/chronojump.cs
+++ b/src/gui/app1/chronojump.cs
@@ -595,7 +595,10 @@ public partial class ChronoJumpWindow
                        notebook_start.CurrentPage = Convert.ToInt32(notebook_start_pages.SENDLOG);
                }
                else if (showSocialNetworkPoll)
+               {
                        notebook_start.CurrentPage = Convert.ToInt32(notebook_start_pages.SOCIALNETWORKPOLL);
+                       socialNetworkPollInit();
+               }
                else
                        notebook_sup.CurrentPage = Convert.ToInt32(notebook_sup_pages.START);
 
diff --git a/src/gui/sendLogAndPoll.cs b/src/gui/sendLogAndPoll.cs
index fba0750b3..214d4c514 100644
--- a/src/gui/sendLogAndPoll.cs
+++ b/src/gui/sendLogAndPoll.cs
@@ -44,6 +44,7 @@ public partial class ChronoJumpWindow
 
        //--- send poll ----
 
+       [Widget] Gtk.Label label_social_network_poll_question;
        [Widget] Gtk.RadioButton radio_social_network_poll_nsnc;
        [Widget] Gtk.RadioButton radio_social_network_poll_facebook;
        [Widget] Gtk.RadioButton radio_social_network_poll_instagram;
@@ -158,6 +159,14 @@ public partial class ChronoJumpWindow
 
        //--- send poll ----
 
+       private void socialNetworkPollInit ()
+       {
+               //question in bold
+               label_social_network_poll_question.Text = "<b>" + label_social_network_poll_question.Text + 
"</b>";
+               label_social_network_poll_question.UseMarkup = true;
+
+       }
+
        private void on_radio_social_network_poll_toggled (object o, EventArgs args)
        {
                entry_social_network_poll_other.Sensitive = (o == (object) radio_social_network_poll_other);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]