aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2011-08-01 11:30:12 -0400
committerJorge Arellano Cid <jcid@dillo.org>2011-08-01 11:30:12 -0400
commit80326c4d504759a206682d70f4f886f465b2d320 (patch)
tree846817f4898906b90614d1a805566b2b7a379d5f
parentb1fdbc950ab2cd17b09d8d23556d0cced6966b96 (diff)
Cleanup: removed some unused code from the UI
-rw-r--r--src/html.cc2
-rw-r--r--src/ui.cc20
-rw-r--r--src/ui.hh4
-rw-r--r--src/uicmd.cc16
-rw-r--r--src/uicmd.hh2
5 files changed, 0 insertions, 44 deletions
diff --git a/src/html.cc b/src/html.cc
index 1bdbd8fb..985666af 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -688,12 +688,10 @@ bool DilloHtml::HtmlLinkReceiver::enter (Widget *widget, int link, int img,
if (link == -1) {
_MSG(" Link LEAVE notify...\n");
a_UIcmd_set_msg(bw, "");
- a_UIcmd_set_pointer_on_link(bw, FALSE);
} else {
_MSG(" Link ENTER notify...\n");
Html_set_link_coordinates(html, link, x, y);
a_UIcmd_set_msg(bw, "%s", URL_STR(html->links->get(link)));
- a_UIcmd_set_pointer_on_link(bw, TRUE);
}
return true;
}
diff --git a/src/ui.cc b/src/ui.cc
index 7de821a3..bbcf7b20 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -303,16 +303,6 @@ static void clear_cb(Fl_Widget *w, void *data)
}
/*
- * Change the color of the location bar.
- *
-static void color_change_cb(Fl_Widget *wid, void *data)
-{
- ((UI*)data)->color_change_cb_i();
-}
- */
-
-
-/*
* Send the browser to the new URL in the location.
*/
static void location_cb(Fl_Widget *wid, void *data)
@@ -670,8 +660,6 @@ void UI::make_status_bar(int ww, int wh)
UI::UI(int x, int y, int ui_w, int ui_h, const char* label, const UI *cur_ui) :
CustGroupVertical(x, y, ui_w, ui_h, label)
{
- PointerOnLink = FALSE;
-
MenuBar = LocBar = NavBar = StatusBar = NULL;
Tabs = NULL;
@@ -1075,14 +1063,6 @@ UIPanelmode UI::get_panelmode()
}
/*
- * Toggle the Control Panel out of the way
- */
-void UI::panelmode_cb_i()
-{
- set_panelmode((UIPanelmode) !Panelmode);
-}
-
-/*
* Set 'nw' as the main render area widget
*/
void UI::set_render_layout(Fl_Group *nw)
diff --git a/src/ui.hh b/src/ui.hh
index beb202a9..97f786d8 100644
--- a/src/ui.hh
+++ b/src/ui.hh
@@ -123,7 +123,6 @@ class UI : public CustGroupVertical {
int p_xpos, p_ypos, bw, bh, mh, lh, nh, fh, sh, pw, lbl;
UIPanelmode Panelmode;
- int PointerOnLink;
Fl_Button *make_button(const char *label, Fl_Image *img,
Fl_Image*deimg, int b_n, int start = 0);
void make_toolbar(int tw, int th);
@@ -164,13 +163,10 @@ public:
CustTabs *tabs() { return Tabs; }
void tabs(CustTabs *tabs) { Tabs = tabs; }
- int pointerOnLink() { return PointerOnLink; }
- void pointerOnLink(int flag) { PointerOnLink = flag; }
// Hooks to method callbacks
void color_change_cb_i();
void toggle_cb_i();
- void panelmode_cb_i();
};
#endif // __UI_HH__
diff --git a/src/uicmd.cc b/src/uicmd.cc
index 993dfb0b..0889fd41 100644
--- a/src/uicmd.cc
+++ b/src/uicmd.cc
@@ -1202,22 +1202,6 @@ void a_UIcmd_set_buttons_sens(BrowserWindow *bw)
}
/*
- * Keep track of mouse pointer over a link.
- */
-void a_UIcmd_set_pointer_on_link(BrowserWindow *bw, int flag)
-{
- BW2UI(bw)->pointerOnLink(flag);
-}
-
-/*
- * Is the mouse pointer over a link?
- */
-int a_UIcmd_pointer_on_link(BrowserWindow *bw)
-{
- return BW2UI(bw)->pointerOnLink();
-}
-
-/*
* Toggle control panel
*/
void a_UIcmd_panels_toggle(BrowserWindow *bw)
diff --git a/src/uicmd.hh b/src/uicmd.hh
index dc7294a1..22c5b118 100644
--- a/src/uicmd.hh
+++ b/src/uicmd.hh
@@ -78,8 +78,6 @@ void a_UIcmd_set_bug_prog(BrowserWindow *bw, int n_bug);
void a_UIcmd_set_page_title(BrowserWindow *bw, const char *label);
void a_UIcmd_set_msg(BrowserWindow *bw, const char *format, ...);
void a_UIcmd_set_buttons_sens(BrowserWindow *bw);
-void a_UIcmd_set_pointer_on_link(BrowserWindow *bw, int flag);
-int a_UIcmd_pointer_on_link(BrowserWindow *bw);
#ifdef __cplusplus
}