~midori/midori/gtk3WebKit2only

« back to all changes in this revision

Viewing changes to src/webSearch.h

  • Committer: Christian Dywan
  • Date: 2007-12-16 22:20:24 UTC
  • Revision ID: git-v1:3bbd273a4f9e85a1d8380cb0924c875683fa3ad1
Tags: v0.0.14
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 Copyright (C) 2007 Christian Dywan <christian@twotoasts.de>
 
3
 
 
4
 This library is free software; you can redistribute it and/or
 
5
 modify it under the terms of the GNU Lesser General Public
 
6
 License as published by the Free Software Foundation; either
 
7
 version 2.1 of the License, or (at your option) any later version.
 
8
 
 
9
 See the file COPYING for the full license text.
 
10
*/
 
11
 
 
12
#ifndef __WEBSEARCH_H__
 
13
#define __WEBSEARCH_H__ 1
 
14
 
 
15
#include "browser.h"
 
16
 
 
17
#include <gtk/gtk.h>
 
18
#include <libsexy/sexy.h>
 
19
#include <webkit.h>
 
20
 
 
21
// -- Types
 
22
 
 
23
typedef struct
 
24
{
 
25
    CBrowser* browser;
 
26
    GtkWidget* window;
 
27
    GtkWidget* treeview;
 
28
    GtkWidget* edit;
 
29
    GtkWidget* remove;
 
30
} CWebSearch;
 
31
 
 
32
enum
 
33
{
 
34
    ENGINES_COL_ENGINE,
 
35
    ENGINES_COL_N
 
36
};
 
37
 
 
38
// -- Declarations
 
39
 
 
40
void
 
41
update_searchEngine(guint, CBrowser*);
 
42
 
 
43
void
 
44
on_webSearch_icon_released(GtkWidget*, SexyIconEntryPosition*, gint, CBrowser*);
 
45
 
 
46
void
 
47
on_webSearch_engine_activate(GtkWidget*, CBrowser*);
 
48
 
 
49
void
 
50
on_webSearch_activate(GtkWidget*, CBrowser*);
 
51
 
 
52
GtkWidget*
 
53
webSearch_manageSearchEngines_dialog_new(CBrowser*);
 
54
 
 
55
gboolean
 
56
on_webSearch_key_down(GtkWidget*, GdkEventKey*, CBrowser*);
 
57
 
 
58
gboolean
 
59
on_webSearch_scroll(GtkWidget*, GdkEventScroll*, CBrowser*);
 
60
 
 
61
#endif /* !__WEBSEARCH_H__ */