Re: [問題] gtk notebook
※ 引述《HZYSoft (PCMan 知識+)》之銘言:
: ※ 引述《garyzyg (garyzyg)》之銘言:
: : 作者: garyzyg (garyzyg) 看板: C_and_CPP
: : 標題: [問題] gtk notebook
: : 時間: Sat May 24 16:55:12 2008
: : http://rafb.net/p/zhg23t76.html
: : 請問一下, tab label 怎麼會出不來呢?
: : hbox 包含 check_button, label 各一個,
: : tab label 放 hbox
: gtk_widget_show_all(hbox);
: 兩行文...
ok 了
再請問一下
gtk_widget_show_all (window);
不是會 hierarchical 的 show 出來嘛?
怎會還要單獨去 show hbox?
--
不過執行的時候出現
(notebooks:14152): Gtk-WARNING **: Attempting to add a widget with type GtkHBox to a container of type GtkNotebook, but the widget is already inside a container of type GtkNotebook, the GTK+ FAQ at http://www.gtk.org/faq/ explains how to reparent a widget.
我懷疑應該嵌套的方法錯了,
繼續研讀好了.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 218.166.44.220
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 3 之 3 篇):