| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
#ifndef GTH_SEARCH_EDITOR_DIALOG_H |
| 23 |
#define GTH_SEARCH_EDITOR_DIALOG_H |
| 24 |
|
| 25 |
#include <gtk/gtk.h> |
| 26 |
#include "gth-search.h" |
| 27 |
|
| 28 |
#define GTH_TYPE_SEARCH_EDITOR_DIALOG (gth_search_editor_dialog_get_type ()) |
| 29 |
#define GTH_SEARCH_EDITOR_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTH_TYPE_SEARCH_EDITOR_DIALOG, GthSearchEditorDialog)) |
| 30 |
#define GTH_SEARCH_EDITOR_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTH_TYPE_SEARCH_EDITOR_DIALOG, GthSearchEditorDialogClass)) |
| 31 |
#define GTH_IS_SEARCH_EDITOR_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTH_TYPE_SEARCH_EDITOR_DIALOG)) |
| 32 |
#define GTH_IS_SEARCH_EDITOR_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTH_TYPE_SEARCH_EDITOR_DIALOG)) |
| 33 |
#define GTH_SEARCH_EDITOR_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTH_TYPE_SEARCH_EDITOR_DIALOG, GthSearchEditorDialogClass)) |
| 34 |
|
| 35 |
typedef struct _GthSearchEditorDialog GthSearchEditorDialog; |
| 36 |
typedef struct _GthSearchEditorDialogClass GthSearchEditorDialogClass; |
| 37 |
typedef struct _GthSearchEditorDialogPrivate GthSearchEditorDialogPrivate; |
| 38 |
|
| 39 |
struct _GthSearchEditorDialog { |
| 40 |
GtkDialog parent_instance; |
| 41 |
GthSearchEditorDialogPrivate *priv; |
| 42 |
}; |
| 43 |
|
| 44 |
struct _GthSearchEditorDialogClass { |
| 45 |
GtkDialogClass parent_class; |
| 46 |
}; |
| 47 |
|
| 48 |
GType gth_search_editor_dialog_get_type (void); |
| 49 |
GtkWidget * gth_search_editor_dialog_new (const char *title, |
| 50 |
GthSearch *search, |
| 51 |
GtkWindow *parent); |
| 52 |
void gth_search_editor_dialog_set_search (GthSearchEditorDialog *self, |
| 53 |
GthSearch *search); |
| 54 |
GthSearch * gth_search_editor_dialog_get_search (GthSearchEditorDialog *self, |
| 55 |
GError **error); |
| 56 |
void gth_search_editor_dialog_focus_first_rule |
| 57 |
(GthSearchEditorDialog *self); |
| 58 |
|
| 59 |
#endif |