[chronojump] Send poll with icons on buttons
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Send poll with icons on buttons
- Date: Mon, 26 Jul 2021 16:34:48 +0000 (UTC)
commit f61b678122f2f9fcf64b40f141c8341d8b59743a
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Jul 26 18:34:33 2021 +0200
Send poll with icons on buttons
glade/app1.glade | 64 +++++++++++++++++++++++++++++++++++++++++++----
src/gui/sendLogAndPoll.cs | 4 +++
2 files changed, 63 insertions(+), 5 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index 53bc44c3f..02bd04110 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -49060,8 +49060,8 @@ then click this button.</property>
<property name="stock">gtk-missing-image</property>
</widget>
<packing>
- <property name="expand">True</property>
- <property name="fill">True</property>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
@@ -49644,12 +49644,42 @@ then click this button.</property>
<property name="can_focus">False</property>
<child>
<widget class="GtkButton"
id="button_social_network_poll_send">
- <property name="label" translatable="yes">Send
poll</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
<property
name="receives_default">False</property>
<signal name="clicked"
handler="on_button_social_network_poll_send_clicked" swapped="no"/>
+ <child>
+ <widget class="GtkHBox" id="hbox551">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="spacing">4</property>
+ <child>
+ <widget class="GtkImage"
id="image_button_social_network_poll_send">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property
name="stock">gtk-missing-image</property>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkLabel" id="label653">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Send
poll</property>
+ </widget>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </widget>
+ </child>
</widget>
<packing>
<property name="expand">True</property>
@@ -49790,10 +49820,34 @@ then click this button.</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
- <widget class="GtkLabel" id="label647">
+ <widget class="GtkHBox" id="hbox549">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">Open
Chronojump</property>
+ <property name="spacing">4</property>
+ <child>
+ <widget class="GtkImage"
id="image_button_open_chronojump1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="stock">gtk-missing-image</property>
+ </widget>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkLabel" id="label647">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Open
Chronojump</property>
+ </widget>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
</widget>
</child>
</widget>
diff --git a/src/gui/sendLogAndPoll.cs b/src/gui/sendLogAndPoll.cs
index 4f18b1d55..c4b764ba7 100644
--- a/src/gui/sendLogAndPoll.cs
+++ b/src/gui/sendLogAndPoll.cs
@@ -43,6 +43,7 @@ public partial class ChronoJumpWindow
[Widget] Gtk.Image image_button_send_log;
[Widget] Gtk.Image image_button_check_last_version;
[Widget] Gtk.Image image_button_open_chronojump;
+ [Widget] Gtk.Image image_button_open_chronojump1;
[Widget] Gtk.TextView textview_send_log_message;
//--- send poll ----
@@ -60,6 +61,7 @@ public partial class ChronoJumpWindow
[Widget] Gtk.Entry entry_social_network_poll_other;
[Widget] Gtk.Notebook notebook_social_network_poll_send_result;
[Widget] Gtk.Button button_social_network_poll_send;
+ [Widget] Gtk.Image image_button_social_network_poll_send;
[Widget] Gtk.Image image_social_network_poll_send_yes;
[Widget] Gtk.Image image_social_network_poll_send_no;
[Widget] Gtk.Label label_social_network_poll_message;
@@ -178,6 +180,8 @@ public partial class ChronoJumpWindow
label_social_network_poll_question.Text = "<b>" + label_social_network_poll_question.Text +
"</b>";
label_social_network_poll_question.UseMarkup = true;
+ image_button_social_network_poll_send.Pixbuf = new Pixbuf (null, Util.GetImagePath(false) +
"image_email.png");
+ image_button_open_chronojump1.Pixbuf = new Pixbuf (null, Util.GetImagePath(false) +
"chronojump_kangaroo_icon_transp.png");
}
private void on_radio_social_network_poll_toggled (object o, EventArgs args)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]