~ubuntu-branches/debian/sid/link-monitor-applet/sid

« back to all changes in this revision

Viewing changes to jbsrc/lm-gdk-pixbuf-loader.c

  • Committer: Bazaar Package Importer
  • Author(s): Adriaan Peeters
  • Date: 2008-03-30 22:26:13 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20080330222613-5aubcuo9mgg2n7st
Tags: upstream-3.0
ImportĀ upstreamĀ versionĀ 3.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "jb.h"
 
2
 
 
3
gboolean
 
4
lm_gdk_pixbuf_loader_check (const char *sample_image, const char *mime_type)
 
5
{
 
6
  gboolean result;
 
7
  char *cppflags;
 
8
 
 
9
  if (! jb_check_packages("GdkPixbuf", "gdk-pixbuf", "gdk-pixbuf-2.0"))
 
10
    return FALSE;
 
11
 
 
12
  jb_message_checking("if GTK+ can load %s images", mime_type);
 
13
 
 
14
  cppflags = g_strdup_printf("-DLM_GDK_PIXBUF_LOADER_FILE=\"\\\"%s\\\"\"", sample_image);
 
15
  result = jb_test_run("jbsrc/lm-gdk-pixbuf-loader-test.c",
 
16
                       jb_variable_get_string("gdk-pixbuf-cflags"),
 
17
                       cppflags,
 
18
                       jb_variable_get_string("gdk-pixbuf-ldflags"));
 
19
  g_free(cppflags);
 
20
 
 
21
  jb_message_result_bool(result);
 
22
 
 
23
  return result;
 
24
}