Line 0
Link Here
|
|
|
1 |
--- thunar-plugin/audio-tags-page.c.orig 2006-09-11 11:40:56.000000000 +0200 |
2 |
+++ thunar-plugin/audio-tags-page.c 2011-05-15 19:44:12.000000000 +0200 |
3 |
@@ -90,7 +90,6 @@ |
4 |
ThunarxPropertyPage __parent__; |
5 |
|
6 |
/* Widgets */ |
7 |
- GtkTooltips *tooltips; |
8 |
GtkWidget *table; |
9 |
GtkWidget *save_button; |
10 |
GtkWidget *info_button; |
11 |
@@ -282,10 +281,6 @@ |
12 |
|
13 |
gtk_container_set_border_width (GTK_CONTAINER (page), 8); |
14 |
|
15 |
- /* Allocate the shared tooltips */ |
16 |
- page->tooltips = gtk_tooltips_new (); |
17 |
- exo_gtk_object_ref_sink (GTK_OBJECT (page->tooltips)); |
18 |
- |
19 |
/* Main container */ |
20 |
vbox = gtk_vbox_new (FALSE, 8); |
21 |
gtk_container_add (GTK_CONTAINER (page), vbox); |
22 |
@@ -317,7 +312,8 @@ |
23 |
/* Track spin button */ |
24 |
spin = gtk_spin_button_new (GTK_ADJUSTMENT (adjustment), 1, 0); |
25 |
exo_mutual_binding_new (G_OBJECT (adjustment), "value", G_OBJECT (page), "track"); |
26 |
- gtk_tooltips_set_tip (page->tooltips, spin, _("Enter the track number here."), NULL); |
27 |
+ gtk_widget_set_tooltip_text (GTK_WIDGET (spin), _("Enter the track number here.")); |
28 |
+ |
29 |
gtk_container_add (GTK_CONTAINER (alignment), spin); |
30 |
gtk_label_set_mnemonic_widget (GTK_LABEL (label), spin); |
31 |
gtk_widget_show (spin); |
32 |
@@ -340,7 +336,7 @@ |
33 |
/* Year spin button */ |
34 |
spin = gtk_spin_button_new (GTK_ADJUSTMENT (adjustment), 1, 0); |
35 |
exo_mutual_binding_new (G_OBJECT (adjustment), "value", G_OBJECT (page), "year"); |
36 |
- gtk_tooltips_set_tip (page->tooltips, spin, _("Enter the release year here."), NULL); |
37 |
+ gtk_widget_set_tooltip_text (GTK_WIDGET (spin), _("Enter the release year here.")); |
38 |
gtk_container_add (GTK_CONTAINER (alignment), spin); |
39 |
gtk_label_set_mnemonic_widget (GTK_LABEL (label), spin); |
40 |
gtk_widget_show (spin); |
41 |
@@ -355,7 +351,7 @@ |
42 |
/* Artist entry */ |
43 |
entry = gtk_entry_new (); |
44 |
exo_mutual_binding_new (G_OBJECT (entry), "text", G_OBJECT (page), "artist"); |
45 |
- gtk_tooltips_set_tip (page->tooltips, entry, _("Enter the name of the artist or author of this file here."), NULL); |
46 |
+ gtk_widget_set_tooltip_text (GTK_WIDGET (entry), _("Enter the name of the artist or author of this file here.")); |
47 |
gtk_table_attach (GTK_TABLE (page->table), entry, 1, 4, 1, 2, GTK_EXPAND | GTK_FILL, 0, 0, 0); |
48 |
gtk_label_set_mnemonic_widget (GTK_LABEL (label), entry); |
49 |
gtk_widget_show (entry); |
50 |
@@ -370,7 +366,7 @@ |
51 |
/* Title entry */ |
52 |
entry = gtk_entry_new (); |
53 |
exo_mutual_binding_new (G_OBJECT (entry), "text", G_OBJECT (page), "title"); |
54 |
- gtk_tooltips_set_tip (page->tooltips, entry, _("Enter the song title here."), NULL); |
55 |
+ gtk_widget_set_tooltip_text (GTK_WIDGET (entry), _("Enter the song title here.")); |
56 |
gtk_table_attach (GTK_TABLE (page->table), entry, 1, 4, 2, 3, GTK_EXPAND | GTK_FILL, 0, 0, 0); |
57 |
gtk_widget_show (entry); |
58 |
|
59 |
@@ -384,7 +380,7 @@ |
60 |
/* Album entry */ |
61 |
entry = gtk_entry_new (); |
62 |
exo_mutual_binding_new (G_OBJECT (entry), "text", G_OBJECT (page), "album"); |
63 |
- gtk_tooltips_set_tip (page->tooltips, entry, _("Enter the album/record title here."), NULL); |
64 |
+ gtk_widget_set_tooltip_text (GTK_WIDGET (entry), _("Enter the album/record title here.")); |
65 |
gtk_table_attach (GTK_TABLE (page->table), entry, 1, 4, 3, 4, GTK_EXPAND | GTK_FILL, 0, 0, 0); |
66 |
gtk_widget_show (entry); |
67 |
|
68 |
@@ -398,7 +394,7 @@ |
69 |
/* Comment entry */ |
70 |
entry = gtk_entry_new (); |
71 |
exo_mutual_binding_new (G_OBJECT (entry), "text", G_OBJECT (page), "comment"); |
72 |
- gtk_tooltips_set_tip (page->tooltips, entry, _("Enter your comments here."), NULL); |
73 |
+ gtk_widget_set_tooltip_text (GTK_WIDGET (entry), _("Enter your comments here.")); |
74 |
gtk_table_attach (GTK_TABLE (page->table), entry, 1, 4, 4, 5, GTK_EXPAND | GTK_FILL, 0, 0, 0); |
75 |
gtk_widget_show (entry); |
76 |
|
77 |
@@ -412,7 +408,7 @@ |
78 |
/* Genre combo box */ |
79 |
combo = gtk_combo_box_entry_new_text (); |
80 |
exo_mutual_binding_new (G_OBJECT (GTK_BIN (combo)->child), "text", G_OBJECT (page), "genre"); |
81 |
- gtk_tooltips_set_tip (page->tooltips, combo, _("Select or enter the genre of this song here."), NULL); |
82 |
+ gtk_widget_set_tooltip_text (GTK_WIDGET (combo), _("Select or enter the genre of this song here.")); |
83 |
gtk_table_attach (GTK_TABLE (page->table), combo, 1, 4, 5, 6, GTK_FILL, 0, 0, 0); |
84 |
gtk_widget_show (combo); |
85 |
|
86 |
@@ -512,9 +508,6 @@ |
87 |
if (G_LIKELY (page->genre != NULL)) |
88 |
g_free (page->genre); |
89 |
|
90 |
- /* Release the tooltips */ |
91 |
- g_object_unref (G_OBJECT (page->tooltips)); |
92 |
- |
93 |
(*G_OBJECT_CLASS (audio_tags_page_parent_class)->finalize) (object); |
94 |
} |
95 |
|