~ubuntu-branches/ubuntu/maverick/gq/maverick

« back to all changes in this revision

Viewing changes to src/dt_int.c

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2009-10-25 23:34:56 UTC
  • mfrom: (1.1.4 upstream) (3.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20091025233456-i794n3yg2cff930j
Tags: 1.3.4-1
* QA upload.
  + Set maintainer to Debian QA Group <packages@qa.debian.org>.
* New upstream release. (Closes: #534705).
  + Does not segfault on amd64. (Closes: #444312).
  + Remove all existing patches and change patch system to quilt.
  + Replace dpatch build-dep with quilt.
* 01_desktop_file.diff - Remove encoding and bogus categories 
  from desktop file.
* Copy in config.{sub,guess} on configure, rm them on clean.
  + Add build-dep on autotools-dev.
* Make clean not ignore errors.
* Add copyright holders and version path to GPL (GPL-2).
* Update watch file to use SF redirector. (Closes: #449749).
* Bump debhelper build-dep and compat to 5.
* Bump Standards Version to 3.8.3.
  + Menu policy transition.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23
23
*/
24
24
 
25
 
/* $Id: dt_int.c 952 2006-08-26 11:17:35Z herzi $ */
 
25
/* $Id$ */
26
26
 
27
27
#include <string.h>
28
28
#include <sys/types.h>
42
42
#include "dt_int.h"
43
43
 
44
44
#include "common.h"
45
 
#include "util.h"
 
45
#include "dtutil.h"
 
46
#include "encode.h"
46
47
#include "errorchain.h"
 
48
#include "gq-input-form.h"
47
49
#include "gq-tab-browse.h"
48
 
#include "input.h"
49
 
#include "tinput.h"
50
 
#include "encode.h"
 
50
#include "gq-utilities.h"
51
51
#include "ldif.h" /* for b64_decode */
52
52
#include "syntax.h"
53
 
#include "dtutil.h"
54
53
 
55
54
static void dt_int_verify(GtkWidget *entry)
56
55
{
103
102
}
104
103
 
105
104
GtkWidget *dt_int_get_widget(int error_context,
106
 
                             struct formfill *form, GByteArray *data,
107
 
                             GCallback *activatefunc,
 
105
                             GqFormfill *form, GByteArray *data,
 
106
                             GCallback  activatefunc,
108
107
                             gpointer funcdata)
109
108
{
110
109
    GtkWidget *hbox, *inputbox, *label;
136
135
    return hbox;
137
136
}
138
137
 
139
 
GByteArray *dt_int_get_data(struct formfill *form, GtkWidget *widget)
 
138
GByteArray *dt_int_get_data(GqFormfill *form, GtkWidget *widget)
140
139
{
141
140
    return editable_get_text(GTK_EDITABLE(dt_int_retrieve_inputbox(widget)));
142
141
}
143
142
 
144
 
void dt_int_set_data(struct formfill *form, GByteArray *data,
 
143
void dt_int_set_data(GqFormfill *form, GByteArray *data,
145
144
                       GtkWidget *widget)
146
145
{
147
 
     GQTypeDisplayClass* klass = g_type_class_ref(form->dt_handler);
 
146
     GQTypeDisplayClass* klass = g_type_class_ref(gq_formfill_get_dt_handler(form));
148
147
     editable_set_text(GTK_EDITABLE(dt_int_retrieve_inputbox(widget)),
149
148
                       data,
150
149
                       DT_INT(klass)->encode,