[easytag/wip/future-gtk: 2/2] Use resource property on GtkImage
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/wip/future-gtk: 2/2] Use resource property on GtkImage
- Date: Sun, 3 May 2015 07:46:00 +0000 (UTC)
commit 49a15ab57d4212af87afde94ec2e0d4adaa2122a
Author: David King <amigadave amigadave com>
Date: Sat May 2 12:31:58 2015 +0100
Use resource property on GtkImage
Added in GTK+ 3.8.
data/tag_area.ui | 12 ++++++++++++
src/tag_area.c | 9 ---------
2 files changed, 12 insertions(+), 9 deletions(-)
---
diff --git a/data/tag_area.ui b/data/tag_area.ui
index 8b14243..a671ae5 100644
--- a/data/tag_area.ui
+++ b/data/tag_area.ui
@@ -205,6 +205,12 @@
<property name="tooltip-text" translatable="yes">Number selected tracks
sequentially. Starts at 01 in each subdirectory</property>
<property name="visible">True</property>
<signal name="clicked" handler="on_apply_to_selection"/>
+ <child>
+ <object class="GtkImage" id="track_sequence_image">
+ <property
name="resource">/org/gnome/EasyTAG/images/sequence-track.png</property>
+ <property name="visible">True</property>
+ </object>
+ </child>
</object>
<packing>
<property name="left-attach">3</property>
@@ -251,6 +257,12 @@
<property name="tooltip-text" translatable="yes">Set the number of files, in
the same directory of the displayed file, to the selected tracks</property>
<property name="visible">True</property>
<signal name="clicked" handler="on_apply_to_selection"/>
+ <child>
+ <object class="GtkImage" id="track_number_image">
+ <property
name="resource">/org/gnome/EasyTAG/images/sequence-track.png</property>
+ <property name="visible">True</property>
+ </object>
+ </child>
</object>
<packing>
<property name="left-attach">7</property>
diff --git a/src/tag_area.c b/src/tag_area.c
index 6b889b6..2ebca50 100644
--- a/src/tag_area.c
+++ b/src/tag_area.c
@@ -2147,7 +2147,6 @@ static void
create_tag_area (EtTagArea *self)
{
EtTagAreaPrivate *priv;
- GtkWidget *image;
GList *focus_chain = NULL;
GtkEntryCompletion *completion;
@@ -2168,10 +2167,6 @@ create_tag_area (EtTagArea *self)
et_tag_field_connect_signals (GTK_ENTRY (priv->year_entry), self);
/* Track and Track total */
- /* Pixmap into priv->track_sequence_button button. */
- image = gtk_image_new_from_resource ("/org/gnome/EasyTAG/images/sequence-track.png");
- gtk_container_add (GTK_CONTAINER (priv->track_sequence_button), image);
-
populate_track_combo (self);
gtk_entry_set_width_chars (GTK_ENTRY (gtk_bin_get_child (GTK_BIN (priv->track_combo_entry))),
@@ -2179,10 +2174,6 @@ create_tag_area (EtTagArea *self)
g_signal_connect (GTK_ENTRY (gtk_bin_get_child (GTK_BIN (priv->track_combo_entry))),
"insert-text", G_CALLBACK (Insert_Only_Digit), NULL);
- /* Pixmap into priv->track_number_button button. */
- image = gtk_image_new_from_resource ("/org/gnome/EasyTAG/images/sequence-track.png");
- gtk_container_add (GTK_CONTAINER (priv->track_number_button), image);
-
et_tag_field_connect_signals (GTK_ENTRY (priv->track_total_entry), self);
/* Genre */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]