Changeset 62002 in webkit
- Timestamp:
- Jun 28, 2010 7:18:12 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r62001 r62002 1 2010-06-28 Xan Lopez <xlopez@igalia.com> 2 3 Reviewed by Gustavo Noronha. 4 5 [GTK] Does not compile with -DGSEAL_ENABLE 6 https://bugs.webkit.org/show_bug.cgi?id=37851 7 8 Add automake flag to signal whether we are building with GTK+ 2.x 9 or 3.x. 10 11 * configure.ac: 12 1 13 2010-06-28 Xan Lopez <xlopez@igalia.com> 2 14 -
trunk/WebCore/ChangeLog
r62001 r62002 1 2010-06-28 Xan Lopez <xlopez@igalia.com> 2 3 Reviewed by Gustavo Noronha. 4 5 [GTK] Does not compile with -DGSEAL_ENABLE 6 https://bugs.webkit.org/show_bug.cgi?id=37851 7 8 Fix build with GSEAL enabled. 9 10 * GNUmakefile.am: 11 * platform/gtk/GtkVersioning.h: 12 * platform/gtk/RenderThemeGtk.cpp: 13 (WebCore::paintMozillaGtkWidget): 14 (WebCore::RenderThemeGtk::platformActiveSelectionBackgroundColor): 15 (WebCore::RenderThemeGtk::platformInactiveSelectionBackgroundColor): 16 (WebCore::RenderThemeGtk::platformActiveSelectionForegroundColor): 17 (WebCore::RenderThemeGtk::platformInactiveSelectionForegroundColor): 18 (WebCore::RenderThemeGtk::activeListBoxSelectionBackgroundColor): 19 (WebCore::RenderThemeGtk::inactiveListBoxSelectionBackgroundColor): 20 (WebCore::RenderThemeGtk::activeListBoxSelectionForegroundColor): 21 (WebCore::RenderThemeGtk::inactiveListBoxSelectionForegroundColor): 22 (WebCore::RenderThemeGtk::systemColor): 23 * platform/gtk/ScrollViewGtk.cpp: 24 (WebCore::ScrollView::platformRemoveChild): 25 (WebCore::ScrollView::visibleContentRect): 26 * platform/gtk/gtk2drawing.c: 27 (ensure_toggle_button_widget): 28 (ensure_combo_box_widgets): 29 (ensure_combo_box_entry_widgets): 30 (ensure_tree_header_cell_widget): 31 (moz_gtk_button_paint): 32 (moz_gtk_toggle_paint): 33 (calculate_button_inner_rect): 34 (calculate_arrow_rect): 35 (moz_gtk_scrollbar_button_paint): 36 (moz_gtk_scrollbar_trough_paint): 37 (moz_gtk_scrollbar_thumb_paint): 38 (moz_gtk_spin_paint): 39 (moz_gtk_spin_updown_paint): 40 (moz_gtk_scale_paint): 41 (moz_gtk_scale_thumb_paint): 42 (moz_gtk_gripper_paint): 43 (moz_gtk_hpaned_paint): 44 (moz_gtk_vpaned_paint): 45 (moz_gtk_entry_paint): 46 (moz_gtk_treeview_paint): 47 (moz_gtk_tree_header_sort_arrow_paint): 48 (moz_gtk_treeview_expander_paint): 49 (moz_gtk_expander_paint): 50 (moz_gtk_combo_box_paint): 51 (moz_gtk_downarrow_paint): 52 (moz_gtk_combo_box_entry_button_paint): 53 (moz_gtk_container_paint): 54 (moz_gtk_toggle_label_paint): 55 (moz_gtk_toolbar_paint): 56 (moz_gtk_toolbar_separator_paint): 57 (moz_gtk_tooltip_paint): 58 (moz_gtk_resizer_paint): 59 (moz_gtk_frame_paint): 60 (moz_gtk_progressbar_paint): 61 (moz_gtk_progress_chunk_paint): 62 (moz_gtk_get_tab_thickness): 63 (moz_gtk_tab_paint): 64 (moz_gtk_tabpanels_paint): 65 (moz_gtk_tab_scroll_arrow_paint): 66 (moz_gtk_menu_bar_paint): 67 (moz_gtk_menu_popup_paint): 68 (moz_gtk_menu_separator_paint): 69 (moz_gtk_menu_item_paint): 70 (moz_gtk_menu_arrow_paint): 71 1 72 2010-06-28 Xan Lopez <xlopez@igalia.com> 2 73 -
trunk/WebCore/GNUmakefile.am
r62001 r62002 2261 2261 2262 2262 # ---- 2263 # GTK+ 2.x/3.x support 2264 # ---- 2265 2266 if GTK_API_VERSION_2 2267 webcore_cppflags += \ 2268 -DGTK_API_VERSION_2=1 2269 endif 2270 2271 # ---- 2263 2272 # icu unicode backend 2264 2273 # ---- -
trunk/WebCore/platform/gtk/GtkVersioning.h
r61798 r62002 32 32 #if !GTK_CHECK_VERSION(2, 20, 0) 33 33 #define gtk_widget_set_realized(widget, TRUE) GTK_WIDGET_SET_FLAGS((widget), GTK_REALIZED) 34 #define gtk_range_get_min_slider_size(range) (range)->min_slider_size 34 35 #endif // GTK_CHECK_VERSION(2, 20, 0) 35 36 … … 52 53 #define gtk_adjustment_get_value(adj) (adj)->value 53 54 #define gtk_dialog_get_content_area(dialog) (dialog)->vbox 55 #define gtk_dialog_get_action_area(dialog) (dialog)->action_area 54 56 #define gtk_selection_data_get_length(data) (data)->length 55 57 #define gtk_selection_data_get_data(data) (data)->data 58 #define gtk_adjustment_set_page_size(adj, value) (adj)->page_size = value 56 59 #endif // GTK_CHECK_VERSION(2, 14, 0) 57 60 -
trunk/WebCore/platform/gtk/RenderThemeGtk.cpp
r61785 r62002 339 339 // backed by a GdkDrawable. In those situations, we render onto a pixmap and then 340 340 // copy the rendered data back to the GraphicsContext via Cairo. 341 drawable = adoptGRef(gdk_pixmap_new(0, rect.width(), rect.height(), gdk_visual_get_ system()->depth));341 drawable = adoptGRef(gdk_pixmap_new(0, rect.width(), rect.height(), gdk_visual_get_depth(gdk_visual_get_system()))); 342 342 paintRect = clipRect = IntRect(0, 0, rect.width(), rect.height()); 343 343 } … … 581 581 { 582 582 GtkWidget* widget = gtkEntry(); 583 return widget->style->base[GTK_STATE_SELECTED];583 return gtk_widget_get_style(widget)->base[GTK_STATE_SELECTED]; 584 584 } 585 585 … … 587 587 { 588 588 GtkWidget* widget = gtkEntry(); 589 return widget->style->base[GTK_STATE_ACTIVE];589 return gtk_widget_get_style(widget)->base[GTK_STATE_ACTIVE]; 590 590 } 591 591 … … 593 593 { 594 594 GtkWidget* widget = gtkEntry(); 595 return widget->style->text[GTK_STATE_SELECTED];595 return gtk_widget_get_style(widget)->text[GTK_STATE_SELECTED]; 596 596 } 597 597 … … 599 599 { 600 600 GtkWidget* widget = gtkEntry(); 601 return widget->style->text[GTK_STATE_ACTIVE];601 return gtk_widget_get_style(widget)->text[GTK_STATE_ACTIVE]; 602 602 } 603 603 … … 605 605 { 606 606 GtkWidget* widget = gtkTreeView(); 607 return widget->style->base[GTK_STATE_SELECTED];607 return gtk_widget_get_style(widget)->base[GTK_STATE_SELECTED]; 608 608 } 609 609 … … 611 611 { 612 612 GtkWidget* widget = gtkTreeView(); 613 return widget->style->base[GTK_STATE_ACTIVE];613 return gtk_widget_get_style(widget)->base[GTK_STATE_ACTIVE]; 614 614 } 615 615 … … 617 617 { 618 618 GtkWidget* widget = gtkTreeView(); 619 return widget->style->text[GTK_STATE_SELECTED];619 return gtk_widget_get_style(widget)->text[GTK_STATE_SELECTED]; 620 620 } 621 621 … … 623 623 { 624 624 GtkWidget* widget = gtkTreeView(); 625 return widget->style->text[GTK_STATE_ACTIVE];625 return gtk_widget_get_style(widget)->text[GTK_STATE_ACTIVE]; 626 626 } 627 627 … … 651 651 switch (cssValueId) { 652 652 case CSSValueButtontext: 653 return Color(gtk Button()->style->fg[GTK_STATE_NORMAL]);653 return Color(gtk_widget_get_style(gtkButton())->fg[GTK_STATE_NORMAL]); 654 654 case CSSValueCaptiontext: 655 return Color(gtk Entry()->style->fg[GTK_STATE_NORMAL]);655 return Color(gtk_widget_get_style(gtkEntry())->fg[GTK_STATE_NORMAL]); 656 656 default: 657 657 return RenderTheme::systemColor(cssValueId); -
trunk/WebCore/platform/gtk/ScrollViewGtk.cpp
r58946 r62002 170 170 parent = GTK_WIDGET(hostWindow()->platformPageClient()); 171 171 else 172 parent = GTK_WIDGET( child->platformWidget()->parent);173 174 if (GTK_IS_CONTAINER(parent) && parent == child->platformWidget()->parent)172 parent = GTK_WIDGET(gtk_widget_get_parent(child->platformWidget())); 173 174 if (GTK_IS_CONTAINER(parent) && parent == gtk_widget_get_parent(child->platformWidget())) 175 175 gtk_container_remove(GTK_CONTAINER(parent), child->platformWidget()); 176 176 } … … 192 192 measuredWidget = parent; 193 193 194 GtkAllocation allocation; 195 #if GTK_CHECK_VERSION(2, 18, 0) 196 gtk_widget_get_allocation(measuredWidget, &allocation); 197 #else 198 allocation = widget->allocation; 199 #endif 194 200 return IntRect(IntPoint(m_scrollOffset.width(), m_scrollOffset.height()), 195 IntSize(measuredWidget->allocation.width, 196 measuredWidget->allocation.height)); 201 IntSize(allocation.width, allocation.height)); 197 202 } 198 203 -
trunk/WebCore/platform/gtk/gtk2drawing.c
r53372 r62002 49 49 50 50 #include "Assertions.h" 51 #include "GtkVersioning.h" 51 52 52 53 #include <math.h> … … 151 152 setup_widget_prototype(gParts->toggleButtonWidget); 152 153 /* toggle button must be set active to get the right style on hover. */ 153 GTK_TOGGLE_BUTTON(gParts->toggleButtonWidget)->active = TRUE;154 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(gParts->toggleButtonWidget), TRUE); 154 155 } 155 156 return MOZ_GTK_SUCCESS; … … 298 299 if (gParts->comboBoxButtonWidget) { 299 300 /* Get the widgets inside the Button */ 300 buttonChild = GTK_BIN(gParts->comboBoxButtonWidget)->child;301 buttonChild = gtk_bin_get_child(GTK_BIN(gParts->comboBoxButtonWidget)); 301 302 if (GTK_IS_HBOX(buttonChild)) { 302 303 /* appears-as-list = FALSE, cell-view = TRUE; the button … … 408 409 if (gParts->comboBoxEntryButtonWidget) { 409 410 /* Get the Arrow inside the Button */ 410 buttonChild = GTK_BIN(gParts->comboBoxEntryButtonWidget)->child;411 buttonChild = gtk_bin_get_child(GTK_BIN(gParts->comboBoxEntryButtonWidget)); 411 412 if (GTK_IS_HBOX(buttonChild)) { 412 413 /* appears-as-list = FALSE, cell-view = TRUE; the button … … 683 684 gtk_tree_view_append_column(GTK_TREE_VIEW(gParts->treeViewWidget), lastTreeViewColumn); 684 685 686 #ifdef GTK_API_VERSION_2 685 687 /* Use the middle column's header for our button */ 686 688 gParts->treeHeaderCellWidget = gParts->middleTreeViewColumn->button; 687 689 gParts->treeHeaderSortArrowWidget = gParts->middleTreeViewColumn->arrow; 690 #else 691 gParts->treeHeaderCellWidget = gtk_button_new(); 692 gParts->treeHeaderSortArrowWidget = gtk_arrow_new(GTK_ARROW_DOWN, GTK_SHADOW_NONE); 693 #endif 688 694 g_object_set_data(G_OBJECT(gParts->treeHeaderCellWidget), 689 695 "transparent-bg-hint", GINT_TO_POINTER(TRUE)); … … 759 765 { 760 766 GtkShadowType shadow_type; 761 GtkStyle* style = widget->style;767 GtkStyle* style = gtk_widget_get_style(widget); 762 768 GtkStateType button_state = ConvertGtkState(state); 763 769 gint x = rect->x, y=rect->y, width=rect->width, height=rect->height; … … 777 783 gtk_widget_set_direction(widget, direction); 778 784 785 #ifdef GTK_API_VERSION_2 779 786 if (state->isDefault) 780 787 GTK_WIDGET_SET_FLAGS(widget, GTK_HAS_DEFAULT); 781 782 GTK_BUTTON(widget)->relief = relief; 788 #endif 789 790 gtk_button_set_relief(GTK_BUTTON(widget), relief); 783 791 784 792 /* Some theme engines love to cause us pain in that gtk_paint_focus is a 785 793 no-op on buttons and button-like widgets. They only listen to this flag. */ 794 #ifdef GTK_API_VERSION_2 786 795 if (state->focused && !state->disabled) 787 796 GTK_WIDGET_SET_FLAGS(widget, GTK_HAS_FOCUS); 797 #endif 788 798 789 799 if (!interior_focus && state->focused) { … … 815 825 if (state->focused) { 816 826 if (interior_focus) { 817 x += widget->style->xthickness + focus_pad; 818 y += widget->style->ythickness + focus_pad; 819 width -= 2 * (widget->style->xthickness + focus_pad); 820 height -= 2 * (widget->style->ythickness + focus_pad); 827 GtkStyle* style = gtk_widget_get_style(widget); 828 x += style->xthickness + focus_pad; 829 y += style->ythickness + focus_pad; 830 width -= 2 * (style->xthickness + focus_pad); 831 height -= 2 * (style->ythickness + focus_pad); 821 832 } else { 822 833 x -= focus_width + focus_pad; … … 831 842 } 832 843 844 #ifdef GTK_API_VERSION_2 833 845 GTK_WIDGET_UNSET_FLAGS(widget, GTK_HAS_DEFAULT); 834 846 GTK_WIDGET_UNSET_FLAGS(widget, GTK_HAS_FOCUS); 847 #endif 835 848 return MOZ_GTK_SUCCESS; 836 849 } … … 971 984 focus_height = height + 2 * indicator_spacing; 972 985 973 style = w->style;986 style = gtk_widget_get_style(w); 974 987 TSOffsetStyleGCs(style, x, y); 975 988 976 989 gtk_widget_set_sensitive(w, !state->disabled); 977 990 gtk_widget_set_direction(w, direction); 978 GTK_TOGGLE_BUTTON(w)->active = selected;991 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(w), selected); 979 992 980 993 if (isradio) { … … 1023 1036 GtkStyle* style; 1024 1037 1025 style = button->style;1038 style = gtk_widget_get_style(button); 1026 1039 1027 1040 /* This mirrors gtkbutton's child positioning */ … … 1056 1069 gint extent; 1057 1070 GtkMisc* misc = GTK_MISC(arrow); 1071 gfloat misc_xalign, misc_yalign; 1072 gint misc_xpad, misc_ypad; 1058 1073 1059 1074 if (have_arrow_scaling) 1060 1075 gtk_widget_style_get(arrow, "arrow_scaling", &arrow_scaling, NULL); 1061 1076 1062 extent = MIN((rect->width - misc->xpad * 2), 1063 (rect->height - misc->ypad * 2)) * arrow_scaling; 1064 1065 xalign = direction == GTK_TEXT_DIR_LTR ? misc->xalign : 1.0 - misc->xalign; 1066 xpad = misc->xpad + (rect->width - extent) * xalign; 1077 gtk_misc_get_padding(misc, &misc_xpad, &misc_ypad); 1078 gtk_misc_get_alignment(misc, &misc_xalign, &misc_yalign); 1079 1080 extent = MIN((rect->width - misc_xpad * 2), 1081 (rect->height - misc_ypad * 2)) * arrow_scaling; 1082 1083 xalign = direction == GTK_TEXT_DIR_LTR ? misc_xalign : 1.0 - misc_xalign; 1084 xpad = misc_xpad + (rect->width - extent) * xalign; 1067 1085 1068 1086 arrow_rect->x = direction == GTK_TEXT_DIR_LTR ? 1069 1087 floor(rect->x + xpad) : ceil(rect->x + xpad); 1070 arrow_rect->y = floor(rect->y + misc ->ypad +1071 ((rect->height - extent) * misc ->yalign));1088 arrow_rect->y = floor(rect->y + misc_ypad + 1089 ((rect->height - extent) * misc_yalign)); 1072 1090 1073 1091 arrow_rect->width = arrow_rect->height = extent; … … 1088 1106 GtkStyle* style; 1089 1107 GtkWidget *scrollbar; 1108 GtkAllocation allocation; 1090 1109 GtkArrowType arrow_type; 1091 1110 gint arrow_displacement_x, arrow_displacement_y; … … 1106 1125 We need to trick them into drawing the buttons the way we want them. */ 1107 1126 1108 scrollbar->allocation.x = rect->x; 1109 scrollbar->allocation.y = rect->y; 1110 scrollbar->allocation.width = rect->width; 1111 scrollbar->allocation.height = rect->height; 1127 #if GTK_CHECK_VERSION(2, 18, 0) 1128 gtk_widget_get_allocation(scrollbar, &allocation); 1129 #else 1130 allocation = scrollbar->allocation; 1131 #endif 1132 allocation.x = rect->x; 1133 allocation.y = rect->y; 1134 allocation.width = rect->width; 1135 allocation.height = rect->height; 1112 1136 1113 1137 if (flags & MOZ_GTK_STEPPER_VERTICAL) { 1114 scrollbar->allocation.height *= 5;1138 allocation.height *= 5; 1115 1139 if (flags & MOZ_GTK_STEPPER_DOWN) { 1116 1140 arrow_type = GTK_ARROW_DOWN; 1117 1141 if (flags & MOZ_GTK_STEPPER_BOTTOM) 1118 scrollbar->allocation.y -= 4 * rect->height;1142 allocation.y -= 4 * rect->height; 1119 1143 else 1120 scrollbar->allocation.y -= rect->height;1144 allocation.y -= rect->height; 1121 1145 1122 1146 } else { 1123 1147 arrow_type = GTK_ARROW_UP; 1124 1148 if (flags & MOZ_GTK_STEPPER_BOTTOM) 1125 scrollbar->allocation.y -= 3 * rect->height;1149 allocation.y -= 3 * rect->height; 1126 1150 } 1127 1151 } else { 1128 scrollbar->allocation.width *= 5;1152 allocation.width *= 5; 1129 1153 if (flags & MOZ_GTK_STEPPER_DOWN) { 1130 1154 arrow_type = GTK_ARROW_RIGHT; 1131 1155 if (flags & MOZ_GTK_STEPPER_BOTTOM) 1132 scrollbar->allocation.x -= 4 * rect->width;1156 allocation.x -= 4 * rect->width; 1133 1157 else 1134 scrollbar->allocation.x -= rect->width;1158 allocation.x -= rect->width; 1135 1159 } else { 1136 1160 arrow_type = GTK_ARROW_LEFT; 1137 1161 if (flags & MOZ_GTK_STEPPER_BOTTOM) 1138 scrollbar->allocation.x -= 3 * rect->width;1162 allocation.x -= 3 * rect->width; 1139 1163 } 1140 1164 } 1141 1165 1142 style = scrollbar->style;1166 style = gtk_widget_get_style(scrollbar); 1143 1167 1144 1168 TSOffsetStyleGCs(style, rect->x, rect->y); … … 1188 1212 gtk_widget_set_direction(GTK_WIDGET(scrollbar), direction); 1189 1213 1190 style = GTK_WIDGET(scrollbar)->style;1214 style = gtk_widget_get_style(GTK_WIDGET(scrollbar)); 1191 1215 1192 1216 TSOffsetStyleGCs(style, rect->x, rect->y); … … 1247 1271 cliprect->x -= 1; 1248 1272 cliprect->width += 2; 1249 adj->page_size = rect->width;1273 gtk_adjustment_set_page_size(adj, rect->width); 1250 1274 } 1251 1275 else { 1252 1276 cliprect->y -= 1; 1253 1277 cliprect->height += 2; 1254 adj->page_size = rect->height; 1255 } 1256 1278 gtk_adjustment_set_page_size(adj, rect->height); 1279 } 1280 1281 #if GTK_CHECK_VERSION(2, 14, 0) 1282 gtk_adjustment_configure(adj, 1283 state->curpos, 1284 0, 1285 state->maxpos, 1286 gtk_adjustment_get_step_increment(adj), 1287 gtk_adjustment_get_page_increment(adj), 1288 gtk_adjustment_get_page_size(adj)); 1289 #else 1257 1290 adj->lower = 0; 1258 1291 adj->value = state->curpos; 1259 1292 adj->upper = state->maxpos; 1260 1293 gtk_adjustment_changed(adj); 1261 1262 style = GTK_WIDGET(scrollbar)->style; 1294 #endif 1295 1296 style = gtk_widget_get_style(GTK_WIDGET(scrollbar)); 1263 1297 1264 1298 gtk_widget_style_get(GTK_WIDGET(scrollbar), "activate-slider", … … 1289 1323 ensure_spin_widget(); 1290 1324 gtk_widget_set_direction(gParts->spinWidget, direction); 1291 style = g Parts->spinWidget->style;1325 style = gtk_widget_get_style(gParts->spinWidget); 1292 1326 1293 1327 TSOffsetStyleGCs(style, rect->x, rect->y); … … 1310 1344 1311 1345 ensure_spin_widget(); 1312 style = g Parts->spinWidget->style;1346 style = gtk_widget_get_style(gParts->spinWidget); 1313 1347 gtk_widget_set_direction(gParts->spinWidget, direction); 1314 1348 … … 1348 1382 gtk_widget_set_direction(widget, direction); 1349 1383 1350 style = widget->style;1384 style = gtk_widget_get_style(widget); 1351 1385 1352 1386 if (flags == GTK_ORIENTATION_HORIZONTAL) { … … 1389 1423 gtk_widget_set_direction(widget, direction); 1390 1424 1391 style = widget->style;1425 style = gtk_widget_get_style(widget); 1392 1426 1393 1427 /* determine the thumb size, and position the thumb in the center in the opposite axis */ … … 1423 1457 gtk_widget_set_direction(gParts->handleBoxWidget, direction); 1424 1458 1425 style = g Parts->handleBoxWidget->style;1426 shadow_type = GTK_HANDLE_BOX(gParts->handleBoxWidget)->shadow_type;1459 style = gtk_widget_get_style(gParts->handleBoxWidget); 1460 shadow_type = gtk_handle_box_get_shadow_type(GTK_HANDLE_BOX(gParts->handleBoxWidget)); 1427 1461 1428 1462 TSOffsetStyleGCs(style, rect->x, rect->y); … … 1441 1475 1442 1476 ensure_hpaned_widget(); 1443 gtk_paint_handle(g Parts->hpanedWidget->style, drawable, hpaned_state,1477 gtk_paint_handle(gtk_widget_get_style(gParts->hpanedWidget), drawable, hpaned_state, 1444 1478 GTK_SHADOW_NONE, cliprect, gParts->hpanedWidget, "paned", 1445 1479 rect->x, rect->y, rect->width, rect->height, … … 1456 1490 1457 1491 ensure_vpaned_widget(); 1458 gtk_paint_handle(g Parts->vpanedWidget->style, drawable, vpaned_state,1492 gtk_paint_handle(gtk_widget_get_style(gParts->vpanedWidget), drawable, vpaned_state, 1459 1493 GTK_SHADOW_NONE, cliprect, gParts->vpanedWidget, "paned", 1460 1494 rect->x, rect->y, rect->width, rect->height, … … 1496 1530 gtk_widget_set_direction(widget, direction); 1497 1531 1498 style = widget->style;1532 style = gtk_widget_get_style(widget); 1499 1533 1500 1534 gtk_widget_style_get(widget, … … 1552 1586 /* This will get us the lit borders that focused textboxes enjoy on 1553 1587 * some themes. */ 1588 #ifdef GTK_API_VERSION_2 1554 1589 GTK_WIDGET_SET_FLAGS(widget, GTK_HAS_FOCUS); 1590 #endif 1555 1591 1556 1592 if (!interior_focus) { … … 1576 1612 /* Now unset the focus flag. We don't want other entries to look 1577 1613 * like they're focused too! */ 1614 #ifdef GTK_API_VERSION_2 1578 1615 GTK_WIDGET_UNSET_FLAGS(widget, GTK_HAS_FOCUS); 1616 #endif 1579 1617 } 1580 1618 … … 1589 1627 gint xthickness, ythickness; 1590 1628 1591 GtkStyle *style ;1629 GtkStyle *style, *treeview_style; 1592 1630 GtkStateType state_type; 1593 1631 … … 1606 1644 * If we don't set it here the background color will not be correct.*/ 1607 1645 gtk_widget_modify_bg(gParts->treeViewWidget, state_type, 1608 &g Parts->treeViewWidget->style->base[state_type]);1609 1610 style = g Parts->scrolledWindowWidget->style;1646 >k_widget_get_style(gParts->treeViewWidget)->base[state_type]); 1647 1648 style = gtk_widget_get_style(gParts->scrolledWindowWidget); 1611 1649 xthickness = XTHICKNESS(style); 1612 1650 ythickness = YTHICKNESS(style); 1613 1651 1614 TSOffsetStyleGCs(gParts->treeViewWidget->style, rect->x, rect->y); 1652 treeview_style = gtk_widget_get_style(gParts->treeViewWidget); 1653 TSOffsetStyleGCs(treeview_style, rect->x, rect->y); 1615 1654 TSOffsetStyleGCs(style, rect->x, rect->y); 1616 1655 1617 gtk_paint_flat_box( gParts->treeViewWidget->style, drawable, state_type,1656 gtk_paint_flat_box(treeview_style, drawable, state_type, 1618 1657 GTK_SHADOW_NONE, cliprect, gParts->treeViewWidget, "treeview", 1619 1658 rect->x + xthickness, rect->y + ythickness, … … 1662 1701 arrow_rect.y = rect->y + (rect->height - arrow_rect.height) / 2; 1663 1702 1664 style = g Parts->treeHeaderSortArrowWidget->style;1703 style = gtk_widget_get_style(gParts->treeHeaderSortArrowWidget); 1665 1704 TSOffsetStyleGCs(style, arrow_rect.x, arrow_rect.y); 1666 1705 … … 1685 1724 gtk_widget_set_direction(gParts->treeViewWidget, direction); 1686 1725 1687 style = g Parts->treeViewWidget->style;1726 style = gtk_widget_get_style(gParts->treeViewWidget); 1688 1727 1689 1728 /* Because the frame we get is of the entire treeview, we can't get the precise … … 1710 1749 gtk_widget_set_direction(gParts->expanderWidget, direction); 1711 1750 1712 style = g Parts->expanderWidget->style;1751 style = gtk_widget_get_style(gParts->expanderWidget); 1713 1752 1714 1753 TSOffsetStyleGCs(style, rect->x, rect->y); … … 1751 1790 &arrow_rect, &real_arrow_rect, direction); 1752 1791 1753 style = g Parts->comboBoxArrowWidget->style;1792 style = gtk_widget_get_style(gParts->comboBoxArrowWidget); 1754 1793 TSOffsetStyleGCs(style, rect->x, rect->y); 1755 1794 … … 1766 1805 return MOZ_GTK_SUCCESS; 1767 1806 1768 style = g Parts->comboBoxSeparatorWidget->style;1807 style = gtk_widget_get_style(gParts->comboBoxSeparatorWidget); 1769 1808 TSOffsetStyleGCs(style, rect->x, rect->y); 1770 1809 … … 1810 1849 1811 1850 ensure_button_arrow_widget(); 1812 style = g Parts->buttonArrowWidget->style;1851 style = gtk_widget_get_style(gParts->buttonArrowWidget); 1813 1852 1814 1853 calculate_arrow_rect(gParts->buttonArrowWidget, rect, &arrow_rect, … … 1841 1880 /* Some themes draw a complementary focus ring for the dropdown button 1842 1881 * when the dropdown entry has focus */ 1882 #ifdef GTK_API_VERSION_2 1843 1883 GTK_WIDGET_SET_FLAGS(gParts->comboBoxEntryTextareaWidget, GTK_HAS_FOCUS); 1884 #endif 1844 1885 } 1845 1886 … … 1847 1888 gParts->comboBoxEntryButtonWidget, direction); 1848 1889 1890 #ifdef GTK_API_VERSION_2 1849 1891 if (input_focus) 1850 1892 GTK_WIDGET_UNSET_FLAGS(gParts->comboBoxEntryTextareaWidget, GTK_HAS_FOCUS); 1893 #endif 1851 1894 1852 1895 calculate_button_inner_rect(gParts->comboBoxEntryButtonWidget, … … 1864 1907 &arrow_rect, &real_arrow_rect, direction); 1865 1908 1866 style = g Parts->comboBoxEntryArrowWidget->style;1909 style = gtk_widget_get_style(gParts->comboBoxEntryArrowWidget); 1867 1910 TSOffsetStyleGCs(style, real_arrow_rect.x, real_arrow_rect.y); 1868 1911 … … 1895 1938 gtk_widget_set_direction(widget, direction); 1896 1939 1897 style = widget->style;1940 style = gtk_widget_get_style(widget); 1898 1941 moz_gtk_widget_get_focus(widget, &interior_focus, &focus_width, 1899 1942 &focus_pad); … … 1952 1995 state_type = ConvertGtkState(state); 1953 1996 1954 style = widget->style;1997 style = gtk_widget_get_style(widget); 1955 1998 TSOffsetStyleGCs(style, rect->x, rect->y); 1956 1999 … … 1973 2016 gtk_widget_set_direction(gParts->toolbarWidget, direction); 1974 2017 1975 style = g Parts->toolbarWidget->style;2018 style = gtk_widget_get_style(gParts->toolbarWidget); 1976 2019 1977 2020 TSOffsetStyleGCs(style, rect->x, rect->y); … … 2008 2051 gtk_widget_set_direction(gParts->toolbarSeparatorWidget, direction); 2009 2052 2010 style = g Parts->toolbarSeparatorWidget->style;2053 style = gtk_widget_get_style(gParts->toolbarSeparatorWidget); 2011 2054 2012 2055 gtk_widget_style_get(gParts->toolbarWidget, … … 2059 2102 GTK_TYPE_WINDOW); 2060 2103 2061 style = gtk_style_attach(style, g Parts->tooltipWidget->window);2104 style = gtk_style_attach(style, gtk_widget_get_window(gParts->tooltipWidget)); 2062 2105 TSOffsetStyleGCs(style, rect->x, rect->y); 2063 2106 gtk_paint_flat_box(style, drawable, GTK_STATE_NORMAL, GTK_SHADOW_OUT, … … 2079 2122 gtk_widget_set_direction(gParts->protoWindow, direction); 2080 2123 2081 style = g Parts->protoWindow->style;2124 style = gtk_widget_get_style(gParts->protoWindow); 2082 2125 2083 2126 TSOffsetStyleGCs(style, rect->x, rect->y); … … 2101 2144 gtk_widget_set_direction(gParts->frameWidget, direction); 2102 2145 2103 style = g Parts->frameWidget->style;2146 style = gtk_widget_get_style(gParts->frameWidget); 2104 2147 2105 2148 gtk_widget_style_get(gParts->statusbarWidget, "shadow-type", &shadow_type, NULL); … … 2122 2165 gtk_widget_set_direction(gParts->progresWidget, direction); 2123 2166 2124 style = g Parts->progresWidget->style;2167 style = gtk_widget_get_style(gParts->progresWidget); 2125 2168 2126 2169 TSOffsetStyleGCs(style, rect->x, rect->y); … … 2141 2184 gtk_widget_set_direction(gParts->progresWidget, direction); 2142 2185 2143 style = g Parts->progresWidget->style;2186 style = gtk_widget_get_style(gParts->progresWidget); 2144 2187 2145 2188 TSOffsetStyleGCs(style, rect->x, rect->y); … … 2154 2197 moz_gtk_get_tab_thickness(void) 2155 2198 { 2199 GtkStyle* style; 2200 2156 2201 ensure_tab_widget(); 2157 if (YTHICKNESS(gParts->tabWidget->style) < 2) 2202 style = gtk_widget_get_style(gParts->tabWidget); 2203 if (YTHICKNESS(style) < 2) 2158 2204 return 2; /* some themes don't set ythickness correctly */ 2159 2205 2160 return YTHICKNESS( gParts->tabWidget->style);2206 return YTHICKNESS(style); 2161 2207 } 2162 2208 … … 2176 2222 gtk_widget_set_direction(gParts->tabWidget, direction); 2177 2223 2178 style = g Parts->tabWidget->style;2224 style = gtk_widget_get_style(gParts->tabWidget); 2179 2225 TSOffsetStyleGCs(style, rect->x, rect->y); 2180 2226 … … 2313 2359 gtk_widget_set_direction(gParts->tabWidget, direction); 2314 2360 2315 style = g Parts->tabWidget->style;2361 style = gtk_widget_get_style(gParts->tabWidget); 2316 2362 2317 2363 TSOffsetStyleGCs(style, rect->x, rect->y); … … 2339 2385 ensure_tab_widget(); 2340 2386 2341 style = g Parts->tabWidget->style;2387 style = gtk_widget_get_style(gParts->tabWidget); 2342 2388 TSOffsetStyleGCs(style, rect->x, rect->y); 2343 2389 … … 2365 2411 gtk_widget_style_get(gParts->menuBarWidget, "shadow-type", &shadow_type, NULL); 2366 2412 2367 style = g Parts->menuBarWidget->style;2413 style = gtk_widget_get_style(gParts->menuBarWidget); 2368 2414 2369 2415 TSOffsetStyleGCs(style, rect->x, rect->y); … … 2386 2432 gtk_widget_set_direction(gParts->menuPopupWidget, direction); 2387 2433 2388 style = g Parts->menuPopupWidget->style;2434 style = gtk_widget_get_style(gParts->menuPopupWidget); 2389 2435 2390 2436 TSOffsetStyleGCs(style, rect->x, rect->y); … … 2412 2458 gtk_widget_set_direction(gParts->menuSeparatorWidget, direction); 2413 2459 2414 style = g Parts->menuSeparatorWidget->style;2460 style = gtk_widget_get_style(gParts->menuSeparatorWidget); 2415 2461 2416 2462 gtk_widget_style_get(gParts->menuSeparatorWidget, … … 2468 2514 gtk_widget_set_direction(item_widget, direction); 2469 2515 2470 style = item_widget->style;2516 style = gtk_widget_get_style(item_widget); 2471 2517 TSOffsetStyleGCs(style, rect->x, rect->y); 2472 2518 … … 2493 2539 gtk_widget_set_direction(gParts->menuItemWidget, direction); 2494 2540 2495 style = g Parts->menuItemWidget->style;2541 style = gtk_widget_get_style(gParts->menuItemWidget); 2496 2542 2497 2543 TSOffsetStyleGCs(style, rect->x, rect->y); … … 2527 2573 NULL); 2528 2574 2575 #ifdef GTK_API_VERSION_2 2529 2576 if (checked || GTK_CHECK_MENU_ITEM(gParts->checkMenuItemWidget)->always_show_toggle) { 2530 style = gParts->checkMenuItemWidget->style; 2531 2532 offset = GTK_CONTAINER(gParts->checkMenuItemWidget)->border_width + 2533 gParts->checkMenuItemWidget->style->xthickness + 2; 2577 #else 2578 if (checked || FALSE) { 2579 #endif 2580 style = gtk_widget_get_style(gParts->checkMenuItemWidget); 2581 2582 offset = gtk_container_get_border_width(GTK_CONTAINER(gParts->checkMenuItemWidget)) + style->xthickness + 2; 2534 2583 2535 2584 /* while normally this "3" would be the horizontal-padding style value, passing it to Gecko … … 2567 2616 gtk_widget_set_direction(gParts->protoWindow, direction); 2568 2617 2569 style = g Parts->protoWindow->style;2618 style = gtk_widget_get_style(gParts->protoWindow); 2570 2619 2571 2620 TSOffsetStyleGCs(style, rect->x, rect->y); … … 2583 2632 { 2584 2633 GtkWidget* w; 2634 GtkStyle *style; 2585 2635 2586 2636 switch (widget) { … … 2590 2640 gboolean interior_focus; 2591 2641 gint focus_width, focus_pad; 2642 GtkStyle *style; 2592 2643 2593 2644 ensure_button_widget(); 2594 *left = *top = *right = *bottom = GTK_CONTAINER(gParts->buttonWidget)->border_width;2645 *left = *top = *right = *bottom = gtk_container_get_border_width(GTK_CONTAINER(gParts->buttonWidget)); 2595 2646 2596 2647 /* Don't add this padding in HTML, otherwise the buttons will … … 2605 2656 } 2606 2657 2607 *left += gParts->buttonWidget->style->xthickness; 2608 *right += gParts->buttonWidget->style->xthickness; 2609 *top += gParts->buttonWidget->style->ythickness; 2610 *bottom += gParts->buttonWidget->style->ythickness; 2658 style = gtk_widget_get_style(gParts->buttonWidget); 2659 *left += style->xthickness; 2660 *right += style->xthickness; 2661 *top += style->ythickness; 2662 *bottom += style->ythickness; 2611 2663 return MOZ_GTK_SUCCESS; 2612 2664 } … … 2630 2682 gboolean interior_focus; 2631 2683 gint focus_width, focus_pad; 2684 GtkStyle* style; 2632 2685 2633 2686 ensure_tree_header_cell_widget(); 2634 *left = *top = *right = *bottom = GTK_CONTAINER(gParts->treeHeaderCellWidget)->border_width;2687 *left = *top = *right = *bottom = gtk_container_get_border_width(GTK_CONTAINER(gParts->treeHeaderCellWidget)); 2635 2688 2636 2689 moz_gtk_widget_get_focus(gParts->treeHeaderCellWidget, &interior_focus, &focus_width, &focus_pad); … … 2641 2694 *bottom += focus_width + focus_pad + inner_border.bottom; 2642 2695 2643 *left += gParts->treeHeaderCellWidget->style->xthickness; 2644 *right += gParts->treeHeaderCellWidget->style->xthickness; 2645 *top += gParts->treeHeaderCellWidget->style->ythickness; 2646 *bottom += gParts->treeHeaderCellWidget->style->ythickness; 2696 style = gtk_widget_get_style(gParts->treeHeaderCellWidget); 2697 *left += style->xthickness; 2698 *right += style->xthickness; 2699 *top += style->ythickness; 2700 *bottom += style->ythickness; 2647 2701 return MOZ_GTK_SUCCESS; 2648 2702 } … … 2667 2721 gint focus_width, focus_pad, separator_width; 2668 2722 GtkRequisition arrow_req; 2723 GtkStyle* style; 2669 2724 2670 2725 ensure_combo_box_widgets(); 2671 2726 2672 *left = GTK_CONTAINER(gParts->comboBoxButtonWidget)->border_width;2727 *left = gtk_container_get_border_width(GTK_CONTAINER(gParts->comboBoxButtonWidget)); 2673 2728 2674 2729 if (!inhtml) { … … 2679 2734 } 2680 2735 2681 *top = *left + gParts->comboBoxButtonWidget->style->ythickness; 2682 *left += gParts->comboBoxButtonWidget->style->xthickness; 2736 style = gtk_widget_get_style(gParts->comboBoxButtonWidget); 2737 *top = *left + style->ythickness; 2738 *left += style->xthickness; 2683 2739 2684 2740 *right = *left; *bottom = *top; … … 2694 2750 if (!wide_separators) 2695 2751 separator_width = 2696 XTHICKNESS( gParts->comboBoxSeparatorWidget->style);2752 XTHICKNESS(style); 2697 2753 } 2698 2754 … … 2779 2835 } 2780 2836 2781 *left = *top = *right = *bottom = GTK_CONTAINER(w)->border_width;2837 *left = *top = *right = *bottom = gtk_container_get_border_width(GTK_CONTAINER(w)); 2782 2838 2783 2839 if (!interior_focus) { … … 2844 2900 } 2845 2901 2846 *right = *left = XTHICKNESS(w->style); 2847 *bottom = *top = YTHICKNESS(w->style); 2902 style = gtk_widget_get_style(w); 2903 *right = *left = XTHICKNESS(style); 2904 *bottom = *top = YTHICKNESS(style); 2848 2905 2849 2906 return MOZ_GTK_SUCCESS; … … 2905 2962 ensure_toolbar_widget(); 2906 2963 2907 style = g Parts->toolbarWidget->style;2964 style = gtk_widget_get_style(gParts->toolbarWidget); 2908 2965 2909 2966 gtk_widget_style_get(gParts->toolbarWidget, … … 2946 3003 gboolean wide_separators; 2947 3004 gint separator_height; 3005 GtkStyle *style; 2948 3006 2949 3007 ensure_menu_separator_widget(); … … 2954 3012 NULL); 2955 3013 3014 style = gtk_widget_get_style(gParts->menuSeparatorWidget); 3015 2956 3016 if (wide_separators) 2957 *size = separator_height + gParts->menuSeparatorWidget->style->ythickness;3017 *size = separator_height + style->ythickness; 2958 3018 else 2959 *size = gParts->menuSeparatorWidget->style->ythickness * 2;3019 *size = style->ythickness * 2; 2960 3020 2961 3021 return MOZ_GTK_SUCCESS; … … 2990 3050 NULL); 2991 3051 2992 metrics->min_slider_size = 2993 GTK_RANGE(gParts->horizScrollbarWidget)->min_slider_size; 3052 metrics->min_slider_size = gtk_range_get_min_slider_size(GTK_RANGE(gParts->horizScrollbarWidget)); 2994 3053 2995 3054 return MOZ_GTK_SUCCESS; -
trunk/WebKit/gtk/ChangeLog
r62001 r62002 1 2010-06-28 Xan Lopez <xlopez@igalia.com> 2 3 Reviewed by Gustavo Noronha. 4 5 [GTK] Does not compile with -DGSEAL_ENABLE 6 https://bugs.webkit.org/show_bug.cgi?id=37851 7 8 Fix build with GSEAL enabled. 9 10 * WebCoreSupport/FrameLoaderClientGtk.cpp: 11 (WebKit::FrameLoaderClient::transitionToCommittedForNewPage): 12 * webkit/webkitsoupauthdialog.c: 13 (show_auth_dialog): 14 1 15 2010-06-28 Xan Lopez <xlopez@igalia.com> 2 16 -
trunk/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp
r61288 r62002 1165 1165 { 1166 1166 WebKitWebView* containingWindow = getViewFromFrame(m_frame); 1167 IntSize size = IntSize(GTK_WIDGET(containingWindow)->allocation.width, 1168 GTK_WIDGET(containingWindow)->allocation.height); 1167 GtkAllocation allocation; 1168 #if GTK_CHECK_VERSION(2, 18, 0) 1169 gtk_widget_get_allocation(GTK_WIDGET(containingWindow), &allocation); 1170 #else 1171 allocation = GTK_WIDGET(containingWindow)->allocation; 1172 #endif 1173 IntSize size = IntSize(allocation.width, allocation.height); 1169 1174 bool transparent = webkit_web_view_get_transparent(containingWindow); 1170 1175 Color backgroundColor = transparent ? WebCore::Color::transparent : WebCore::Color::white; -
trunk/WebKit/gtk/tests/testcopyandpaste.c
r61881 r62002 133 133 event.key.keyval = gdk_unicode_to_keyval('v'); 134 134 event.key.state = GDK_CONTROL_MASK; 135 event.key.window = GTK_WIDGET(currentFixture->webView)->window;135 event.key.window = gtk_widget_get_window(GTK_WIDGET(currentFixture->webView)); 136 136 GdkKeymapKey* keys; 137 137 gint n_keys; -
trunk/WebKit/gtk/webkit/webkitsoupauthdialog.c
r55139 r62002 26 26 #include <libsoup/soup.h> 27 27 28 #include "GtkVersioning.h" 28 29 #include "webkitmarshal.h" 29 30 #include "webkitsoupauthdialog.h" … … 215 216 gtk_dialog_set_has_separator(dialog, FALSE); 216 217 gtk_container_set_border_width(GTK_CONTAINER(dialog), 5); 217 gtk_box_set_spacing(GTK_BOX( dialog->vbox), 2); /* 2 * 5 + 2 = 12 */218 gtk_container_set_border_width(GTK_CONTAINER( dialog->action_area), 5);219 gtk_box_set_spacing(GTK_BOX( dialog->action_area), 6);218 gtk_box_set_spacing(GTK_BOX(gtk_dialog_get_content_area(dialog)), 2); /* 2 * 5 + 2 = 12 */ 219 gtk_container_set_border_width(GTK_CONTAINER(gtk_dialog_get_action_area(dialog)), 5); 220 gtk_box_set_spacing(GTK_BOX(gtk_dialog_get_action_area(dialog)), 6); 220 221 221 222 gtk_window_set_resizable(window, FALSE); … … 234 235 hbox = gtk_hbox_new(FALSE, 12); 235 236 gtk_container_set_border_width(GTK_CONTAINER(hbox), 5); 236 gtk_box_pack_start(GTK_BOX( dialog->vbox), hbox, TRUE, TRUE, 0);237 gtk_box_pack_start(GTK_BOX(gtk_dialog_get_content_area(dialog)), hbox, TRUE, TRUE, 0); 237 238 238 239 icon = gtk_image_new_from_stock(GTK_STOCK_DIALOG_AUTHENTICATION, -
trunk/WebKitTools/ChangeLog
r62001 r62002 1 2010-06-28 Xan Lopez <xlopez@igalia.com> 2 3 Reviewed by Gustavo Noronha. 4 5 [GTK] Does not compile with -DGSEAL_ENABLE 6 https://bugs.webkit.org/show_bug.cgi?id=37851 7 8 Fix build with GSEAL enabled. 9 10 * DumpRenderTree/gtk/EventSender.cpp: 11 (gtk_widget_get_window): 12 (prepareMouseButtonEvent): 13 (mouseMoveToCallback): 14 (mouseWheelToCallback): 15 (keyDownCallback): 16 1 17 2010-06-28 Xan Lopez <xlopez@igalia.com> 2 18 -
trunk/WebKitTools/DumpRenderTree/gtk/EventSender.cpp
r61805 r62002 97 97 #endif 98 98 99 #if !GTK_CHECK_VERSION(2, 14, 0) 100 static GdkWindow* gtk_widget_get_window(GtkWidget* widget) 101 { 102 g_return_val_if_fail(GTK_IS_WIDGET(widget), 0); 103 return widget->window; 104 } 105 #endif 106 99 107 static JSValueRef getDragModeCallback(JSContextRef context, JSObjectRef object, JSStringRef propertyName, JSValueRef* exception) 100 108 { … … 140 148 event->button.x = lastMousePositionX; 141 149 event->button.y = lastMousePositionY; 142 event->button.window = GTK_WIDGET(view)->window;150 event->button.window = gtk_widget_get_window(GTK_WIDGET(view)); 143 151 event->button.device = gdk_device_get_core_pointer(); 144 152 event->button.state = getStateFlags(); … … 146 154 147 155 int xRoot, yRoot; 148 gdk_window_get_root_coords( GTK_WIDGET(view)->window, lastMousePositionX, lastMousePositionY, &xRoot, &yRoot);156 gdk_window_get_root_coords(gtk_widget_get_window(GTK_WIDGET(view)), lastMousePositionX, lastMousePositionY, &xRoot, &yRoot); 149 157 event->button.x_root = xRoot; 150 158 event->button.y_root = yRoot; … … 267 275 268 276 event.motion.time = GDK_CURRENT_TIME; 269 event.motion.window = GTK_WIDGET(view)->window;277 event.motion.window = gtk_widget_get_window(GTK_WIDGET(view)); 270 278 event.motion.device = gdk_device_get_core_pointer(); 271 279 event.motion.state = getStateFlags(); 272 280 273 281 int xRoot, yRoot; 274 gdk_window_get_root_coords( GTK_WIDGET(view)->window, lastMousePositionX, lastMousePositionY, &xRoot, &yRoot);282 gdk_window_get_root_coords(gtk_widget_get_window(GTK_WIDGET(view)), lastMousePositionX, lastMousePositionY, &xRoot, &yRoot); 275 283 event.motion.x_root = xRoot; 276 284 event.motion.y_root = yRoot; … … 302 310 event.scroll.y = lastMousePositionY; 303 311 event.scroll.time = GDK_CURRENT_TIME; 304 event.scroll.window = GTK_WIDGET(view)->window;312 event.scroll.window = gtk_widget_get_window(GTK_WIDGET(view)); 305 313 306 314 if (horizontal < 0) … … 500 508 event.key.keyval = gdkKeySym; 501 509 event.key.state = state; 502 event.key.window = GTK_WIDGET(view)->window;510 event.key.window = gtk_widget_get_window(GTK_WIDGET(view)); 503 511 504 512 // When synthesizing an event, an invalid hardware_keycode value -
trunk/configure.ac
r62001 r62002 205 205 AC_SUBST([WEBKITGTK_PC_NAME]) 206 206 AC_SUBST([GTK_API_VERSION]) 207 AM_CONDITIONAL([GTK_API_VERSION_2],[test "$GTK_API_VERSION" = "2.0"]) 207 208 208 209 # determine the GDK/GTK+ target
Note: See TracChangeset
for help on using the changeset viewer.