Lines Matching refs:gWidgetData
148 static std::vector<NWFWidgetData> gWidgetData; variable
304 if( gWidgetData[m_screen].gNWPixmapCacheList ) in NWPixmapCache()
305 gWidgetData[m_screen].gNWPixmapCacheList->AddCache(this); in NWPixmapCache()
309 if( gWidgetData[m_screen].gNWPixmapCacheList ) in ~NWPixmapCache()
310 gWidgetData[m_screen].gNWPixmapCacheList->RemoveCache(this); in ~NWPixmapCache()
414 gWidgetData = std::vector<NWFWidgetData>( nScreens ); in initNWF()
416 gWidgetData[i].gNWPixmapCacheList = new NWPixmapCacheList; in initNWF()
448 for( unsigned int i = 0; i < gWidgetData.size(); i++ ) in deInitNWF()
453 if( gWidgetData[i].gCacheWindow ) in deInitNWF()
454 gtk_widget_destroy( gWidgetData[i].gCacheWindow ); in deInitNWF()
455 if( gWidgetData[i].gMenuWidget ) in deInitNWF()
456 gtk_widget_destroy( gWidgetData[i].gMenuWidget ); in deInitNWF()
457 if( gWidgetData[i].gTooltipPopup ) in deInitNWF()
458 gtk_widget_destroy( gWidgetData[i].gTooltipPopup ); in deInitNWF()
459 delete gWidgetData[i].gCacheTabPages; in deInitNWF()
460 gWidgetData[i].gCacheTabPages = NULL; in deInitNWF()
461 delete gWidgetData[i].gCacheTabItems; in deInitNWF()
462 gWidgetData[i].gCacheTabItems = NULL; in deInitNWF()
463 delete gWidgetData[i].gNWPixmapCacheList; in deInitNWF()
464 gWidgetData[i].gNWPixmapCacheList = NULL; in deInitNWF()
620 …gtk_widget_style_get( gWidgetData[m_nScreen].gScrollHorizWidget, "has-forward-stepper", &has_forwa… in hitTestNativeControl()
726 for( unsigned int i = 0; i < gWidgetData.size(); i++ ) in drawNativeControl()
727 if( gWidgetData[i].gNWPixmapCacheList ) in drawNativeControl()
728 gWidgetData[i].gNWPixmapCacheList->ThemeChanged(); in drawNativeControl()
994 gtk_widget_size_request( gWidgetData[m_nScreen].gMenubarWidget, &aReq ); in getNativeControlRegion()
1011 … gWidgetData[m_nScreen].gMenuItemCheckMenuWidget : gWidgetData[m_nScreen].gMenuItemRadioMenuWidget; in getNativeControlRegion()
1027 …GtkWidget* widget = (nType == CTRL_RADIOBUTTON) ? gWidgetData[m_nScreen].gRadioWidget : gWidgetDat… in getNativeControlRegion()
1044 GtkWidget* widget = gWidgetData[m_nScreen].gEditBoxWidget; in getNativeControlRegion()
1058 …GtkWidget* widget = (nPart == PART_THUMB_HORZ) ? gWidgetData[m_nScreen].gHScale : gWidgetData[m_nS… in getNativeControlRegion()
1115 gtk_widget_style_get( gWidgetData[m_nScreen].gBtnWidget, "focus-line-width", &focusWidth, in NWPaintGTKButton()
1133 NWSetWidgetState( gWidgetData[m_nScreen].gBtnWidget, nState, stateType ); in NWPaintGTKButton()
1160 …gtk_paint_flat_box( gWidgetData[m_nScreen].gBtnWidget->style, gdkDrawable, GTK_STATE_NORMAL, GTK_S… in NWPaintGTKButton()
1163 …if ( (nState & CTRL_STATE_DEFAULT) && (GTK_BUTTON(gWidgetData[m_nScreen].gBtnWidget)->relief == GT… in NWPaintGTKButton()
1165 …gtk_paint_box( gWidgetData[m_nScreen].gBtnWidget->style, gdkDrawable, GTK_STATE_NORMAL, GTK_SHADOW… in NWPaintGTKButton()
1166 … &clipRect, gWidgetData[m_nScreen].gBtnWidget, "buttondefault", x, y, w, h ); in NWPaintGTKButton()
1169 if ( (GTK_BUTTON(gWidgetData[m_nScreen].gBtnWidget)->relief != GTK_RELIEF_NONE) in NWPaintGTKButton()
1173 … gtk_paint_box( gWidgetData[m_nScreen].gBtnWidget->style, gdkDrawable, stateType, shadowType, in NWPaintGTKButton()
1174 &clipRect, gWidgetData[m_nScreen].gBtnWidget, "button", xi, yi, wi, hi ); in NWPaintGTKButton()
1183 x += gWidgetData[m_nScreen].gBtnWidget->style->xthickness + focusPad; in NWPaintGTKButton()
1184 y += gWidgetData[m_nScreen].gBtnWidget->style->ythickness + focusPad; in NWPaintGTKButton()
1185 w -= 2 * (gWidgetData[m_nScreen].gBtnWidget->style->xthickness + focusPad); in NWPaintGTKButton()
1186 h -= 2 * (gWidgetData[m_nScreen].gBtnWidget->style->xthickness + focusPad); in NWPaintGTKButton()
1196 gtk_paint_focus( gWidgetData[m_nScreen].gBtnWidget->style, gdkDrawable, stateType, &clipRect, in NWPaintGTKButton()
1197 gWidgetData[m_nScreen].gBtnWidget, "button", x, y, w, h ); in NWPaintGTKButton()
1218 gtk_widget_style_get( gWidgetData[nScreen].gBtnWidget, in NWGetButtonArea()
1276 …gtk_widget_style_get( gWidgetData[m_nScreen].gRadioWidget, "indicator_size", &indicator_size, (cha… in NWPaintGTKRadio()
1283 NWSetWidgetState( gWidgetData[m_nScreen].gRadioWidget, nState, stateType ); in NWPaintGTKRadio()
1284 NWSetWidgetState( gWidgetData[m_nScreen].gRadioWidgetSibling, nState, stateType ); in NWPaintGTKRadio()
1295 GTK_TOGGLE_BUTTON(gWidgetData[m_nScreen].gRadioWidgetSibling)->active = sal_True; in NWPaintGTKRadio()
1296 GTK_TOGGLE_BUTTON(gWidgetData[m_nScreen].gRadioWidget)->active = isChecked; in NWPaintGTKRadio()
1305 … gtk_paint_option( gWidgetData[m_nScreen].gRadioWidget->style, gdkDrawable, stateType, shadowType, in NWPaintGTKRadio()
1306 &clipRect, gWidgetData[m_nScreen].gRadioWidget, "radiobutton", in NWPaintGTKRadio()
1335 …gtk_widget_style_get( gWidgetData[m_nScreen].gCheckWidget, "indicator_size", &indicator_size, (cha… in NWPaintGTKCheck()
1342 NWSetWidgetState( gWidgetData[m_nScreen].gCheckWidget, nState, stateType ); in NWPaintGTKCheck()
1343 GTK_TOGGLE_BUTTON(gWidgetData[m_nScreen].gCheckWidget)->active = isChecked; in NWPaintGTKCheck()
1352 … gtk_paint_check( gWidgetData[m_nScreen].gCheckWidget->style, gdkDrawable, stateType, shadowType, in NWPaintGTKCheck()
1353 &clipRect, gWidgetData[m_nScreen].gCheckWidget, "checkbutton", in NWPaintGTKCheck()
1431 gtk_widget_style_get( gWidgetData[m_nScreen].gScrollHorizWidget, in NWPaintGTKScrollbar()
1442 …gtk_widget_style_get( gWidgetData[m_nScreen].gScrollHorizWidget, "has-forward-stepper", &has_forwa… in NWPaintGTKScrollbar()
1460 scrollbarWidget = GTK_SCROLLBAR( gWidgetData[m_nScreen].gScrollHorizWidget ); in NWPaintGTKScrollbar()
1511 scrollbarWidget = GTK_SCROLLBAR( gWidgetData[m_nScreen].gScrollVertWidget ); in NWPaintGTKScrollbar()
1590 NWSetWidgetState( gWidgetData[m_nScreen].gBtnWidget, nState, stateType ); in NWPaintGTKScrollbar()
1594 gtk_paint_flat_box( gWidgetData[m_nScreen].gBtnWidget->style, gdkDrawable, in NWPaintGTKScrollbar()
1706 gtk_widget_style_get( gWidgetData[nScreen].gScrollHorizWidget, in NWGetScrollButtonRect()
1717 gtk_widget_style_get( gWidgetData[nScreen].gScrollHorizWidget, in NWGetScrollButtonRect()
1827 gtk_widget_style_get( gWidgetData[nScreen].gEditBoxWidget, in NWGetEditBoxPixmapRect()
1874 widget = gWidgetData[nScreen].gSpinButtonWidget; in NWPaintOneEditBox()
1878 widget = gWidgetData[nScreen].gScrolledWindowWidget; in NWPaintOneEditBox()
1881 widget = GTK_COMBO(gWidgetData[nScreen].gComboWidget)->entry; in NWPaintOneEditBox()
1885 widget = gWidgetData[nScreen].gEditBoxWidget; in NWPaintOneEditBox()
1897 NWSetWidgetState( gWidgetData[nScreen].gBtnWidget, nState, stateType ); in NWPaintOneEditBox()
1898 pBGWidget = gWidgetData[nScreen].gBtnWidget; in NWPaintOneEditBox()
1984 NWSetWidgetState( gWidgetData[m_nScreen].gSpinButtonWidget, nState, stateType ); in NWPaintGTKSpinBox()
1985 …gtk_widget_style_get( gWidgetData[m_nScreen].gSpinButtonWidget, "shadow_type", &shadowType, (char … in NWPaintGTKSpinBox()
1992 …gtk_paint_box( gWidgetData[m_nScreen].gSpinButtonWidget->style, pixmap, GTK_STATE_NORMAL, shadowTy… in NWPaintGTKSpinBox()
1993 gWidgetData[m_nScreen].gSpinButtonWidget, "spinbutton", in NWPaintGTKSpinBox()
2026 …buttonSize = MAX( PANGO_PIXELS( pango_font_description_get_size(GTK_WIDGET(gWidgetData[nScreen].gS… in NWGetSpinButtonRect()
2029 …buttonRect.SetSize( Size( buttonSize + 2 * gWidgetData[nScreen].gSpinButtonWidget->style->xthickne… in NWGetSpinButtonRect()
2075 NWSetWidgetState( gWidgetData[nScreen].gSpinButtonWidget, nState, stateType ); in NWPaintOneSpinButton()
2076 …gtk_paint_box( gWidgetData[nScreen].gSpinButtonWidget->style, pixmap, stateType, shadowType, NULL,… in NWPaintOneSpinButton()
2081 …arrowSize = (buttonRect.GetWidth() - (2 * gWidgetData[nScreen].gSpinButtonWidget->style->xthicknes… in NWPaintOneSpinButton()
2090 …gtk_paint_arrow( gWidgetData[nScreen].gSpinButtonWidget->style, pixmap, stateType, GTK_SHADOW_OUT,… in NWPaintOneSpinButton()
2126 NWSetWidgetState( gWidgetData[m_nScreen].gBtnWidget, nState, stateType ); in NWPaintGTKComboBox()
2127 NWSetWidgetState( gWidgetData[m_nScreen].gComboWidget, nState, stateType ); in NWPaintGTKComboBox()
2128 NWSetWidgetState( gWidgetData[m_nScreen].gArrowWidget, nState, stateType ); in NWPaintGTKComboBox()
2155 …gtk_paint_flat_box( gWidgetData[m_nScreen].gBtnWidget->style, gdkDrawable, GTK_STATE_NORMAL, GTK_S… in NWPaintGTKComboBox()
2160 …gtk_paint_box( GTK_COMBO(gWidgetData[m_nScreen].gComboWidget)->button->style, gdkDrawable, stateTy… in NWPaintGTKComboBox()
2161 &clipRect, GTK_COMBO(gWidgetData[m_nScreen].gComboWidget)->button, "button", in NWPaintGTKComboBox()
2166 … gtk_paint_arrow( gWidgetData[m_nScreen].gArrowWidget->style, gdkDrawable, stateType, shadowType, in NWPaintGTKComboBox()
2167 … &clipRect, gWidgetData[m_nScreen].gArrowWidget, "arrow", GTK_ARROW_DOWN, sal_True, in NWPaintGTKComboBox()
2194 gtk_widget_style_get( gWidgetData[nScreen].gDropdownWidget, in NWGetComboBoxButtonRect()
2198 nArrowWidth = MIN_ARROW_SIZE + (GTK_MISC(gWidgetData[nScreen].gArrowWidget)->xpad * 2); in NWGetComboBoxButtonRect()
2200 … ((BTN_CHILD_SPACING + gWidgetData[nScreen].gDropdownWidget->style->xthickness) * 2) in NWGetComboBoxButtonRect()
2212 gint adjust_x = GTK_CONTAINER(gWidgetData[nScreen].gComboWidget)->border_width + in NWGetComboBoxButtonRect()
2215 gint adjust_y = adjust_x + gWidgetData[nScreen].gComboWidget->style->ythickness; in NWGetComboBoxButtonRect()
2216 adjust_x += gWidgetData[nScreen].gComboWidget->style->xthickness; in NWGetComboBoxButtonRect()
2245 if( ! gWidgetData[ m_nScreen ].gCacheTabItems ) in NWPaintGTKTabItem()
2247 gWidgetData[ m_nScreen ].gCacheTabItems = new NWPixmapCache( m_nScreen ); in NWPaintGTKTabItem()
2248 gWidgetData[ m_nScreen ].gCacheTabPages = new NWPixmapCache( m_nScreen ); in NWPaintGTKTabItem()
2250 NWPixmapCache& aCacheItems = *gWidgetData[ m_nScreen ].gCacheTabItems; in NWPaintGTKTabItem()
2251 NWPixmapCache& aCachePage = *gWidgetData[ m_nScreen ].gCacheTabPages; in NWPaintGTKTabItem()
2325 NWSetWidgetState( gWidgetData[m_nScreen].gNotebookWidget, nState, stateType ); in NWPaintGTKTabItem()
2334 …gtk_paint_box_gap( gWidgetData[m_nScreen].gNotebookWidget->style, pixmap, GTK_STATE_NORMAL, GTK_SH… in NWPaintGTKTabItem()
2341 …gtk_paint_extension( gWidgetData[m_nScreen].gNotebookWidget->style, pixmap, stateType, GTK_SHADOW_… in NWPaintGTKTabItem()
2347 …gtk_paint_flat_box( gWidgetData[m_nScreen].gNotebookWidget->style, pixmap, stateType, GTK_SHADOW_N… in NWPaintGTKTabItem()
2414 NWSetWidgetState( gWidgetData[m_nScreen].gBtnWidget, nState, stateType ); in NWPaintGTKListBox()
2415 NWSetWidgetState( gWidgetData[m_nScreen].gOptionMenuWidget, nState, stateType ); in NWPaintGTKListBox()
2416 NWSetWidgetState( gWidgetData[m_nScreen].gScrolledWindowWidget, nState, stateType ); in NWPaintGTKListBox()
2420 gtk_widget_style_get( gWidgetData[m_nScreen].gOptionMenuWidget, in NWPaintGTKListBox()
2437 …gtk_paint_flat_box( gWidgetData[m_nScreen].gBtnWidget->style, gdkDrawable, GTK_STATE_NORMAL, GTK_S… in NWPaintGTKListBox()
2440 …gtk_paint_box( gWidgetData[m_nScreen].gOptionMenuWidget->style, gdkDrawable, stateType, shadowType… in NWPaintGTKListBox()
2441 gWidgetData[m_nScreen].gOptionMenuWidget, "optionmenu", in NWPaintGTKListBox()
2447 …gtk_paint_tab( gWidgetData[m_nScreen].gOptionMenuWidget->style, gdkDrawable, stateType, shadowType… in NWPaintGTKListBox()
2448 gWidgetData[m_nScreen].gOptionMenuWidget, "optionmenutab", in NWPaintGTKListBox()
2457 …gtk_paint_shadow( gWidgetData[m_nScreen].gScrolledWindowWidget->style, gdkDrawable, GTK_STATE_NORM… in NWPaintGTKListBox()
2458 &clipRect, gWidgetData[m_nScreen].gScrolledWindowWidget, "scrolled_window", in NWPaintGTKListBox()
2480 GtkWidget* pButtonWidget = gWidgetData[m_nScreen].gToolbarButtonWidget; in NWPaintGTKToolbar()
2496 NWSetWidgetState( gWidgetData[m_nScreen].gToolbarWidget, nState, stateType ); in NWPaintGTKToolbar()
2498 GTK_WIDGET_UNSET_FLAGS( gWidgetData[m_nScreen].gToolbarWidget, GTK_SENSITIVE ); in NWPaintGTKToolbar()
2500 GTK_WIDGET_SET_FLAGS( gWidgetData[m_nScreen].gToolbarWidget, GTK_SENSITIVE ); in NWPaintGTKToolbar()
2503 …gtk_toolbar_set_orientation( GTK_TOOLBAR(gWidgetData[m_nScreen].gToolbarWidget), GTK_ORIENTATION_H… in NWPaintGTKToolbar()
2505 …gtk_toolbar_set_orientation( GTK_TOOLBAR(gWidgetData[m_nScreen].gToolbarWidget), GTK_ORIENTATION_V… in NWPaintGTKToolbar()
2510 NWSetWidgetState( gWidgetData[m_nScreen].gHandleBoxWidget, nState, stateType ); in NWPaintGTKToolbar()
2512 GTK_WIDGET_UNSET_FLAGS( gWidgetData[m_nScreen].gHandleBoxWidget, GTK_SENSITIVE ); in NWPaintGTKToolbar()
2514 GTK_WIDGET_SET_FLAGS( gWidgetData[m_nScreen].gHandleBoxWidget, GTK_SENSITIVE ); in NWPaintGTKToolbar()
2516 …gtk_handle_box_set_shadow_type( GTK_HANDLE_BOX(gWidgetData[m_nScreen].gHandleBoxWidget), shadowTyp… in NWPaintGTKToolbar()
2537 pButtonWidget = gWidgetData[m_nScreen].gToolbarToggleWidget; in NWPaintGTKToolbar()
2566 gtk_paint_flat_box( gWidgetData[m_nScreen].gToolbarWidget->style, in NWPaintGTKToolbar()
2571 gWidgetData[m_nScreen].gToolbarWidget, in NWPaintGTKToolbar()
2574 gtk_paint_box( gWidgetData[m_nScreen].gToolbarWidget->style, in NWPaintGTKToolbar()
2579 gWidgetData[m_nScreen].gToolbarWidget, in NWPaintGTKToolbar()
2586 gtk_paint_handle( gWidgetData[m_nScreen].gHandleBoxWidget->style, in NWPaintGTKToolbar()
2591 gWidgetData[m_nScreen].gHandleBoxWidget, in NWPaintGTKToolbar()
2644 gtk_widget_style_get( gWidgetData[m_nScreen].gMenuItemMenubarWidget, in NWPaintGTKMenubar()
2660 NWSetWidgetState( gWidgetData[m_nScreen].gMenubarWidget, nState, stateType ); in NWPaintGTKMenubar()
2662 GTK_WIDGET_UNSET_FLAGS( gWidgetData[m_nScreen].gMenubarWidget, GTK_SENSITIVE ); in NWPaintGTKMenubar()
2664 GTK_WIDGET_SET_FLAGS( gWidgetData[m_nScreen].gMenubarWidget, GTK_SENSITIVE ); in NWPaintGTKMenubar()
2667 gtk_paint_flat_box( gWidgetData[m_nScreen].gMenubarWidget->style, in NWPaintGTKMenubar()
2675 gtk_paint_box( gWidgetData[m_nScreen].gMenubarWidget->style, in NWPaintGTKMenubar()
2680 gWidgetData[m_nScreen].gMenubarWidget, in NWPaintGTKMenubar()
2688 gtk_paint_box( gWidgetData[m_nScreen].gMenuItemMenubarWidget->style, in NWPaintGTKMenubar()
2693 gWidgetData[m_nScreen].gMenuItemMenubarWidget, in NWPaintGTKMenubar()
2733 gtk_widget_style_get( gWidgetData[m_nScreen].gMenuItemMenuWidget, in NWPaintGTKPopupMenu()
2738 NWSetWidgetState( gWidgetData[m_nScreen].gMenuWidget, nState, stateType ); in NWPaintGTKPopupMenu()
2740 GTK_WIDGET_UNSET_FLAGS( gWidgetData[m_nScreen].gMenuWidget, GTK_SENSITIVE ); in NWPaintGTKPopupMenu()
2742 GTK_WIDGET_SET_FLAGS( gWidgetData[m_nScreen].gMenuWidget, GTK_SENSITIVE ); in NWPaintGTKPopupMenu()
2754 gtk_paint_flat_box( gWidgetData[m_nScreen].gMenuWidget->style, in NWPaintGTKPopupMenu()
2762 gtk_paint_box( gWidgetData[m_nScreen].gMenuWidget->style, in NWPaintGTKPopupMenu()
2767 gWidgetData[m_nScreen].gMenuWidget, in NWPaintGTKPopupMenu()
2776 gtk_paint_box( gWidgetData[m_nScreen].gMenuItemMenuWidget->style, in NWPaintGTKPopupMenu()
2781 gWidgetData[m_nScreen].gMenuItemMenuWidget, in NWPaintGTKPopupMenu()
2789 gWidgetData[m_nScreen].gMenuItemCheckMenuWidget : in NWPaintGTKPopupMenu()
2790 gWidgetData[m_nScreen].gMenuItemRadioMenuWidget; in NWPaintGTKPopupMenu()
2812 gWidgetData[m_nScreen].gMenuItemMenuWidget, in NWPaintGTKPopupMenu()
2823 gWidgetData[m_nScreen].gMenuItemMenuWidget, in NWPaintGTKPopupMenu()
2858 gtk_paint_flat_box( gWidgetData[m_nScreen].gTooltipPopup->style, in NWPaintGTKTooltip()
2863 gWidgetData[m_nScreen].gTooltipPopup, in NWPaintGTKTooltip()
2910 gtk_paint_expander( gWidgetData[m_nScreen].gTreeView->style, in NWPaintGTKListNode()
2914 gWidgetData[m_nScreen].gTreeView, in NWPaintGTKListNode()
2948 gtk_paint_flat_box( gWidgetData[m_nScreen].gProgressBar->style, in NWPaintGTKProgress()
2953 gWidgetData[m_nScreen].gProgressBar, in NWPaintGTKProgress()
2961 gtk_paint_box( gWidgetData[m_nScreen].gProgressBar->style, in NWPaintGTKProgress()
2965 gWidgetData[m_nScreen].gProgressBar, in NWPaintGTKProgress()
2972 gtk_paint_box( gWidgetData[m_nScreen].gProgressBar->style, in NWPaintGTKProgress()
2976 gWidgetData[m_nScreen].gProgressBar, in NWPaintGTKProgress()
3012 ? GTK_WIDGET(gWidgetData[m_nScreen].gHScale) in NWPaintGTKSlider()
3013 : GTK_WIDGET(gWidgetData[m_nScreen].gVScale); in NWPaintGTKSlider()
3073 gtk_paint_flat_box( gWidgetData[m_nScreen].gProgressBar->style, in NWPaintGTKSlider()
3078 gWidgetData[m_nScreen].gProgressBar, in NWPaintGTKSlider()
3086 gtk_paint_box( gWidgetData[m_nScreen].gProgressBar->style, in NWPaintGTKSlider()
3090 gWidgetData[m_nScreen].gProgressBar, in NWPaintGTKSlider()
3097 gtk_paint_box( gWidgetData[m_nScreen].gProgressBar->style, in NWPaintGTKSlider()
3101 gWidgetData[m_nScreen].gProgressBar, in NWPaintGTKSlider()
3135 gtk_widget_style_get( gWidgetData[nScreen].gOptionMenuWidget, in NWGetListBoxButtonRect()
3148 xthickness = gWidgetData[nScreen].gOptionMenuWidget->style->xthickness; in NWGetListBoxButtonRect()
3196 gtk_widget_style_get( gWidgetData[nScreen].gOptionMenuWidget, in NWGetListBoxIndicatorRect()
3210 …tPos( Point( aAreaRect.Left() + aAreaRect.GetWidth() - width - right - gWidgetData[nScreen].gOptio… in NWGetListBoxIndicatorRect()
3249 2*gWidgetData[nScreen].gToolbarButtonWidget->style->xthickness in NWGetToolbarRect()
3251 + 3*gWidgetData[nScreen].gToolbarButtonWidget->style->xthickness; // Murphy factor in NWGetToolbarRect()
3253 2*gWidgetData[nScreen].gToolbarButtonWidget->style->ythickness in NWGetToolbarRect()
3255 …+ 3*gWidgetData[nScreen].gToolbarButtonWidget->style->ythickness; // Murphy factor … in NWGetToolbarRect()
3257 gtk_widget_ensure_style( gWidgetData[nScreen].gToolbarButtonWidget ); in NWGetToolbarRect()
3333 GtkStyle* pTooltipStyle = gtk_widget_get_style( gWidgetData[m_nScreen].gTooltipPopup ); in updateSettings()
3398 GtkStyle* pMenuStyle = gtk_widget_get_style( gWidgetData[m_nScreen].gMenuWidget ); in updateSettings()
3399 GtkStyle* pMenuItemStyle = gtk_rc_get_style( gWidgetData[m_nScreen].gMenuItemMenuWidget ); in updateSettings()
3400 GtkStyle* pMenubarStyle = gtk_rc_get_style( gWidgetData[m_nScreen].gMenubarWidget ); in updateSettings()
3401 …GtkStyle* pMenuTextStyle = gtk_rc_get_style( gtk_bin_get_child( GTK_BIN(gWidgetData[m_nScreen].gMe… in updateSettings()
3535 GtkSettings *pSettings = gtk_widget_get_settings( gWidgetData[m_nScreen].gEditBoxWidget ); in updateSettings()
3552 pSettings = gtk_widget_get_settings( gWidgetData[m_nScreen].gImageMenuItem ); in updateSettings()
3562 gtk_widget_style_get( gWidgetData[m_nScreen].gScrollHorizWidget, in updateSettings()
3767 NWFWidgetData& rData = gWidgetData[nScreen]; in NWAddWidgetToCacheWindow()
3796 if ( !gWidgetData[nScreen].gBtnWidget ) in NWEnsureGTKButton()
3798 gWidgetData[nScreen].gBtnWidget = gtk_button_new_with_label( "" ); in NWEnsureGTKButton()
3799 NWAddWidgetToCacheWindow( gWidgetData[nScreen].gBtnWidget, nScreen ); in NWEnsureGTKButton()
3807 if ( !gWidgetData[nScreen].gRadioWidget || !gWidgetData[nScreen].gRadioWidgetSibling ) in NWEnsureGTKRadio()
3809 gWidgetData[nScreen].gRadioWidget = gtk_radio_button_new( NULL ); in NWEnsureGTKRadio()
3810 …gWidgetData[nScreen].gRadioWidgetSibling = gtk_radio_button_new_from_widget( GTK_RADIO_BUTTON(gWid… in NWEnsureGTKRadio()
3811 NWAddWidgetToCacheWindow( gWidgetData[nScreen].gRadioWidget, nScreen ); in NWEnsureGTKRadio()
3812 NWAddWidgetToCacheWindow( gWidgetData[nScreen].gRadioWidgetSibling, nScreen ); in NWEnsureGTKRadio()
3820 if ( !gWidgetData[nScreen].gCheckWidget ) in NWEnsureGTKCheck()
3822 gWidgetData[nScreen].gCheckWidget = gtk_check_button_new(); in NWEnsureGTKCheck()
3823 NWAddWidgetToCacheWindow( gWidgetData[nScreen].gCheckWidget, nScreen ); in NWEnsureGTKCheck()
3831 if ( !gWidgetData[nScreen].gScrollHorizWidget ) in NWEnsureGTKScrollbars()
3833 gWidgetData[nScreen].gScrollHorizWidget = gtk_hscrollbar_new( NULL ); in NWEnsureGTKScrollbars()
3834 NWAddWidgetToCacheWindow( gWidgetData[nScreen].gScrollHorizWidget, nScreen ); in NWEnsureGTKScrollbars()
3837 if ( !gWidgetData[nScreen].gScrollVertWidget ) in NWEnsureGTKScrollbars()
3839 gWidgetData[nScreen].gScrollVertWidget = gtk_vscrollbar_new( NULL ); in NWEnsureGTKScrollbars()
3840 NWAddWidgetToCacheWindow( gWidgetData[nScreen].gScrollVertWidget, nScreen ); in NWEnsureGTKScrollbars()
3848 if ( !gWidgetData[nScreen].gArrowWidget || !gWidgetData[nScreen].gDropdownWidget ) in NWEnsureGTKArrow()
3850 gWidgetData[nScreen].gDropdownWidget = gtk_toggle_button_new(); in NWEnsureGTKArrow()
3851 NWAddWidgetToCacheWindow( gWidgetData[nScreen].gDropdownWidget, nScreen ); in NWEnsureGTKArrow()
3852 gWidgetData[nScreen].gArrowWidget = gtk_arrow_new( GTK_ARROW_DOWN, GTK_SHADOW_OUT ); in NWEnsureGTKArrow()
3853 …gtk_container_add( GTK_CONTAINER(gWidgetData[nScreen].gDropdownWidget), gWidgetData[nScreen].gArro… in NWEnsureGTKArrow()
3854 gtk_widget_set_rc_style( gWidgetData[nScreen].gArrowWidget ); in NWEnsureGTKArrow()
3855 gtk_widget_realize( gWidgetData[nScreen].gArrowWidget ); in NWEnsureGTKArrow()
3863 if ( !gWidgetData[nScreen].gEditBoxWidget ) in NWEnsureGTKEditBox()
3865 gWidgetData[nScreen].gEditBoxWidget = gtk_entry_new(); in NWEnsureGTKEditBox()
3866 NWAddWidgetToCacheWindow( gWidgetData[nScreen].gEditBoxWidget, nScreen ); in NWEnsureGTKEditBox()
3874 if ( !gWidgetData[nScreen].gSpinButtonWidget ) in NWEnsureGTKSpinButton()
3877 gWidgetData[nScreen].gSpinButtonWidget = gtk_spin_button_new( adj, 1, 2 ); in NWEnsureGTKSpinButton()
3881 gtk_editable_set_editable(GTK_EDITABLE(gWidgetData[nScreen].gSpinButtonWidget), false); in NWEnsureGTKSpinButton()
3883 NWAddWidgetToCacheWindow( gWidgetData[nScreen].gSpinButtonWidget, nScreen ); in NWEnsureGTKSpinButton()
3891 if ( !gWidgetData[nScreen].gNotebookWidget ) in NWEnsureGTKNotebook()
3893 gWidgetData[nScreen].gNotebookWidget = gtk_notebook_new(); in NWEnsureGTKNotebook()
3894 NWAddWidgetToCacheWindow( gWidgetData[nScreen].gNotebookWidget, nScreen ); in NWEnsureGTKNotebook()
3902 if ( !gWidgetData[nScreen].gOptionMenuWidget ) in NWEnsureGTKOptionMenu()
3904 gWidgetData[nScreen].gOptionMenuWidget = gtk_option_menu_new(); in NWEnsureGTKOptionMenu()
3905 NWAddWidgetToCacheWindow( gWidgetData[nScreen].gOptionMenuWidget, nScreen ); in NWEnsureGTKOptionMenu()
3913 if ( !gWidgetData[nScreen].gComboWidget ) in NWEnsureGTKCombo()
3915 gWidgetData[nScreen].gComboWidget = gtk_combo_new(); in NWEnsureGTKCombo()
3919 …gtk_editable_set_editable(GTK_EDITABLE(GTK_COMBO(gWidgetData[nScreen].gComboWidget)->entry), false… in NWEnsureGTKCombo()
3921 NWAddWidgetToCacheWindow( gWidgetData[nScreen].gComboWidget, nScreen ); in NWEnsureGTKCombo()
3924 gtk_widget_realize( GTK_COMBO(gWidgetData[nScreen].gComboWidget)->button ); in NWEnsureGTKCombo()
3925 gtk_widget_realize( GTK_COMBO(gWidgetData[nScreen].gComboWidget)->entry ); in NWEnsureGTKCombo()
3933 if ( !gWidgetData[nScreen].gScrolledWindowWidget ) in NWEnsureGTKScrolledWindow()
3938 gWidgetData[nScreen].gScrolledWindowWidget = gtk_scrolled_window_new( hadj, vadj ); in NWEnsureGTKScrolledWindow()
3939 NWAddWidgetToCacheWindow( gWidgetData[nScreen].gScrolledWindowWidget, nScreen ); in NWEnsureGTKScrolledWindow()
3947 if( !gWidgetData[nScreen].gToolbarWidget ) in NWEnsureGTKToolbar()
3949 gWidgetData[nScreen].gToolbarWidget = gtk_toolbar_new(); in NWEnsureGTKToolbar()
3950 NWAddWidgetToCacheWindow( gWidgetData[nScreen].gToolbarWidget, nScreen ); in NWEnsureGTKToolbar()
3951 gWidgetData[nScreen].gToolbarButtonWidget = gtk_button_new(); in NWEnsureGTKToolbar()
3952 gWidgetData[nScreen].gToolbarToggleWidget = gtk_toggle_button_new(); in NWEnsureGTKToolbar()
3955 gtk_widget_ensure_style( gWidgetData[nScreen].gToolbarWidget ); in NWEnsureGTKToolbar()
3956 gtk_widget_style_get( gWidgetData[nScreen].gToolbarWidget, in NWEnsureGTKToolbar()
3960 gtk_button_set_relief( GTK_BUTTON(gWidgetData[nScreen].gToolbarButtonWidget), aRelief ); in NWEnsureGTKToolbar()
3961 GTK_WIDGET_UNSET_FLAGS( gWidgetData[nScreen].gToolbarButtonWidget, GTK_CAN_FOCUS ); in NWEnsureGTKToolbar()
3962 GTK_WIDGET_UNSET_FLAGS( gWidgetData[nScreen].gToolbarButtonWidget, GTK_CAN_DEFAULT ); in NWEnsureGTKToolbar()
3963 NWAddWidgetToCacheWindow( gWidgetData[nScreen].gToolbarButtonWidget, nScreen ); in NWEnsureGTKToolbar()
3965 gtk_button_set_relief( GTK_BUTTON(gWidgetData[nScreen].gToolbarToggleWidget), aRelief ); in NWEnsureGTKToolbar()
3966 GTK_WIDGET_UNSET_FLAGS( gWidgetData[nScreen].gToolbarToggleWidget, GTK_CAN_FOCUS ); in NWEnsureGTKToolbar()
3967 GTK_WIDGET_UNSET_FLAGS( gWidgetData[nScreen].gToolbarToggleWidget, GTK_CAN_DEFAULT ); in NWEnsureGTKToolbar()
3968 NWAddWidgetToCacheWindow( gWidgetData[nScreen].gToolbarToggleWidget, nScreen ); in NWEnsureGTKToolbar()
3970 if( ! gWidgetData[nScreen].gHandleBoxWidget ) in NWEnsureGTKToolbar()
3972 gWidgetData[nScreen].gHandleBoxWidget = gtk_handle_box_new(); in NWEnsureGTKToolbar()
3973 NWAddWidgetToCacheWindow( gWidgetData[nScreen].gHandleBoxWidget, nScreen ); in NWEnsureGTKToolbar()
3981 if( !gWidgetData[nScreen].gMenubarWidget ) in NWEnsureGTKMenubar()
3983 gWidgetData[nScreen].gMenubarWidget = gtk_menu_bar_new(); in NWEnsureGTKMenubar()
3984 gWidgetData[nScreen].gMenuItemMenubarWidget = gtk_menu_item_new_with_label( "b" ); in NWEnsureGTKMenubar()
3985 …gtk_menu_shell_append( GTK_MENU_SHELL( gWidgetData[nScreen].gMenubarWidget ), gWidgetData[nScreen]… in NWEnsureGTKMenubar()
3986 gtk_widget_show( gWidgetData[nScreen].gMenuItemMenubarWidget ); in NWEnsureGTKMenubar()
3987 NWAddWidgetToCacheWindow( gWidgetData[nScreen].gMenubarWidget, nScreen ); in NWEnsureGTKMenubar()
3988 gtk_widget_show( gWidgetData[nScreen].gMenubarWidget ); in NWEnsureGTKMenubar()
3991 gtk_widget_realize( gWidgetData[nScreen].gMenuItemMenubarWidget ); in NWEnsureGTKMenubar()
3992 gtk_widget_ensure_style( gWidgetData[nScreen].gMenuItemMenubarWidget ); in NWEnsureGTKMenubar()
3994 …gWidgetDefaultFlags[ (long)gWidgetData[nScreen].gMenuItemMenubarWidget ] = GTK_WIDGET_FLAGS( gWidg… in NWEnsureGTKMenubar()
4000 if( !gWidgetData[nScreen].gMenuWidget ) in NWEnsureGTKMenu()
4002 gWidgetData[nScreen].gMenuWidget = gtk_menu_new(); in NWEnsureGTKMenu()
4003 gWidgetData[nScreen].gMenuItemMenuWidget = gtk_menu_item_new_with_label( "b" ); in NWEnsureGTKMenu()
4004 gWidgetData[nScreen].gMenuItemCheckMenuWidget = gtk_check_menu_item_new_with_label( "b" ); in NWEnsureGTKMenu()
4005 … gWidgetData[nScreen].gMenuItemRadioMenuWidget = gtk_radio_menu_item_new_with_label( NULL, "b" ); in NWEnsureGTKMenu()
4006 gWidgetData[nScreen].gImageMenuItem = gtk_image_menu_item_new(); in NWEnsureGTKMenu()
4008 …gtk_menu_shell_append( GTK_MENU_SHELL( gWidgetData[nScreen].gMenuWidget ), gWidgetData[nScreen].gM… in NWEnsureGTKMenu()
4009 …gtk_menu_shell_append( GTK_MENU_SHELL( gWidgetData[nScreen].gMenuWidget ), gWidgetData[nScreen].gM… in NWEnsureGTKMenu()
4010 …gtk_menu_shell_append( GTK_MENU_SHELL( gWidgetData[nScreen].gMenuWidget ), gWidgetData[nScreen].gM… in NWEnsureGTKMenu()
4011 …gtk_menu_shell_append( GTK_MENU_SHELL( gWidgetData[nScreen].gMenuWidget ), gWidgetData[nScreen].gI… in NWEnsureGTKMenu()
4014 gtk_widget_realize( gWidgetData[nScreen].gMenuWidget ); in NWEnsureGTKMenu()
4015 gtk_widget_ensure_style( gWidgetData[nScreen].gMenuWidget ); in NWEnsureGTKMenu()
4017 gtk_widget_realize( gWidgetData[nScreen].gMenuItemMenuWidget ); in NWEnsureGTKMenu()
4018 gtk_widget_ensure_style( gWidgetData[nScreen].gMenuItemMenuWidget ); in NWEnsureGTKMenu()
4020 gtk_widget_realize( gWidgetData[nScreen].gMenuItemCheckMenuWidget ); in NWEnsureGTKMenu()
4021 gtk_widget_ensure_style( gWidgetData[nScreen].gMenuItemCheckMenuWidget ); in NWEnsureGTKMenu()
4023 gtk_widget_realize( gWidgetData[nScreen].gMenuItemRadioMenuWidget ); in NWEnsureGTKMenu()
4024 gtk_widget_ensure_style( gWidgetData[nScreen].gMenuItemRadioMenuWidget ); in NWEnsureGTKMenu()
4026 gtk_widget_realize( gWidgetData[nScreen].gImageMenuItem ); in NWEnsureGTKMenu()
4027 gtk_widget_ensure_style( gWidgetData[nScreen].gImageMenuItem ); in NWEnsureGTKMenu()
4029 …gWidgetDefaultFlags[ (long)gWidgetData[nScreen].gMenuWidget ] = GTK_WIDGET_FLAGS( gWidgetData[nScr… in NWEnsureGTKMenu()
4030 …gWidgetDefaultFlags[ (long)gWidgetData[nScreen].gMenuItemMenuWidget ] = GTK_WIDGET_FLAGS( gWidgetD… in NWEnsureGTKMenu()
4031 …gWidgetDefaultFlags[ (long)gWidgetData[nScreen].gMenuItemCheckMenuWidget ] = GTK_WIDGET_FLAGS( gWi… in NWEnsureGTKMenu()
4032 …gWidgetDefaultFlags[ (long)gWidgetData[nScreen].gMenuItemRadioMenuWidget ] = GTK_WIDGET_FLAGS( gWi… in NWEnsureGTKMenu()
4033 …gWidgetDefaultFlags[ (long)gWidgetData[nScreen].gImageMenuItem ] = GTK_WIDGET_FLAGS( gWidgetData[n… in NWEnsureGTKMenu()
4039 if( !gWidgetData[nScreen].gTooltipPopup ) in NWEnsureGTKTooltip()
4041 gWidgetData[nScreen].gTooltipPopup = gtk_window_new (GTK_WINDOW_POPUP); in NWEnsureGTKTooltip()
4044 gtk_window_set_screen( GTK_WINDOW(gWidgetData[nScreen].gTooltipPopup), pScreen ); in NWEnsureGTKTooltip()
4045 gtk_widget_set_name( gWidgetData[nScreen].gTooltipPopup, "gtk-tooltips"); in NWEnsureGTKTooltip()
4046 gtk_widget_realize( gWidgetData[nScreen].gTooltipPopup ); in NWEnsureGTKTooltip()
4047 gtk_widget_ensure_style( gWidgetData[nScreen].gTooltipPopup ); in NWEnsureGTKTooltip()
4053 if( !gWidgetData[nScreen].gProgressBar ) in NWEnsureGTKProgressBar()
4055 gWidgetData[nScreen].gProgressBar = gtk_progress_bar_new (); in NWEnsureGTKProgressBar()
4056 NWAddWidgetToCacheWindow( gWidgetData[nScreen].gProgressBar, nScreen ); in NWEnsureGTKProgressBar()
4062 if( !gWidgetData[nScreen].gTreeView ) in NWEnsureGTKTreeView()
4064 gWidgetData[nScreen].gTreeView = gtk_tree_view_new (); in NWEnsureGTKTreeView()
4065 NWAddWidgetToCacheWindow( gWidgetData[nScreen].gTreeView, nScreen ); in NWEnsureGTKTreeView()
4071 if( !gWidgetData[nScreen].gHScale ) in NWEnsureGTKSlider()
4073 gWidgetData[nScreen].gHScale = gtk_hscale_new_with_range(0, 10, 1); in NWEnsureGTKSlider()
4074 NWAddWidgetToCacheWindow( gWidgetData[nScreen].gHScale, nScreen ); in NWEnsureGTKSlider()
4076 if( !gWidgetData[nScreen].gVScale ) in NWEnsureGTKSlider()
4078 gWidgetData[nScreen].gVScale = gtk_vscale_new_with_range(0, 10, 1); in NWEnsureGTKSlider()
4079 NWAddWidgetToCacheWindow( gWidgetData[nScreen].gVScale, nScreen ); in NWEnsureGTKSlider()