[chronojump] Send log with icons on buttons
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] Send log with icons on buttons
- Date: Mon, 26 Jul 2021 16:27:28 +0000 (UTC)
commit c6d8a84040082e9f126af7910a9e090c09d114f9
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Jul 26 18:27:08 2021 +0200
Send log with icons on buttons
glade/app1.glade | 92 ++++++++++++++++++++++++++++++++++++++++++++---
src/gui/sendLogAndPoll.cs | 7 ++++
2 files changed, 95 insertions(+), 4 deletions(-)
---
diff --git a/glade/app1.glade b/glade/app1.glade
index c22d7e90b..53bc44c3f 100644
--- a/glade/app1.glade
+++ b/glade/app1.glade
@@ -48842,12 +48842,42 @@ then click this button.</property>
<property name="spacing">12</property>
<child>
<widget class="GtkButton" id="button_send_log">
- <property name="label" translatable="yes">Send
error log</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_send_log_clicked" swapped="no"/>
+ <child>
+ <widget class="GtkHBox" id="hbox547">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="spacing">4</property>
+ <child>
+ <widget class="GtkImage"
id="image_button_send_log">
+ <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="label257">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Send
error log</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>
@@ -48857,12 +48887,42 @@ then click this button.</property>
</child>
<child>
<widget class="GtkButton"
id="button_check_last_version">
- <property name="label" translatable="yes">Check
last version</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_check_last_version_clicked" swapped="no"/>
+ <child>
+ <widget class="GtkHBox" id="hbox550">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="spacing">4</property>
+ <child>
+ <widget class="GtkImage"
id="image_button_check_last_version">
+ <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="label259">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">Check
last version</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>
@@ -48989,10 +49049,34 @@ then click this button.</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
- <widget class="GtkLabel" id="label520">
+ <widget class="GtkHBox" id="hbox548">
<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_chronojump">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="stock">gtk-missing-image</property>
+ </widget>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <widget class="GtkLabel" id="label520">
+ <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 ac5ad0547..4f18b1d55 100644
--- a/src/gui/sendLogAndPoll.cs
+++ b/src/gui/sendLogAndPoll.cs
@@ -40,6 +40,9 @@ public partial class ChronoJumpWindow
[Widget] Gtk.RadioButton radio_log_portuguese;
[Widget] Gtk.TextView textview_comments;
[Widget] Gtk.Button button_send_log;
+ [Widget] Gtk.Image image_button_send_log;
+ [Widget] Gtk.Image image_button_check_last_version;
+ [Widget] Gtk.Image image_button_open_chronojump;
[Widget] Gtk.TextView textview_send_log_message;
//--- send poll ----
@@ -88,6 +91,10 @@ public partial class ChronoJumpWindow
else
radio_log_english.Active = true;
+ image_button_send_log.Pixbuf = new Pixbuf (null, Util.GetImagePath(false) +
"image_email.png");
+ image_button_check_last_version.Pixbuf = new Pixbuf (null, Util.GetImagePath(false) +
"image_list.png");
+ image_button_open_chronojump.Pixbuf = new Pixbuf (null, Util.GetImagePath(false) +
"chronojump_kangaroo_icon_transp.png");
+
hbox_send_log.Show();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]