pkgsrc/editors/beaver/patches/patch-ab
bjs 9ceb459145 Update to beaver-0.3.0.1.
pkgsrc changes:
	-- Use correct master site.
	-- Use SUBST framework where appropriate, correcting hard-coded
	   path to pixmaps in interface.c.
	-- Use desktop-file-utils to install new beaver.desktop.
	-- Uses GTK+2 (much better!)

Changes since beaver-0.2.6:
  * First implementation of Python highlighting
  * New About window
  * Massive interface changes to comply with the GNOME HIG
  * Ported to GTK+ 2
2008-08-04 21:34:39 +00:00

22 lines
1.4 KiB
Text

$NetBSD: patch-ab,v 1.1 2008/08/04 21:34:39 bjs Exp $
--- src/interface.c.orig 2008-06-26 23:33:36.000000000 -0400
+++ src/interface.c
@@ -1166,7 +1166,7 @@ void interface (gint argc, gchar *argv[]
gtk_set_locale();
gtk_init (&argc, &argv);
Settings = init_settings ();
- gtk_window_set_default_icon_from_file("../pixmaps/beaver.png", NULL); // set beaver icon for all windows in Beaver
+ gtk_window_set_default_icon_from_file("@PREFIX@/share/pixmaps/beaver/beaver.png", NULL); // set beaver icon for all windows in Beaver
MainWindow = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_policy (GTK_WINDOW(MainWindow), TRUE, TRUE, FALSE);
gtk_window_set_default_size (GTK_WINDOW (MainWindow), MAIN_WINDOW_WIDTH, MAIN_WINDOW_HEIGHT);
@@ -1265,7 +1265,7 @@ void about (void)
{
const char *AUTHORS[] = {"Damien Terrier", "Marc Bevand", "Emmanuel Turquin", "Michael Terry", "Leslie Polzer", "Trevor Brown", "Double 12", "Tobias Heinzen", NULL};
const char *ARTISTS[] = {"Tigert (logo)", "Remy Turquin (website logo)", NULL};
- GdkPixbuf *logo = gdk_pixbuf_new_from_file ("../pixmaps/about.xpm", NULL);
+ GdkPixbuf *logo = gdk_pixbuf_new_from_file ("@PREFIX@/share/pixmaps/beaver/about.xpm", NULL);
GtkWidget *AboutWindow = g_object_new (GTK_TYPE_ABOUT_DIALOG,
"name", APP_NAME,
"version", VERSION_NUMBER,