diff options
author | Rob Kendrick <rjek@netsurf-browser.org> | 2007-06-15 22:07:11 +0000 |
---|---|---|
committer | Rob Kendrick <rjek@netsurf-browser.org> | 2007-06-15 22:07:11 +0000 |
commit | 43257a160bbdef8a8381fc7cc01741568ae1e320 (patch) | |
tree | 6f34e444c24604101fe6868e9a19d4ee97c97444 /gtk | |
parent | ed61b382bc12f15df4bb5306efb7980e7dc293aa (diff) | |
download | netsurf-43257a160bbdef8a8381fc7cc01741568ae1e320.tar.gz netsurf-43257a160bbdef8a8381fc7cc01741568ae1e320.tar.bz2 |
Changes to allow building on Solaris.
* Tested on Solaris Express: Developer Edition,
which is between Solaris 10 and 11.
* Used gcc, libmng etc packages using pkg-get and blastwave's resources.
* Had to build lemon and re2c manually.
svn path=/trunk/netsurf/; revision=3350
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtk_gui.c | 2 | ||||
-rw-r--r-- | gtk/gtk_window.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtk_gui.c b/gtk/gtk_gui.c index 13fd3c570..47a3cfd04 100644 --- a/gtk/gtk_gui.c +++ b/gtk/gtk_gui.c @@ -393,7 +393,7 @@ void warn_user(const char *warning, const char *detail) { char buf[300]; /* 300 is the size the RISC OS GUI uses */ - LOG(("%s %s", warning, detail)); + LOG(("%s %s", warning, detail ? detail : "")); fflush(stdout); snprintf(buf, sizeof(buf), "%s %s", messages_get(warning), diff --git a/gtk/gtk_window.c b/gtk/gtk_window.c index b1ed0f731..317af10a0 100644 --- a/gtk/gtk_window.c +++ b/gtk/gtk_window.c @@ -487,7 +487,8 @@ gboolean nsgtk_window_size_allocate_event(GtkWidget *widget, { struct gui_window *g = data; - LOG(("Size allocate for %s scheduling reflow\n", g->bw->name)); + LOG(("Size allocate for %s scheduling reflow\n", g->bw->name ? + g->bw->name : "(none")); /* schedule a callback to perform the resize for 1/10s from now */ schedule(5, (gtk_callback)(nsgtk_window_reflow_content), g); |