Mercurial > pidgin
changeset 26065:09386489e6d1
Change the media window items' orientations to look better.
author | Mike Ruprecht <maiku@soc.pidgin.im> |
---|---|
date | Fri, 30 Jan 2009 07:59:37 +0000 |
parents | 4f013819e4e3 |
children | cd720cb4b47c |
files | pidgin/gtkmedia.c |
diffstat | 1 files changed, 16 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkmedia.c Fri Jan 30 06:39:41 2009 +0000 +++ b/pidgin/gtkmedia.c Fri Jan 30 07:59:37 2009 +0000 @@ -186,12 +186,16 @@ static void pidgin_media_init (PidginMedia *media) { - GtkWidget *vbox; + GtkWidget *vbox, *hbox; media->priv = PIDGIN_MEDIA_GET_PRIVATE(media); vbox = gtk_vbox_new(FALSE, PIDGIN_HIG_BOX_SPACE); gtk_container_add(GTK_CONTAINER(media), vbox); + hbox = gtk_hbox_new(FALSE, PIDGIN_HIG_BOX_SPACE); + gtk_box_pack_end(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); + gtk_widget_show(GTK_WIDGET(hbox)); + media->priv->calling = gtk_label_new("Calling..."); media->priv->hangup = gtk_button_new_with_mnemonic("_Hangup"); media->priv->accept = gtk_button_new_with_mnemonic("_Accept"); @@ -201,11 +205,11 @@ g_signal_connect(media->priv->mute, "toggled", G_CALLBACK(pidgin_media_mute_toggled), media); - gtk_box_pack_end(GTK_BOX(vbox), media->priv->reject, FALSE, FALSE, 0); - gtk_box_pack_end(GTK_BOX(vbox), media->priv->accept, FALSE, FALSE, 0); - gtk_box_pack_end(GTK_BOX(vbox), media->priv->hangup, FALSE, FALSE, 0); - gtk_box_pack_end(GTK_BOX(vbox), media->priv->mute, FALSE, FALSE, 0); - gtk_box_pack_end(GTK_BOX(vbox), media->priv->calling, FALSE, FALSE, 0); + gtk_box_pack_end(GTK_BOX(hbox), media->priv->reject, FALSE, FALSE, 0); + gtk_box_pack_end(GTK_BOX(hbox), media->priv->accept, FALSE, FALSE, 0); + gtk_box_pack_end(GTK_BOX(hbox), media->priv->hangup, FALSE, FALSE, 0); + gtk_box_pack_end(GTK_BOX(hbox), media->priv->mute, FALSE, FALSE, 0); + gtk_box_pack_end(GTK_BOX(hbox), media->priv->calling, FALSE, FALSE, 0); gtk_widget_show_all(media->priv->accept); gtk_widget_show_all(media->priv->reject); @@ -418,7 +422,7 @@ if (gtkmedia->priv->recv_widget == NULL && type & (PURPLE_MEDIA_RECV_VIDEO | PURPLE_MEDIA_RECV_AUDIO)) { - recv_widget = gtk_hbox_new(FALSE, PIDGIN_HIG_BOX_SPACE); + recv_widget = gtk_vbox_new(FALSE, PIDGIN_HIG_BOX_SPACE); gtk_box_pack_start(GTK_BOX(gtkmedia->priv->display), recv_widget, TRUE, TRUE, 0); gtk_widget_show(recv_widget); @@ -427,7 +431,7 @@ if (gtkmedia->priv->send_widget == NULL && type & (PURPLE_MEDIA_SEND_VIDEO | PURPLE_MEDIA_SEND_AUDIO)) { - send_widget = gtk_hbox_new(FALSE, PIDGIN_HIG_BOX_SPACE); + send_widget = gtk_vbox_new(FALSE, PIDGIN_HIG_BOX_SPACE); gtk_box_pack_start(GTK_BOX(gtkmedia->priv->display), send_widget, TRUE, TRUE, 0); gtk_widget_show(send_widget); @@ -467,7 +471,7 @@ g_signal_connect(G_OBJECT(remote_video), "realize", G_CALLBACK(realize_cb), data); gtk_container_add(GTK_CONTAINER(plug), remote_video); - gtk_widget_set_size_request (GTK_WIDGET(remote_video), 100, -1); + gtk_widget_set_size_request (GTK_WIDGET(remote_video), -1, 100); gtk_widget_show(remote_video); gtk_widget_show(aspect); @@ -506,7 +510,7 @@ g_signal_connect(G_OBJECT(local_video), "realize", G_CALLBACK(realize_cb), data); gtk_container_add(GTK_CONTAINER(plug), local_video); - gtk_widget_set_size_request (GTK_WIDGET(local_video), 100, -1); + gtk_widget_set_size_request (GTK_WIDGET(local_video), -1, 100); gtk_widget_show(local_video); gtk_widget_show(aspect); @@ -516,18 +520,14 @@ if (type & PURPLE_MEDIA_RECV_AUDIO) { gtkmedia->priv->recv_progress = gtk_progress_bar_new(); - gtk_widget_set_size_request(gtkmedia->priv->recv_progress, 10, 70); - gtk_progress_bar_set_orientation(GTK_PROGRESS_BAR(gtkmedia->priv->recv_progress), - GTK_PROGRESS_BOTTOM_TO_TOP); + gtk_widget_set_size_request(gtkmedia->priv->recv_progress, 70, 10); gtk_box_pack_end(GTK_BOX(recv_widget), gtkmedia->priv->recv_progress, FALSE, FALSE, 0); gtk_widget_show(gtkmedia->priv->recv_progress); } if (type & PURPLE_MEDIA_SEND_AUDIO) { gtkmedia->priv->send_progress = gtk_progress_bar_new(); - gtk_widget_set_size_request(gtkmedia->priv->send_progress, 10, 70); - gtk_progress_bar_set_orientation(GTK_PROGRESS_BAR(gtkmedia->priv->send_progress), - GTK_PROGRESS_BOTTOM_TO_TOP); + gtk_widget_set_size_request(gtkmedia->priv->send_progress, 70, 10); gtk_box_pack_end(GTK_BOX(send_widget), gtkmedia->priv->send_progress, FALSE, FALSE, 0); gtk_widget_show(gtkmedia->priv->send_progress);