diff options
author | corvid <corvid@lavabit.com> | 2011-01-16 00:17:55 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2011-01-16 00:17:55 +0000 |
commit | 2d3fc936c29d039b644d6b4fa879fa584fdb7d96 (patch) | |
tree | 90980b8ac1be4ad8e35cd7f92dbc8ffd6b4087cc | |
parent | 33ed847e5c64050f8a733a25c60fa49fbe43b152 (diff) |
some general commenting-out for src/
I also get a conflict with Status in dns.h. (Also seen in ui.cc, which
I changed like a week ago.) Seemingly defined in X somewhere already.
I remember the same thing happening on my port experiment a couple of
years, so...I'll just change it.
-rw-r--r-- | src/dialog.cc | 19 | ||||
-rw-r--r-- | src/dillo.cc | 10 | ||||
-rw-r--r-- | src/dns.h | 2 | ||||
-rw-r--r-- | src/xembed.cc | 3 |
4 files changed, 27 insertions, 7 deletions
diff --git a/src/dialog.cc b/src/dialog.cc index c0082d90..5db21583 100644 --- a/src/dialog.cc +++ b/src/dialog.cc @@ -118,6 +118,8 @@ char *a_Dialog_open_file(const char *msg, */ void a_Dialog_text_window(const char *txt, const char *title) { +#if 0 +PORT1.3 //int wh = 600, ww = 650, bh = 30; int wh = prefs.height, ww = prefs.width, bh = 30; Font *textfont = font(prefs.font_monospace, 0); @@ -145,17 +147,21 @@ void a_Dialog_text_window(const char *txt, const char *title) window->resizable(td); window->end(); window->show(); +#endif } /*--------------------------------------------------------------------------*/ static int choice5_answer; +#if 0 +PORT1.3 static void choice5_cb(Fl_Widget *button, void *number) { choice5_answer = VOIDP2INT(number); _MSG("choice5_cb: %d\n", choice5_answer); button->window()->make_exec_return(true); } +#endif /* * Make a question-dialog with a question and some alternatives. @@ -165,6 +171,8 @@ int a_Dialog_choice5(const char *QuestionTxt, const char *alt1, const char *alt2, const char *alt3, const char *alt4, const char *alt5) { +#if 0 +PORT1.3 choice5_answer = 0; int ww = 440, wh = 150, bw = 50, bh = 45, nb = 0; @@ -205,6 +213,9 @@ int a_Dialog_choice5(const char *QuestionTxt, _MSG("Choice5 answer = %d\n", choice5_answer); return choice5_answer; +#else +return fl_choice(QuestionTxt, alt1, alt2, alt3); +#endif } @@ -214,9 +225,12 @@ int a_Dialog_choice5(const char *QuestionTxt, */ static void Dialog_user_password_cb(Fl_Widget *button, void *vIntPtr) { +#if 0 +PORT1.3 int ret = VOIDP2INT(vIntPtr); _MSG("Dialog_user_password_cb: %d\n", ret); button->window()->make_exec_return(ret); +#endif } /* @@ -272,7 +286,8 @@ int a_Dialog_user_password(const char *message, UserPasswordCB cb, void *vp) window->end(); window->size_range(window_w,window_h,window_w,window_h); window->resizable(window); - +#if 0 +PORT1.3 if ((ok = window->exec())) { /* call the callback */ const char *user, *password; @@ -281,7 +296,7 @@ int a_Dialog_user_password(const char *message, UserPasswordCB cb, void *vp) _MSG("a_Dialog_user_passwd: ok = %d\n", ok); (*cb)(user, password, vp); } - +#endif delete window; return ok; diff --git a/src/dillo.cc b/src/dillo.cc index caf15248..440457a6 100644 --- a/src/dillo.cc +++ b/src/dillo.cc @@ -167,7 +167,8 @@ static OptID getCmdOption(const CLI_options *options, int argc, char **argv, } return opt_id; } - +#if 0 +PORT1.3 /* * Tell the user if default/pref fonts can't be found. */ @@ -185,7 +186,7 @@ static void checkPreferredFonts() checkFont(prefs.font_cursive, "cursive"); checkFont(prefs.font_fantasy, "fantasy"); } - +#endif /* * Given a command line argument, build a DilloUrl for it. */ @@ -317,7 +318,8 @@ int main(int argc, char **argv) // Sets WM_CLASS hint on X11 Fl_Window::default_xclass("dillo"); - +#if 0 +PORT1.3 checkPreferredFonts(); /* use preferred font for UI */ fltk::Font *dfont = fltk::font(prefs.font_sans_serif, 0); @@ -325,7 +327,7 @@ int main(int argc, char **argv) fltk::Widget::default_style->textfont(dfont); fltk::Widget::default_style->labelfont(dfont); } - +#endif // Create a new UI/bw pair BrowserWindow *bw = a_UIcmd_browser_window_new(0, 0, xid, NULL); @@ -8,7 +8,7 @@ extern "C" { #endif /* __cplusplus */ -typedef void (*DnsCallback_t)(int Status, Dlist *addr_list, void *data); +typedef void (*DnsCallback_t)(int status, Dlist *addr_list, void *data); void a_Dns_init (void); void a_Dns_freeall(void); diff --git a/src/xembed.cc b/src/xembed.cc index 45507e64..dda135d0 100644 --- a/src/xembed.cc +++ b/src/xembed.cc @@ -158,7 +158,10 @@ Xembed::handle(int e) { void Xembed::create() { +#if 0 +PORT1.3 Fl_Window::create(); +#endif } #endif |