lame patch for hp-ux
- From: jacob berkman <jacob ximian com>
- To: gtk-devel-list gnome org
- Subject: lame patch for hp-ux
- Date: 23 Apr 2001 12:19:51 -0400
this is for 1 2
it is a very lame patch
should i commit it?
jacob
--
"I know if you yell 'Fire'...
but I don't know if you yell 'Godzilla.'"
-- Andy Kaufman
diff -Nrc -x *~ gtk+-1.2.8.orig/gtk/gtkmain.c gtk+-1.2.8/gtk/gtkmain.c
*** gtk+-1.2.8.orig/gtk/gtkmain.c Sun Feb 6 22:01:53 2000
--- gtk+-1.2.8/gtk/gtkmain.c Mon Apr 23 12:11:59 2001
***************
*** 342,348 ****
{
gchar *old = module_name;
! module_name = g_strconcat ("lib", module_name, ".so", NULL);
g_free (old);
}
if (g_module_supported ())
--- 342,348 ----
{
gchar *old = module_name;
! module_name = g_module_build_path (NULL, module_name);
g_free (old);
}
if (g_module_supported ())
diff -Nrc -x *~ gtk+-1.2.8.orig/gtk/gtkthemes.c gtk+-1.2.8/gtk/gtkthemes.c
*** gtk+-1.2.8.orig/gtk/gtkthemes.c Sun Jan 23 21:54:30 2000
--- gtk+-1.2.8/gtk/gtkthemes.c Mon Apr 23 12:13:47 2001
***************
*** 67,77 ****
if (!result)
{
! gchar fullname[1024];
gchar *engine_path;
GModule *library;
! g_snprintf (fullname, 1024, "lib%s.so", name);
engine_path = gtk_rc_find_module_in_path (fullname);
if (!engine_path)
--- 67,77 ----
if (!result)
{
! gchar *fullname;
gchar *engine_path;
GModule *library;
! fullname = g_module_build_path (NULL, name);
engine_path = gtk_rc_find_module_in_path (fullname);
if (!engine_path)
***************
*** 79,87 ****
--- 79,90 ----
g_warning (_("Unable to locate loadable module in module_path: \"%s\","),
fullname);
+ g_free (fullname);
return NULL;
}
+ g_free (fullname);
+
/* load the lib */
GTK_NOTE (MISC, g_message ("Loading Theme %s\n", engine_path));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]