~ubuntu-branches/debian/squeeze/tasks/squeeze

« back to all changes in this revision

Viewing changes to libkoto/koto-hint-entry.c

  • Committer: Bazaar Package Importer
  • Author(s): Ross Burton, Loic Minier
  • Date: 2008-02-20 17:24:42 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20080220172442-rso0p0yngsf414dy
Tags: 0.13-1
[ Loic Minier ]

* New upstream release.
* Bump up Standards-Version to 3.7.3.
* Rework to build a Hildon flavour of the package.
  - New binary package tasks-hildon; add conflicts with tasks and update
    descriptions; add install file; this package must be the first in the
    control file as to permit the dbg symbols for the standard tasks package
    to be in tasks-dbg instead of the tasks-hildon ones.
  - Add build hooks for configure, build, and install to add flavour /
    package specific rules and configure flags.
  - Build-dep on libhildon-1-dev, libdbus-1-dev, libhildonmime-dev for the
    Hildon flavour.
* Add explicit Copyright statement to debian/copyright.
* Use ${binary:Version} instead of ${Source-Version}; build-dep on dpkg-dev
  >= 1.13.19.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
  text = gtk_entry_get_text (GTK_ENTRY (entry));
56
56
 
57
57
  if (GTK_WIDGET_HAS_FOCUS (entry)) {
58
 
    priv->state = STATE_ENTRY;
59
 
    gtk_widget_modify_text (widget, GTK_STATE_NORMAL, NULL);
60
 
    if (strcmp (text, priv->hint) == 0) {
 
58
    if (priv->state == STATE_HINTING) {
 
59
      priv->state = STATE_ENTRY;
 
60
      gtk_widget_modify_text (widget, GTK_STATE_NORMAL, NULL);
61
61
      gtk_entry_set_text (GTK_ENTRY (entry), "");
62
62
    }
63
63
  } else {
192
192
                       NULL);
193
193
}
194
194
 
195
 
/*
 
195
/**
196
196
 * koto_hint_entry_clear:
197
 
 * @entry: a @KotoHintEntry
 
197
 * @entry: a #KotoHintEntry
198
198
 *
199
199
 * Clear the text in the entry and if the widget is not focused, display the
200
200
 * hint text.