12 #define TYPE_MAINWND (mainwnd_get_type ())
13 #define MAINWND(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_MAINWND, Mainwnd))
14 #define MAINWND_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_MAINWND, MainwndClass))
15 #define IS_MAINWND(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_MAINWND))
16 #define IS_MAINWND_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_MAINWND))
17 #define MAINWND_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_MAINWND, MainwndClass))
19 typedef struct _Mainwnd Mainwnd;
20 typedef struct _MainwndClass MainwndClass;
23 GtkWindow parent_instance;
31 struct _MainwndClass {
32 GtkWindowClass parent_class;
35 void mainwnd_show_about(GtkWidget *w, gpointer data);
36 void mainwnd_prepare(Mainwnd *self);
37 void mainwnd_dicts_update();
38 GtkWindow* mainwnd_get_wnd();
39 GSequence* mainwnd_get_results();
40 gint mainwnd_get_search_method();
41 gboolean mainwnd_get_dicts(GtkTreeModel **store, GtkTreeIter *iter);
42 void mainwnd_insert_text(gchar *txt, gboolean clear);
43 void mainwnd_clear_text();
44 void mainwnd_search(Mainwnd *self, const gchar *word);
45 void mainwnd_open(Mainwnd *self, RESULT *res);
48 GType mainwnd_get_type (void);
52 void mainwnd_iconify_restore();
53 void mainwnd_search_();
54 void mainwnd_reset_font();
55 void mainwnd_clear_combo();
56 GtkWidget* mainwnd_search_method_combo();
61 gboolean custom_font, remember_pos;
63 gint x, y, w, h, search;
64 GtkWidget *wnd, *combo_method, *combo_word, *dictbar;
71 GtkWidget *pane, *tree;
76 #endif /* __MAINWND_H__ */