Lines 1-75
Link Here
|
1 |
--- Input/vorbis/fileinfo.c.orig Wed Dec 24 09:02:52 2003 |
1 |
--- Input/vorbis/fileinfo.c.orig Sat Feb 7 19:35:28 2004 |
2 |
+++ Input/vorbis/fileinfo.c Wed Dec 24 09:07:28 2003 |
2 |
+++ Input/vorbis/fileinfo.c Sat Feb 7 19:42:05 2004 |
3 |
@@ -498,6 +498,8 @@ |
3 |
@@ -488,12 +488,21 @@ |
4 |
|
4 |
|
5 |
static GtkWidget *filename_entry, *tag_frame; |
5 |
static GtkWidget *filename_entry, *tag_frame; |
6 |
|
6 |
|
|
|
7 |
+ GtkWidget *hbox, *label, *filename_hbox, *vbox, *left_vbox; |
8 |
+ GtkWidget *table, *bbox, *cancel_button; |
9 |
+ GtkWidget *pixmapwid; |
10 |
+ GdkPixbuf *pixbuf; |
11 |
+ PangoAttrList *attrs; |
12 |
+ PangoAttribute *attr; |
13 |
+ GtkWidget *boxx; |
14 |
+ GtkImage *img; |
15 |
+ GtkWidget *test_table; |
7 |
+ struct stat mstat; |
16 |
+ struct stat mstat; |
8 |
+ |
17 |
+ |
9 |
g_free(vte.filename); |
18 |
g_free(vte.filename); |
10 |
vte.filename = g_strdup(fn); |
19 |
vte.filename = g_strdup(fn); |
11 |
|
|
|
12 |
@@ -505,6 +507,13 @@ |
13 |
{ |
14 |
GtkWidget *hbox, *label, *filename_hbox, *vbox, *left_vbox; |
15 |
GtkWidget *table, *bbox, *cancel_button; |
16 |
+ GtkWidget * pixmapwid; |
17 |
+ GdkPixbuf * pixbuf; |
18 |
+ PangoAttrList *attrs; |
19 |
+ PangoAttribute *attr; |
20 |
+ GtkWidget * boxx; |
21 |
+ GtkImage * img; |
22 |
+ GtkWidget * test_table; |
23 |
|
24 |
window = gtk_window_new(GTK_WINDOW_TOPLEVEL); |
25 |
gtk_window_set_policy(GTK_WINDOW(window), FALSE, FALSE, FALSE); |
26 |
@@ -519,14 +528,11 @@ |
27 |
filename_hbox = gtk_hbox_new(FALSE, 5); |
28 |
gtk_box_pack_start(GTK_BOX(vbox), filename_hbox, FALSE, TRUE, 0); |
29 |
|
30 |
- GtkWidget * pixmapwid; |
31 |
- GdkPixbuf * pixbuf = gdk_pixbuf_new_from_xpm_data((const char **)gnome_mime_audio_ogg_xpm); |
32 |
+ pixbuf = gdk_pixbuf_new_from_xpm_data((const char **)gnome_mime_audio_ogg_xpm); |
33 |
pixmapwid = gtk_image_new_from_pixbuf(pixbuf); |
34 |
gtk_misc_set_alignment(GTK_MISC(pixmapwid), 0, 0); |
35 |
gtk_box_pack_start(GTK_BOX(filename_hbox), pixmapwid, FALSE, FALSE, 0); |
36 |
|
37 |
- PangoAttrList *attrs; |
38 |
- PangoAttribute *attr; |
39 |
|
20 |
|
40 |
attrs = pango_attr_list_new (); |
21 |
if (!window) { |
41 |
|
22 |
- GtkWidget *hbox, *label, *filename_hbox, *vbox, *left_vbox; |
42 |
@@ -728,7 +734,6 @@ |
23 |
- GtkWidget *table, *bbox, *cancel_button; |
43 |
GTK_FILL | GTK_EXPAND | GTK_SHRINK, 0, 5); |
24 |
|
|
|
25 |
window = gtk_window_new(GTK_WINDOW_TOPLEVEL); |
26 |
gtk_window_set_policy(GTK_WINDOW(window), FALSE, FALSE, FALSE); |
27 |
@@ -508,17 +517,13 @@ |
28 |
filename_hbox = gtk_hbox_new(FALSE, 5); |
29 |
gtk_box_pack_start(GTK_BOX(vbox), filename_hbox, FALSE, TRUE, 0); |
30 |
|
31 |
- GtkWidget *pixmapwid; |
32 |
- GdkPixbuf *pixbuf = gdk_pixbuf_new_from_xpm_data((const char **) |
33 |
+ pixbuf = gdk_pixbuf_new_from_xpm_data((const char **) |
34 |
gnome_mime_audio_ogg_xpm); |
35 |
pixmapwid = gtk_image_new_from_pixbuf(pixbuf); |
36 |
gtk_misc_set_alignment(GTK_MISC(pixmapwid), 0, 0); |
37 |
gtk_box_pack_start(GTK_BOX(filename_hbox), pixmapwid, FALSE, FALSE, |
38 |
0); |
39 |
|
40 |
- PangoAttrList *attrs; |
41 |
- PangoAttribute *attr; |
42 |
- |
43 |
attrs = pango_attr_list_new(); |
44 |
|
45 |
attr = pango_attr_weight_new(PANGO_WEIGHT_BOLD); |
46 |
@@ -722,7 +727,6 @@ |
47 |
GTK_FILL | GTK_EXPAND | GTK_SHRINK, 0, 5); |
44 |
#endif |
48 |
#endif |
45 |
|
49 |
|
46 |
- GtkWidget * boxx; |
50 |
- GtkWidget *boxx; |
47 |
boxx = gtk_hbutton_box_new(); |
51 |
boxx = gtk_hbutton_box_new(); |
48 |
gtk_hbutton_box_set_layout_default(GTK_BUTTONBOX_SPREAD); |
52 |
gtk_hbutton_box_set_layout_default(GTK_BUTTONBOX_SPREAD); |
49 |
|
53 |
|
50 |
@@ -746,7 +751,7 @@ |
54 |
@@ -739,7 +743,7 @@ |
51 |
gtk_table_attach(table,boxx,0,5,6,7,GTK_FILL,0,0,8); |
55 |
gtk_table_attach(table, boxx, 0, 5, 6, 7, GTK_FILL, 0, 0, 8); |
52 |
|
56 |
|
53 |
rg_show_button = gtk_toggle_button_new(); |
57 |
rg_show_button = gtk_toggle_button_new(); |
54 |
- GtkImage * img = gtk_image_new_from_stock(GTK_STOCK_GO_FORWARD, GTK_ICON_SIZE_MENU); |
58 |
- GtkImage *img = gtk_image_new_from_stock(GTK_STOCK_GO_FORWARD, |
55 |
+ img = gtk_image_new_from_stock(GTK_STOCK_GO_FORWARD, GTK_ICON_SIZE_MENU); |
59 |
+ img = gtk_image_new_from_stock(GTK_STOCK_GO_FORWARD, |
56 |
gtk_container_add(rg_show_button,img); |
60 |
GTK_ICON_SIZE_MENU); |
57 |
g_signal_connect(G_OBJECT(rg_show_button), "toggled", |
61 |
gtk_container_add(rg_show_button, img); |
58 |
G_CALLBACK(rg_show_cb), NULL); |
62 |
g_signal_connect(G_OBJECT(rg_show_button), "toggled", |
59 |
@@ -836,7 +841,7 @@ |
63 |
@@ -832,7 +836,7 @@ |
60 |
gtk_box_set_spacing(GTK_BOX(info_box), 0); |
64 |
gtk_box_set_spacing(GTK_BOX(info_box), 0); |
61 |
|
65 |
|
62 |
// FIXME: Obvious... |
66 |
// FIXME: Obvious... |
63 |
- GtkWidget * test_table = gtk_table_new(2, 10, FALSE); |
67 |
- GtkWidget *test_table = gtk_table_new(2, 10, FALSE); |
64 |
+ test_table = gtk_table_new(2, 10, FALSE); |
68 |
+ test_table = gtk_table_new(2, 10, FALSE); |
65 |
gtk_container_set_border_width(GTK_CONTAINER(test_table), 0); |
69 |
gtk_container_set_border_width(GTK_CONTAINER(test_table), 0); |
66 |
gtk_container_add(GTK_CONTAINER(info_box), test_table); |
70 |
gtk_container_add(GTK_CONTAINER(info_box), test_table); |
67 |
|
71 |
|
68 |
@@ -1068,7 +1073,6 @@ |
72 |
@@ -1073,7 +1077,6 @@ |
69 |
gtk_window_set_title(GTK_WINDOW(window), tmp); |
73 |
gtk_window_set_title(GTK_WINDOW(window), tmp); |
70 |
// rg_show_cb(rg_show_button, NULL); |
74 |
// rg_show_cb(rg_show_button, NULL); |
71 |
|
75 |
|
72 |
- struct stat mstat; |
76 |
- struct stat mstat; |
73 |
stat(fn,&mstat); |
77 |
stat(fn, &mstat); |
74 |
gtk_widget_set_sensitive(tag_frame, ((mstat.st_mode & S_IWRITE) == S_IWRITE ) ); |
78 |
gtk_widget_set_sensitive(tag_frame, |
75 |
|
79 |
((mstat.st_mode & S_IWRITE) == S_IWRITE)); |