注册 登录
LUPA开源社区 返回首页

asdfasdfzxc的个人空间 http://www.lupaworld.com/?434384 [收藏] [复制] [分享] [RSS]

我的博客

play3界面设计

热度 4已有 1278 次阅读2011-1-29 03:10

GtkWidget *hbOther;
hbOther=gtk_hbox_new(FALSE,0);
gtk_widget_show(hbOther);
gtk_box_pack_start(GTK_BOX(vbMain),hbOther,TRUE,TRUE,0);
Gtk_Widget *cbbMode;
cbbMode=gtk_combo_box_new_text();
gtk_widget_show(cbbMode);
gtk_box_pack_start(GTK_BOX(hbOther),cbbMode,TRUE,TRUE,0);
get_widget_set_size_request(cbbMode,46,31);
get_combo_box_append_text(GTK_COMBO_BOX(cbbMode),"顺序模式");
get_combo_box_append_text(GTK_COMBO_BOX(cbbMode),"循环模式");
get_combo_box_append_text(GTK_COMBO_BOX(cbbMode),"随机模式");
gtk_combo_box_set_active(GTK_COMBO_BOX(cbbMode),0);
GtkWidget *btMedialib;
btMedialib=gtk_button_new();
gtk_widget_show(btMedialib);
gtk_box_pack_start(GTK_BOX(hbOther),btMedialib,FALSE,FALSE,0);
gtk_widget_set_size_request(btMedialib,92,32);
GtkWidget *alignment1;
alignment1=gtk_alignment_new(0.5,0.5,0,0);
gtk_widget_show(alignment1);
gtk_container_add(GTK_CONTAINER(btMedialib),alignment1);
GtkWidget *hbox2;
hbox2=gtk_hbox_new(FALSE,0);
gtk_widget_show(hbox2);
gtk_container_add(GTK_CONTAINER(alignment1),hbox2);
GtkWidget *image6;
image6=gtk_image_new_from_stock("gtk-index",GTK_ICON_SIZE_BUTTON);
gtk_widget_show(image6);
gtk_box_pack_start(GTK_BOX(hbox2),image6,FALSE,FALSE,0);
GtkWidget *label1;
label1=gtk_label_new_with_mnemonic("媒体库");
gtk_widget_show(label1);
gtk_box_pack_start(GTK_BOX(hbox2),label1,FALSE,FALSE,0);
GtkWidget *btPlaylist;
btPlaylist=gtk_button_new_with_mnemonic("媒体列表");
gtk_widget_show(btPlaylist);
gtk_box_pack_start(GTK_BOX(hbOther),btPlaylist,FALSE,FALSE,0);
gtk_widget_set_size_request(btPlaylist,60,29);
GtkWidget *btVolume;
btVolume=gtk_toggle_button_new();
gtk_widget_show(btVolume);
gtk_box_pack_start(GTK_BOX(hbOther),btVolume,FALSE,FALSE,0);
gtk_widget_set_size_request(btVolume,85,34);
GtkWidget *alignment2;
alignment2=gtk_alignment_new(0.5,0.5,0,0);
gtk_widget_show(alignment2);
gtk_container_add(GTK_CONTAINER(btVolume),alignment2);
GtkWidget *hbox3;
hbox3=gtk_hbox_new(FALSE,0);
gtk_widget_show(hbox3);
gtk_container_add(GTK_CONTAINER(alignment2),hbox3);
GtkWidget *image7;
image7=gtk_image_new_from_stock("gtk-index",GTK_ICON_SIZE_BUTTON);
gtk_widget_show(image7);
gtk_box_pack_start(GTK_BOX(hbox3),image7,FALSE,FALSE,0);
GtkWidget *label2;
label1=gtk_label_new_with_mnemonic("调节音量");
gtk_widget_show(label2);
gtk_box_pack_start(GTK_BOX(hbox3),label2,FALSE,FALSE,0);
GtkWidget *tbtMute;
tbtMute=gtk_toggle_button_new_with_mnemonic("静音");
gtk_widget_show(tbtMute);
gtk_box_pack_start(GTK_BOX(hbOther),tbtMute,FALSE,FALSE,0);
gtk_widget_set_size_request(tbtMute,48,29);
return winMain;
}

刚表态过的朋友 (0 人)

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 注册
验证问答 换一个 验证码 换一个

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部