~noskcaj/ubuntu/trusty/gthumb/3.2.5

« back to all changes in this revision

Viewing changes to gthumb/gth-request-dialog.h

  • Committer: Package Import Robot
  • Author(s): David Paleino
  • Date: 2011-12-22 22:40:29 UTC
  • mfrom: (5.2.19 sid)
  • Revision ID: package-import@ubuntu.com-20111222224029-l58g65u1nfa6ojtg
Tags: 3:2.14.1-1
* New upstream version (Closes: #652692)
* Patches refreshed
* Bump build-dependencies requirements
* Fix FTBFS, added missing #include
* debian/watch fixed to point to new location (.xz tarballs)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 
2
 
 
3
/*
 
4
 *  GThumb
 
5
 *
 
6
 *  Copyright (C) 2011 The Free Software Foundation, Inc.
 
7
 *
 
8
 *  This program is free software; you can redistribute it and/or modify
 
9
 *  it under the terms of the GNU General Public License as published by
 
10
 *  the Free Software Foundation; either version 2 of the License, or
 
11
 *  (at your option) any later version.
 
12
 *
 
13
 *  This program is distributed in the hope that it will be useful,
 
14
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
 *  GNU General Public License for more details.
 
17
 *
 
18
 *  You should have received a copy of the GNU General Public License
 
19
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
20
 */
 
21
 
 
22
#ifndef GTH_REQUEST_DIALOG_H
 
23
#define GTH_REQUEST_DIALOG_H
 
24
 
 
25
#include <gtk/gtk.h>
 
26
 
 
27
G_BEGIN_DECLS
 
28
 
 
29
#define GTH_TYPE_REQUEST_DIALOG            (gth_request_dialog_get_type ())
 
30
#define GTH_REQUEST_DIALOG(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTH_TYPE_REQUEST_DIALOG, GthRequestDialog))
 
31
#define GTH_REQUEST_DIALOG_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GTH_TYPE_REQUEST_DIALOG, GthRequestDialogClass))
 
32
#define GTH_IS_REQUEST_DIALOG(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTH_TYPE_REQUEST_DIALOG))
 
33
#define GTH_IS_REQUEST_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTH_TYPE_REQUEST_DIALOG))
 
34
#define GTH_REQUEST_DIALOG_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GTH_TYPE_REQUEST_DIALOG, GthRequestDialogClass))
 
35
 
 
36
typedef struct _GthRequestDialog        GthRequestDialog;
 
37
typedef struct _GthRequestDialogClass   GthRequestDialogClass;
 
38
typedef struct _GthRequestDialogPrivate GthRequestDialogPrivate;
 
39
 
 
40
struct _GthRequestDialog {
 
41
        GtkDialog parent_instance;
 
42
        GthRequestDialogPrivate *priv;
 
43
};
 
44
 
 
45
struct _GthRequestDialogClass {
 
46
        GtkDialogClass parent_class;
 
47
};
 
48
 
 
49
GType       gth_request_dialog_get_type              (void);
 
50
GtkWidget * gth_request_dialog_new                   (GtkWindow        *parent,
 
51
                                                      GtkDialogFlags    flags,
 
52
                                                      const char       *message,
 
53
                                                      const char       *secondary_message,
 
54
                                                      const char       *cancel_button_text,
 
55
                                                      const char       *ok_button_text);
 
56
GtkWidget * gth_request_dialog_get_entry             (GthRequestDialog *dialog);
 
57
char *      gth_request_dialog_get_normalized_text   (GthRequestDialog *dialog);
 
58
GtkWidget * gth_request_dialog_get_info_bar          (GthRequestDialog *dialog);
 
59
GtkWidget * gth_request_dialog_get_info_label        (GthRequestDialog *dialog);
 
60
void        gth_request_dialog_set_info_text         (GthRequestDialog *dialog,
 
61
                                                      GtkMessageType    message_type,
 
62
                                                      const char       *text);
 
63
void        gth_request_dialog_set_info_markup       (GthRequestDialog *dialog,
 
64
                                                      GtkMessageType    message_type,
 
65
                                                      const char       *markup);
 
66
 
 
67
G_END_DECLS
 
68
 
 
69
#endif /* GTH_REQUEST_DIALOG_H */
 
70