如何更改GtkTextView的背景颜色? [英] How to change background color of GtkTextView?

查看:372
本文介绍了如何更改GtkTextView的背景颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更改GtkTextView的背景颜色?我试着用普通的widget设置bg功能,但gtk只是改变GtkText View的边框颜色。



另外可以请一些人用简单的例子来解释我如何改变文本GtkTextView中的颜色/字体/文本大小(GtkTextView中的整个文本)?

我喜欢一些例子,但它们不起作用..

Thnaks,
PP。

解决方案

  gtk_widget_modify_base )

http://library.gnome.org/devel/gtk/unstable/GtkWidget.html#gtk-widget-modify-base


How to change background color of GtkTextView? I tried with normal widget set bg functionality but gtk is just changing border color of GtkText View.

Plus can some some please explain me with simple example, that how to change Text Color/Font/Text Size in GtkTextView (Whole text in GtkTextView)?

I fond some examples but they are not working..

Thnaks, PP.

解决方案

gtk_widget_modify_base()

http://library.gnome.org/devel/gtk/unstable/GtkWidget.html#gtk-widget-modify-base

这篇关于如何更改GtkTextView的背景颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆