aboutsummaryrefslogtreecommitdiff
path: root/multimedia/beep-media-player/files/patch-Input::vorbis::fileinfo.c
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2004-02-08 08:08:09 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2004-02-08 08:08:09 +0000
commit26a1705d0ef2f0140abf9e7d7f1abce7ee3c2c1e (patch)
treef1f3704aac3ae74cf816d15b6fce538001eb0029 /multimedia/beep-media-player/files/patch-Input::vorbis::fileinfo.c
parentaf7eeffdf1a6bb773024a4ff775ad684823b9383 (diff)
downloadports-26a1705d0ef2f0140abf9e7d7f1abce7ee3c2c1e.tar.gz
ports-26a1705d0ef2f0140abf9e7d7f1abce7ee3c2c1e.zip
Notes
Diffstat (limited to 'multimedia/beep-media-player/files/patch-Input::vorbis::fileinfo.c')
-rw-r--r--multimedia/beep-media-player/files/patch-Input::vorbis::fileinfo.c122
1 files changed, 63 insertions, 59 deletions
diff --git a/multimedia/beep-media-player/files/patch-Input::vorbis::fileinfo.c b/multimedia/beep-media-player/files/patch-Input::vorbis::fileinfo.c
index 5865194255da..e4ddca3ff2c3 100644
--- a/multimedia/beep-media-player/files/patch-Input::vorbis::fileinfo.c
+++ b/multimedia/beep-media-player/files/patch-Input::vorbis::fileinfo.c
@@ -1,75 +1,79 @@
---- Input/vorbis/fileinfo.c.orig Wed Dec 24 09:02:52 2003
-+++ Input/vorbis/fileinfo.c Wed Dec 24 09:07:28 2003
-@@ -498,6 +498,8 @@
+--- Input/vorbis/fileinfo.c.orig Sat Feb 7 19:35:28 2004
++++ Input/vorbis/fileinfo.c Sat Feb 7 19:42:05 2004
+@@ -488,12 +488,21 @@
- static GtkWidget *filename_entry, *tag_frame;
+ static GtkWidget *filename_entry, *tag_frame;
++ GtkWidget *hbox, *label, *filename_hbox, *vbox, *left_vbox;
++ GtkWidget *table, *bbox, *cancel_button;
++ GtkWidget *pixmapwid;
++ GdkPixbuf *pixbuf;
++ PangoAttrList *attrs;
++ PangoAttribute *attr;
++ GtkWidget *boxx;
++ GtkImage *img;
++ GtkWidget *test_table;
+ struct stat mstat;
+
- g_free(vte.filename);
- vte.filename = g_strdup(fn);
-
-@@ -505,6 +507,13 @@
- {
- GtkWidget *hbox, *label, *filename_hbox, *vbox, *left_vbox;
- GtkWidget *table, *bbox, *cancel_button;
-+ GtkWidget * pixmapwid;
-+ GdkPixbuf * pixbuf;
-+ PangoAttrList *attrs;
-+ PangoAttribute *attr;
-+ GtkWidget * boxx;
-+ GtkImage * img;
-+ GtkWidget * test_table;
+ g_free(vte.filename);
+ vte.filename = g_strdup(fn);
- window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
- gtk_window_set_policy(GTK_WINDOW(window), FALSE, FALSE, FALSE);
-@@ -519,14 +528,11 @@
- filename_hbox = gtk_hbox_new(FALSE, 5);
- gtk_box_pack_start(GTK_BOX(vbox), filename_hbox, FALSE, TRUE, 0);
+ if (!window) {
+- GtkWidget *hbox, *label, *filename_hbox, *vbox, *left_vbox;
+- GtkWidget *table, *bbox, *cancel_button;
-- GtkWidget * pixmapwid;
-- GdkPixbuf * pixbuf = gdk_pixbuf_new_from_xpm_data((const char **)gnome_mime_audio_ogg_xpm);
-+ pixbuf = gdk_pixbuf_new_from_xpm_data((const char **)gnome_mime_audio_ogg_xpm);
- pixmapwid = gtk_image_new_from_pixbuf(pixbuf);
- gtk_misc_set_alignment(GTK_MISC(pixmapwid), 0, 0);
- gtk_box_pack_start(GTK_BOX(filename_hbox), pixmapwid, FALSE, FALSE, 0);
+ window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
+ gtk_window_set_policy(GTK_WINDOW(window), FALSE, FALSE, FALSE);
+@@ -508,17 +517,13 @@
+ filename_hbox = gtk_hbox_new(FALSE, 5);
+ gtk_box_pack_start(GTK_BOX(vbox), filename_hbox, FALSE, TRUE, 0);
-- PangoAttrList *attrs;
-- PangoAttribute *attr;
+- GtkWidget *pixmapwid;
+- GdkPixbuf *pixbuf = gdk_pixbuf_new_from_xpm_data((const char **)
++ pixbuf = gdk_pixbuf_new_from_xpm_data((const char **)
+ gnome_mime_audio_ogg_xpm);
+ pixmapwid = gtk_image_new_from_pixbuf(pixbuf);
+ gtk_misc_set_alignment(GTK_MISC(pixmapwid), 0, 0);
+ gtk_box_pack_start(GTK_BOX(filename_hbox), pixmapwid, FALSE, FALSE,
+ 0);
- attrs = pango_attr_list_new ();
+- PangoAttrList *attrs;
+- PangoAttribute *attr;
+-
+ attrs = pango_attr_list_new();
-@@ -728,7 +734,6 @@
- GTK_FILL | GTK_EXPAND | GTK_SHRINK, 0, 5);
+ attr = pango_attr_weight_new(PANGO_WEIGHT_BOLD);
+@@ -722,7 +727,6 @@
+ GTK_FILL | GTK_EXPAND | GTK_SHRINK, 0, 5);
#endif
-- GtkWidget * boxx;
- boxx = gtk_hbutton_box_new();
- gtk_hbutton_box_set_layout_default(GTK_BUTTONBOX_SPREAD);
+- GtkWidget *boxx;
+ boxx = gtk_hbutton_box_new();
+ gtk_hbutton_box_set_layout_default(GTK_BUTTONBOX_SPREAD);
-@@ -746,7 +751,7 @@
- gtk_table_attach(table,boxx,0,5,6,7,GTK_FILL,0,0,8);
+@@ -739,7 +743,7 @@
+ gtk_table_attach(table, boxx, 0, 5, 6, 7, GTK_FILL, 0, 0, 8);
- rg_show_button = gtk_toggle_button_new();
-- GtkImage * img = gtk_image_new_from_stock(GTK_STOCK_GO_FORWARD, GTK_ICON_SIZE_MENU);
-+ img = gtk_image_new_from_stock(GTK_STOCK_GO_FORWARD, GTK_ICON_SIZE_MENU);
- gtk_container_add(rg_show_button,img);
- g_signal_connect(G_OBJECT(rg_show_button), "toggled",
- G_CALLBACK(rg_show_cb), NULL);
-@@ -836,7 +841,7 @@
- gtk_box_set_spacing(GTK_BOX(info_box), 0);
+ rg_show_button = gtk_toggle_button_new();
+- GtkImage *img = gtk_image_new_from_stock(GTK_STOCK_GO_FORWARD,
++ img = gtk_image_new_from_stock(GTK_STOCK_GO_FORWARD,
+ GTK_ICON_SIZE_MENU);
+ gtk_container_add(rg_show_button, img);
+ g_signal_connect(G_OBJECT(rg_show_button), "toggled",
+@@ -832,7 +836,7 @@
+ gtk_box_set_spacing(GTK_BOX(info_box), 0);
- // FIXME: Obvious...
-- GtkWidget * test_table = gtk_table_new(2, 10, FALSE);
-+ test_table = gtk_table_new(2, 10, FALSE);
- gtk_container_set_border_width(GTK_CONTAINER(test_table), 0);
- gtk_container_add(GTK_CONTAINER(info_box), test_table);
+ // FIXME: Obvious...
+- GtkWidget *test_table = gtk_table_new(2, 10, FALSE);
++ test_table = gtk_table_new(2, 10, FALSE);
+ gtk_container_set_border_width(GTK_CONTAINER(test_table), 0);
+ gtk_container_add(GTK_CONTAINER(info_box), test_table);
-@@ -1068,7 +1073,6 @@
- gtk_window_set_title(GTK_WINDOW(window), tmp);
- // rg_show_cb(rg_show_button, NULL);
-
-- struct stat mstat;
- stat(fn,&mstat);
- gtk_widget_set_sensitive(tag_frame, ((mstat.st_mode & S_IWRITE) == S_IWRITE ) );
+@@ -1073,7 +1077,6 @@
+ gtk_window_set_title(GTK_WINDOW(window), tmp);
+ // rg_show_cb(rg_show_button, NULL);
+- struct stat mstat;
+ stat(fn, &mstat);
+ gtk_widget_set_sensitive(tag_frame,
+ ((mstat.st_mode & S_IWRITE) == S_IWRITE));