GTK: Remove deprecated gtk_widget_modify_bg()
If we want to change the style of a widget, we should use CSS nowadays.
This commit is contained in:
parent
e808897c47
commit
4c53f62967
|
@ -901,9 +901,6 @@ static void ToggleFullscreen(GtkToggleAction *action)
|
|||
config.window_fullscreen = gtk_toggle_action_get_active(action);
|
||||
if (config.window_fullscreen)
|
||||
{
|
||||
GdkColor black = {0, 0, 0, 0};
|
||||
gtk_widget_modify_bg(pDrawingArea, GTK_STATE_NORMAL, &black);
|
||||
|
||||
gtk_widget_hide(pMenuBar);
|
||||
gtk_widget_hide(pToolBar);
|
||||
gtk_widget_hide(pStatusBar);
|
||||
|
@ -914,8 +911,6 @@ static void ToggleFullscreen(GtkToggleAction *action)
|
|||
}
|
||||
else
|
||||
{
|
||||
gtk_widget_modify_bg(pDrawingArea, GTK_STATE_NORMAL, NULL);
|
||||
|
||||
if (config.view_menu) {
|
||||
gtk_widget_show(pMenuBar);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue