~ubuntu-branches/ubuntu/precise/uim/precise

« back to all changes in this revision

Viewing changes to uim/uim-notify.c

  • Committer: Package Import Robot
  • Author(s): Ilya Barygin
  • Date: 2011-12-18 16:35:38 UTC
  • mfrom: (1.1.13) (15.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20111218163538-8ktir39z2mjpii8z
Tags: 1:1.7.1-3ubuntu1
* Merge from Debian testing (LP: #818199).
* Remaining changes:
  - debian/uim-qt.install: Fix plugin path for multiarch location.
* Dropped changes:
  - uim-applet-gnome removal (GNOME 3 applet is available)
  - 19_as-needed_compile_fix.dpatch (accepted into Debian package)
* translations.patch: add several files to POTFILE.in to prevent
  intltool-update failure.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
  Copyright (c) 2003-2009 uim Project http://code.google.com/p/uim/
 
2
  Copyright (c) 2003-2011 uim Project http://code.google.com/p/uim/
3
3
 
4
4
  All rights reserved.
5
5
 
50
50
#include "uim-scm-abbrev.h"
51
51
#include "uim-internal.h"
52
52
#include "uim-notify.h"
53
 
 
54
 
 
55
 
#define NOTIFY_PLUGIN_PATH LIBDIR "/uim/notify"
 
53
#include "gettext.h"
 
54
 
 
55
#define NOTIFY_PLUGIN_PATH PKGLIBDIR "/notify"
56
56
#define NOTIFY_PLUGIN_PREFIX "libuimnotify-"
57
57
#define NOTIFY_PLUGIN_SUFFIX ".so"
58
58
 
219
219
 * Scheme interfaces
220
220
 */
221
221
static uim_lisp
222
 
notify_get_plugins(void)
 
222
notify_get_plugins_internal(void)
223
223
{
224
224
  uim_lisp ret_;
225
225
  DIR *dirp;
281
281
}
282
282
 
283
283
static uim_lisp
 
284
notify_get_plugins(void)
 
285
{
 
286
  return (uim_lisp)uim_scm_call_with_gc_ready_stack((uim_gc_gate_func_ptr)notify_get_plugins_internal,
 
287
                                                    NULL);
 
288
}
 
289
 
 
290
static uim_lisp
284
291
notify_load(uim_lisp name_)
285
292
{
286
293
  const char *name = REFER_C_STR(name_);
360
367
uim_notify_stderr_info(const char *msg)
361
368
{
362
369
  fputs("libuim: [info] ", stderr);
363
 
  fputs(msg, stderr);
 
370
  fputs(dgettext(GETTEXT_PACKAGE, msg), stderr);
364
371
  fputs("\n", stderr);
365
372
 
366
373
  return UIM_TRUE;
373
380
   * exhaustion, printf()s with indirect directives are intentionally
374
381
   * avoided here.  -- YamaKen 2008-02-11 */
375
382
  fputs("libuim: [fatal] ", stderr);
376
 
  fputs(msg, stderr);
 
383
  fputs(dgettext(GETTEXT_PACKAGE, msg), stderr);
377
384
  fputs("\n", stderr);
378
385
 
379
386
  return UIM_TRUE;