1
由於Linux Mint Debian的上一個更新包,GTK3按鈕突然需要比以前更多的寬度,因此它們不適合我寫的應用程序。問題在於它們在按鈕標籤周圍分配了更多的空間(像每邊25個像素),並且不能確信不這樣做。在GTK3按鈕中減少填充
該按鈕是用gtk_button_new_with_label創建的,所以沒什麼特別。
我想盡一切辦法減少浪費的空間,但是毫無效果:
gtk_widget_set_size_request(GTK_WIDGET(mybutton),1,1); does nothing.
gtk_widget_set_margin_right(sidebar.button[i],0); decreases the spacing around the button, not inside.
gtk_container_set_border_width(GTK_CONTAINER(mybutton),0); decreases the spacing around the button, not inside.
你有什麼我錯過了什麼?