Lines Matching refs:nScreen
158 static void NWEnsureGTKRadio ( int nScreen );
159 static void NWEnsureGTKButton ( int nScreen );
160 static void NWEnsureGTKCheck ( int nScreen );
161 static void NWEnsureGTKScrollbars ( int nScreen );
162 static void NWEnsureGTKArrow ( int nScreen );
163 static void NWEnsureGTKEditBox ( int nScreen );
164 static void NWEnsureGTKSpinButton ( int nScreen );
165 static void NWEnsureGTKNotebook ( int nScreen );
166 static void NWEnsureGTKOptionMenu ( int nScreen );
167 static void NWEnsureGTKCombo ( int nScreen );
168 static void NWEnsureGTKScrolledWindow ( int nScreen );
169 static void NWEnsureGTKToolbar ( int nScreen );
170 static void NWEnsureGTKMenubar ( int nScreen );
171 static void NWEnsureGTKMenu ( int nScreen );
172 static void NWEnsureGTKTooltip ( int nScreen );
173 static void NWEnsureGTKProgressBar ( int nScreen );
174 static void NWEnsureGTKTreeView ( int nScreen );
175 static void NWEnsureGTKSlider ( int nScreen );
178 static void NWAddWidgetToCacheWindow( GtkWidget* widget, int nScreen );
189 static Rectangle NWGetButtonArea( int nScreen, ControlType nType, ControlPart nPart, Rectangle aAre…
193 static Rectangle NWGetEditBoxPixmapRect( int nScreen, ControlType nType, ControlPart nPart, Rectang…
196 static void NWPaintOneEditBox( int nScreen, GdkDrawable * gdkDrawable, GdkRectangle *gdkRect,
202 static Rectangle NWGetSpinButtonRect( int nScreen, ControlType nType, ControlPart nPart, Rectangle …
205 static void NWPaintOneSpinButton( int nScreen, GdkPixmap * pixmap, ControlType nType, ControlPart n…
209 static Rectangle NWGetComboBoxButtonRect( int nScreen, ControlType nType, ControlPart nPart, Rectan…
213 static Rectangle NWGetListBoxButtonRect( int nScreen, ControlType nType, ControlPart nPart, Rectang…
216 static Rectangle NWGetListBoxIndicatorRect( int nScreen, ControlType nType, ControlPart nPart, Rect…
219 static Rectangle NWGetToolbarRect( int nScreen,
228 static Rectangle NWGetScrollButtonRect( int nScreen, ControlPart nPart, Rectangle aAreaRect );
261 NWPixmapCache( int nScreen );
298 NWPixmapCache::NWPixmapCache( int nScreen ) in NWPixmapCache() argument
302 m_screen = nScreen; in NWPixmapCache()
1204 static Rectangle NWGetButtonArea( int nScreen, in NWGetButtonArea() argument
1217 NWEnsureGTKButton( nScreen ); in NWGetButtonArea()
1218 gtk_widget_style_get( gWidgetData[nScreen].gBtnWidget, in NWGetButtonArea()
1696 static Rectangle NWGetScrollButtonRect( int nScreen, ControlPart nPart, Rectangle aAreaRect ) in NWGetScrollButtonRect() argument
1703 NWEnsureGTKScrollbars( nScreen ); in NWGetScrollButtonRect()
1706 gtk_widget_style_get( gWidgetData[nScreen].gScrollHorizWidget, in NWGetScrollButtonRect()
1717 gtk_widget_style_get( gWidgetData[nScreen].gScrollHorizWidget, in NWGetScrollButtonRect()
1812 static Rectangle NWGetEditBoxPixmapRect(int nScreen, in NWGetEditBoxPixmapRect() argument
1824 NWEnsureGTKEditBox( nScreen ); in NWGetEditBoxPixmapRect()
1827 gtk_widget_style_get( gWidgetData[nScreen].gEditBoxWidget, in NWGetEditBoxPixmapRect()
1846 static void NWPaintOneEditBox( int nScreen, in NWPaintOneEditBox() argument
1860 NWEnsureGTKButton( nScreen ); in NWPaintOneEditBox()
1861 NWEnsureGTKEditBox( nScreen ); in NWPaintOneEditBox()
1862 NWEnsureGTKSpinButton( nScreen ); in NWPaintOneEditBox()
1863 NWEnsureGTKCombo( nScreen ); in NWPaintOneEditBox()
1864 NWEnsureGTKScrolledWindow( nScreen ); in NWPaintOneEditBox()
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()
2013 static Rectangle NWGetSpinButtonRect( int nScreen, in NWGetSpinButtonRect() argument
2024 NWEnsureGTKSpinButton( nScreen ); in NWGetSpinButtonRect()
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()
2055 static void NWPaintOneSpinButton( int nScreen, in NWPaintOneSpinButton() argument
2070 NWEnsureGTKSpinButton( nScreen ); in NWPaintOneSpinButton()
2073 buttonRect = NWGetSpinButtonRect( nScreen, nType, nPart, aAreaRect, nState, aValue, rCaption ); in NWPaintOneSpinButton()
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()
2177 static Rectangle NWGetComboBoxButtonRect( int nScreen, in NWGetComboBoxButtonRect() argument
2191 NWEnsureGTKArrow( nScreen ); in NWGetComboBoxButtonRect()
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()
2210 NWEnsureGTKCombo( nScreen ); 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()
3117 static Rectangle NWGetListBoxButtonRect( int nScreen, in NWGetListBoxButtonRect() argument
3133 NWEnsureGTKOptionMenu( nScreen ); in NWGetListBoxButtonRect()
3135 gtk_widget_style_get( gWidgetData[nScreen].gOptionMenuWidget, in NWGetListBoxButtonRect()
3148 xthickness = gWidgetData[nScreen].gOptionMenuWidget->style->xthickness; in NWGetListBoxButtonRect()
3179 static Rectangle NWGetListBoxIndicatorRect( int nScreen, in NWGetListBoxIndicatorRect() argument
3194 NWEnsureGTKOptionMenu( nScreen ); in NWGetListBoxIndicatorRect()
3196 gtk_widget_style_get( gWidgetData[nScreen].gOptionMenuWidget, in NWGetListBoxIndicatorRect()
3210 …t( aAreaRect.Left() + aAreaRect.GetWidth() - width - right - gWidgetData[nScreen].gOptionMenuWidge… in NWGetListBoxIndicatorRect()
3225 static Rectangle NWGetToolbarRect( int nScreen, in NWGetToolbarRect() argument
3246 NWEnsureGTKToolbar( nScreen ); in NWGetToolbarRect()
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()
3765 static void NWAddWidgetToCacheWindow( GtkWidget* widget, int nScreen ) in NWAddWidgetToCacheWindow() argument
3767 NWFWidgetData& rData = gWidgetData[nScreen]; in NWAddWidgetToCacheWindow()
3773 GdkScreen* pScreen = gdk_display_get_screen( gdk_display_get_default(), nScreen ); in NWAddWidgetToCacheWindow()
3794 static void NWEnsureGTKButton( int nScreen ) in NWEnsureGTKButton() argument
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()
3805 static void NWEnsureGTKRadio( int nScreen ) in NWEnsureGTKRadio() argument
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()
3818 static void NWEnsureGTKCheck( int nScreen ) in NWEnsureGTKCheck() argument
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()
3829 static void NWEnsureGTKScrollbars( int nScreen ) in NWEnsureGTKScrollbars() argument
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()
3846 static void NWEnsureGTKArrow( int nScreen ) in NWEnsureGTKArrow() argument
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()
3861 static void NWEnsureGTKEditBox( int nScreen ) in NWEnsureGTKEditBox() argument
3863 if ( !gWidgetData[nScreen].gEditBoxWidget ) in NWEnsureGTKEditBox()
3865 gWidgetData[nScreen].gEditBoxWidget = gtk_entry_new(); in NWEnsureGTKEditBox()
3866 NWAddWidgetToCacheWindow( gWidgetData[nScreen].gEditBoxWidget, nScreen ); in NWEnsureGTKEditBox()
3872 static void NWEnsureGTKSpinButton( int nScreen ) in NWEnsureGTKSpinButton() argument
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()
3889 static void NWEnsureGTKNotebook( int nScreen ) in NWEnsureGTKNotebook() argument
3891 if ( !gWidgetData[nScreen].gNotebookWidget ) in NWEnsureGTKNotebook()
3893 gWidgetData[nScreen].gNotebookWidget = gtk_notebook_new(); in NWEnsureGTKNotebook()
3894 NWAddWidgetToCacheWindow( gWidgetData[nScreen].gNotebookWidget, nScreen ); in NWEnsureGTKNotebook()
3900 static void NWEnsureGTKOptionMenu( int nScreen ) in NWEnsureGTKOptionMenu() argument
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()
3911 static void NWEnsureGTKCombo( int nScreen ) in NWEnsureGTKCombo() argument
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()
3931 static void NWEnsureGTKScrolledWindow( int nScreen ) in NWEnsureGTKScrolledWindow() argument
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()
3945 static void NWEnsureGTKToolbar( int nScreen ) in NWEnsureGTKToolbar() argument
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()
3979 static void NWEnsureGTKMenubar( int nScreen ) in NWEnsureGTKMenubar() argument
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()
3998 static void NWEnsureGTKMenu( int nScreen ) in NWEnsureGTKMenu() argument
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()
4037 static void NWEnsureGTKTooltip( int nScreen ) in NWEnsureGTKTooltip() argument
4039 if( !gWidgetData[nScreen].gTooltipPopup ) in NWEnsureGTKTooltip()
4041 gWidgetData[nScreen].gTooltipPopup = gtk_window_new (GTK_WINDOW_POPUP); in NWEnsureGTKTooltip()
4042 GdkScreen* pScreen = gdk_display_get_screen( gdk_display_get_default(), nScreen ); 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()
4051 static void NWEnsureGTKProgressBar( int nScreen ) in NWEnsureGTKProgressBar() argument
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()
4060 static void NWEnsureGTKTreeView( int nScreen ) in NWEnsureGTKTreeView() argument
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()
4069 static void NWEnsureGTKSlider( int nScreen ) in NWEnsureGTKSlider() argument
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()