aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Henty <onepoint@starurchin.org>2013-01-14 07:21:51 +0000
committerJeremy Henty <onepoint@starurchin.org>2013-01-14 07:21:51 +0000
commit95adbd2369b0d23cc6b286500a10381c76117967 (patch)
tree4930b488cadcb661008b7a538a489499565621d8
parent927887827f2a440f1f1b39e58d87b12154098d4a (diff)
Remove ancient commented-out GTK code.
-rw-r--r--dw/widget.cc27
-rw-r--r--src/form.cc27
2 files changed, 0 insertions, 54 deletions
diff --git a/dw/widget.cc b/dw/widget.cc
index 1d9f96e4..0027489c 100644
--- a/dw/widget.cc
+++ b/dw/widget.cc
@@ -127,11 +127,6 @@ void Widget::queueResize (int ref, bool extremesChanged)
{
Widget *widget2, *child;
- //DEBUG_MSG (DEBUG_SIZE,
- // "a %stop-level %s with parent_ref = %d has changed its size\n",
- // widget->parent ? "non-" : "",
- // gtk_type_name (GTK_OBJECT_TYPE (widget)), widget->parent_ref);
-
setFlags (NEEDS_RESIZE);
setFlags (NEEDS_ALLOCATE);
markSizeChange (ref);
@@ -148,13 +143,6 @@ void Widget::queueResize (int ref, bool extremesChanged)
widget2->markSizeChange (child->parentRef);
widget2->setFlags (NEEDS_ALLOCATE);
- //DEBUG_MSG (DEBUG_ALLOC,
- // "setting DW_NEEDS_ALLOCATE for a %stop-level %s "
- // "with parent_ref = %d\n",
- // widget2->parent ? "non-" : "",
- // gtk_type_name (GTK_OBJECT_TYPE (widget2)),
- // widget2->parent_ref);
-
if (extremesChanged) {
widget2->setFlags (EXTREMES_CHANGED);
widget2->markExtremesChange (child->parentRef);
@@ -214,15 +202,6 @@ void Widget::sizeAllocate (Allocation *allocation)
allocation->ascent != this->allocation.ascent ||
allocation->descent != this->allocation.descent) {
- //DEBUG_MSG (DEBUG_ALLOC,
- // "a %stop-level %s with parent_ref = %d is newly allocated "
- // "from %d, %d, %d x %d x %d ...\n",
- // widget->parent ? "non-" : "",
- // (GTK_OBJECT_TYPE_NAME (widget), widget->parent_ref,
- // widget->allocation.x, widget->allocation.y,
- // widget->allocation.width, widget->allocation.ascent,
- // widget->allocation.descent);
-
if (wasAllocated ()) {
layout->queueDrawExcept (
this->allocation.x,
@@ -507,12 +486,6 @@ Widget *Widget::getWidgetAtPoint (int x, int y, int level)
Iterator *it;
Widget *childAtPoint;
- //_MSG ("%*s-> examining the %s %p (%d, %d, %d x (%d + %d))\n",
- // 3 * level, "", gtk_type_name (GTK_OBJECT_TYPE (widget)), widget,
- // allocation.x, allocation.y,
- // allocation.width, allocation.ascent,
- // allocation.descent);
-
if (x >= allocation.x &&
y >= allocation.y &&
x <= allocation.x + allocation.width &&
diff --git a/src/form.cc b/src/form.cc
index 8ec340bb..d9537036 100644
--- a/src/form.cc
+++ b/src/form.cc
@@ -363,29 +363,6 @@ void Html_tag_open_form(DilloHtml *html, const char *tag, int tagsize)
void Html_tag_close_form(DilloHtml *html)
{
-// DilloHtmlForm *form;
-// int i;
-//
-// if (html->InFlags & IN_FORM) {
-// form = html->getCurrentForm ();
-//
-// /* Make buttons sensitive again */
-// for (i = 0; i < form->inputs->size(); i++) {
-// input_i = form->inputs->get(i);
-// /* Check for tricky HTML (e.g. <input type=image>) */
-// if (!input_i->widget)
-// continue;
-// if (input_i->type == DILLO_HTML_INPUT_SUBMIT ||
-// input_i->type == DILLO_HTML_INPUT_RESET) {
-// gtk_widget_set_sensitive(input_i->widget, TRUE);
-// } else if (input_i->type == DILLO_HTML_INPUT_IMAGE ||
-// input_i->type == DILLO_HTML_INPUT_BUTTON_SUBMIT ||
-// input_i->type == DILLO_HTML_INPUT_BUTTON_RESET) {
-// a_Dw_button_set_sensitive(DW_BUTTON(input_i->widget), TRUE);
-// }
-// }
-// }
-
html->InFlags &= ~IN_FORM;
html->InFlags &= ~IN_SELECT;
html->InFlags &= ~IN_OPTION;
@@ -471,12 +448,10 @@ void Html_tag_open_input(DilloHtml *html, const char *tag, int tagsize)
inp_type = DILLO_HTML_INPUT_SUBMIT;
init_str = (value) ? value : dStrdup("submit");
resource = factory->createLabelButtonResource(init_str);
-// gtk_widget_set_sensitive(widget, FALSE); /* Until end of FORM! */
} else if (!dStrAsciiCasecmp(type, "reset")) {
inp_type = DILLO_HTML_INPUT_RESET;
init_str = (value) ? value : dStrdup("Reset");
resource = factory->createLabelButtonResource(init_str);
-// gtk_widget_set_sensitive(widget, FALSE); /* Until end of FORM! */
} else if (!dStrAsciiCasecmp(type, "image")) {
if (URL_FLAGS(html->base_url) & URL_SpamSafe) {
/* Don't request the image; make a text submit button instead */
@@ -485,7 +460,6 @@ void Html_tag_open_input(DilloHtml *html, const char *tag, int tagsize)
label = attrbuf ? attrbuf : value ? value : name ? name : "Submit";
init_str = dStrdup(label);
resource = factory->createLabelButtonResource(init_str);
-// gtk_widget_set_sensitive(widget, FALSE); /* Until end of FORM! */
} else {
inp_type = DILLO_HTML_INPUT_IMAGE;
/* use a dw_image widget */
@@ -1942,7 +1916,6 @@ static Embed *Html_input_image(DilloHtml *html, const char *tag, int tagsize)
factory->createComplexButtonResource(IM2DW(Image), false);
button = new Embed(complex_b_r);
HT2TB(html)->addWidget (button, html->styleEngine->style ());
-// gtk_widget_set_sensitive(widget, FALSE); /* Until end of FORM! */
}
if (!button)
MSG("Html_input_image: unable to create image submit.\n");