[Xfce4-commits] [thunar-plugins/thunar-media-tags-plugin] 10/10: Fix GtkAdjustment declaration
noreply at xfce.org
noreply at xfce.org
Thu Nov 2 23:59:28 CET 2017
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository thunar-plugins/thunar-media-tags-plugin.
commit 834c62e57b88ac8424b94bb41d2993e1d1c935e2
Author: Andre Miranda <andreldm at xfce.org>
Date: Thu Nov 2 19:56:19 2017 -0300
Fix GtkAdjustment declaration
---
thunar-plugin/audio-tags-page.c | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/thunar-plugin/audio-tags-page.c b/thunar-plugin/audio-tags-page.c
index c330703..3a606ac 100644
--- a/thunar-plugin/audio-tags-page.c
+++ b/thunar-plugin/audio-tags-page.c
@@ -268,16 +268,16 @@ audio_tags_page_class_init (AudioTagsPageClass *klass)
static void
audio_tags_page_init (AudioTagsPage *page)
{
- GtkWidget *adjustment;
- GtkWidget *vbox;
- GtkWidget *alignment;
- GtkWidget *label;
- GtkWidget *entry;
- GtkWidget *combo;
- GtkWidget *spin;
- GtkWidget *toplevel;
- GtkAction *action;
- guint i;
+ GtkAdjustment *adjustment;
+ GtkWidget *vbox;
+ GtkWidget *alignment;
+ GtkWidget *label;
+ GtkWidget *entry;
+ GtkWidget *combo;
+ GtkWidget *spin;
+ GtkWidget *toplevel;
+ GtkAction *action;
+ guint i;
/* Default genre list */
static const gchar *genres[] = {
@@ -338,7 +338,7 @@ audio_tags_page_init (AudioTagsPage *page)
adjustment = gtk_adjustment_new (0, 0, 999, 1, 5, 0);
/* Track spin button */
- spin = gtk_spin_button_new (GTK_ADJUSTMENT (adjustment), 0.0, 0);
+ spin = gtk_spin_button_new (adjustment, 0.0, 0);
exo_mutual_binding_new (G_OBJECT (adjustment), "value", G_OBJECT (page), "track");
gtk_widget_set_tooltip_text (GTK_WIDGET (spin), _("Enter the track number here."));
gtk_container_add (GTK_CONTAINER (alignment), spin);
@@ -361,7 +361,7 @@ audio_tags_page_init (AudioTagsPage *page)
adjustment = gtk_adjustment_new (2006, 1700, 9999, 1, 10, 0);
/* Year spin button */
- spin = gtk_spin_button_new (GTK_ADJUSTMENT (adjustment), 1, 0);
+ spin = gtk_spin_button_new (adjustment, 1, 0);
exo_mutual_binding_new (G_OBJECT (adjustment), "value", G_OBJECT (page), "year");
gtk_widget_set_tooltip_text (GTK_WIDGET (spin), _("Enter the release year here."));
gtk_container_add (GTK_CONTAINER (alignment), spin);
@@ -440,7 +440,7 @@ audio_tags_page_init (AudioTagsPage *page)
gtk_widget_show (combo);
for (i=0; i<G_N_ELEMENTS (genres); i++)
- gtk_combo_box_text_append_text (GTK_COMBO_BOX (combo), genres[i]);
+ gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), genres[i]);
/* Create action group for the page */
page->action_group = gtk_action_group_new ("audio-tags-page-actions");
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list