Gtk工具栏看起来很奇怪

时间:2014-10-14 17:12:36

标签: ubuntu gtk toolbar

我使用c program with gtk gui。它可以工作,但在某些计算机上它有一个很好的工具栏:big buttons with text但在另一个糟糕的工具栏上(没有文字的小按钮):enter image description here

一些检查:

dpkg -l libgtk* | grep -e '^i' | grep -e 'libgtk-*[0-9]'

输出:

ii  libgtk-3-0:amd64    3.8.6-0ubuntu3.1     amd64 GTK+ graphical user interface library
ii  libgtk-3-bin 3.8.6-0ubuntu3.1  amd64 programs for the GTK+ graphical user interface         library
ii  libgtk-3-common 3.8.6-0ubuntu3.1 all common files for the GTK+ graphical user interface library
ii  libgtk-3-dev 3.8.6-0ubuntu3.1  amd64        development files for the GTK+ library
ii  libgtk2-perl 2:1.247-2 amd64  Perl interface to the 2.x series of the Gimp Toolkit library
ii  libgtk2.0-0:amd64 2.24.20-1ubuntu1 amd64        GTK+ graphical user interface library
ii  libgtk2.0-bin 2.24.20-1ubuntu1 amd64 programs for the GTK+ graphical user interface library
ii  libgtk2.0-common 2.24.20-1ubuntu1 all common files for the GTK+ graphical user interface library
ii  libgtk2.0-dev 2.24.20-1ubuntu1    amd64        development files for the GTK+ library

是什么原因?

TIA

1 个答案:

答案 0 :(得分:0)

Claude找到了解决方案:

gtk_toolbar_set_style(GTK_TOOLBAR(tbar),GTK_TOOLBAR_​​TEXT);

现在它有效。