眼眸繁星
哈哈,这简单!gbooleaninfoscreen_add_widget_padding_full(InfoScreen*screen,GtkWidget*widget,gfloatxalign,gfloatyalign,gfloatxscale,gfloatyscale,gbooleanexpand,gbooleanfill,guintpadding,guinttpadding,guintbpadding,guintlpadding,guintrpadding){GtkWidget*align=gtk_alignment_new(xalign,yalign,xscale,yscale);g_return_val_if_fail(align!=NULL,FALSE);gtk_alignment_set_padding(GTK_ALIGNMENT(align),tpadding,bpadding,lpadding,rpadding);gtk_container_add(GTK_CONTAINER(align),widget);gtk_box_pack_start(GTK_BOX(screen->wVbox),align,expand,fill,padding);returnTRUE;}这个是我们公司做的项目里的一个对齐函数,参数比较多。你慢慢琢磨吧