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