Build fix for < Gtk 2.12 and Glib < 2.16

This commit is contained in:
Christian Dywan 2008-07-28 00:21:45 +02:00
parent d5341ec07c
commit 6f3f0f9d3d
3 changed files with 12 additions and 1 deletions

View file

@ -95,6 +95,13 @@ gdk_pixbuf_new_from_stream (GInputStream* stream,
#if !GTK_CHECK_VERSION(2, 12, 0)
void
gtk_widget_set_has_tooltip (GtkWidget* widget,
gboolean has_tooltip)
{
/* Do nothing */
}
void
gtk_widget_set_tooltip_text (GtkWidget* widget,
const gchar* text)

View file

@ -35,6 +35,10 @@ gdk_pixbuf_new_from_stream (GInputStream* stream,
#if !GTK_CHECK_VERSION(2, 12, 0)
void
gtk_widget_set_has_tooltip (GtkWidget* widget,
gboolean has_tooltip);
void
gtk_widget_set_tooltip_text (GtkWidget* widget,
const gchar* text);

View file

@ -1843,10 +1843,10 @@ _action_source_view_activate (GtkAction* action,
uri = midori_web_view_get_display_uri (MIDORI_WEB_VIEW (web_view));
contents = NULL;
tag = NULL;
#if GLIB_CHECK_VERSION (2, 16, 0)
file = g_file_new_for_uri (uri);
tag = NULL;
#ifdef HAVE_GTKSOURCEVIEW
content_type = NULL;
#endif