brasero r1338 - in trunk: . src
- From: philippr svn gnome org
- To: svn-commits-list gnome org
- Subject: brasero r1338 - in trunk: . src
- Date: Wed, 1 Oct 2008 12:18:08 +0000 (UTC)
Author: philippr
Date: Wed Oct 1 12:18:07 2008
New Revision: 1338
URL: http://svn.gnome.org/viewvc/brasero?rev=1338&view=rev
Log:
Fix a small widget layout problem
* src/brasero-project.c (brasero_project_get_proportion),
(brasero_project_init):
Modified:
trunk/ChangeLog
trunk/src/brasero-project.c
Modified: trunk/src/brasero-project.c
==============================================================================
--- trunk/src/brasero-project.c (original)
+++ trunk/src/brasero-project.c Wed Oct 1 12:18:07 2008
@@ -251,7 +251,6 @@
static GObjectClass *parent_class = NULL;
-#define BRASERO_PROJECT_SPACING 6
#define BRASERO_PROJECT_SIZE_WIDGET_BORDER 1
#define BRASERO_KEY_SHOW_PREVIEW "/apps/brasero/display/viewer"
@@ -334,8 +333,10 @@
gint *center,
gint *footer)
{
- *footer = BRASERO_PROJECT (object)->priv->name_display->allocation.height +
- BRASERO_PROJECT_SPACING * 2 + BRASERO_PROJECT_SIZE_WIDGET_BORDER * 2;
+ if (!BRASERO_PROJECT (object)->priv->name_display)
+ return;
+
+ *footer = BRASERO_PROJECT (object)->priv->name_display->parent->allocation.height;
}
static void
@@ -400,11 +401,14 @@
/* bottom */
box = gtk_hbox_new (FALSE, 6);
+ gtk_container_set_border_width (GTK_CONTAINER (box), 4);
gtk_widget_show (box);
- gtk_box_pack_end (GTK_BOX (obj), box, FALSE, TRUE, BRASERO_PROJECT_SPACING);
+ gtk_box_pack_end (GTK_BOX (obj), box, FALSE, TRUE, 0);
/* Name widget */
label = gtk_label_new_with_mnemonic (_("_Name:"));
+ gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
+ gtk_misc_set_padding (GTK_MISC (label), 6, 0);
gtk_widget_show (label);
gtk_box_pack_start (GTK_BOX (box), label, FALSE, TRUE, 0);
@@ -412,7 +416,9 @@
gtk_widget_show (obj->priv->name_display);
gtk_box_pack_start (GTK_BOX (box), obj->priv->name_display, TRUE, TRUE, 0);
obj->priv->empty = 1;
-
+
+ gtk_label_set_mnemonic_widget (GTK_LABEL (label), obj->priv->name_display);
+
/* burn button set insensitive since there are no files in the selection */
size_group = gtk_size_group_new (GTK_SIZE_GROUP_BOTH);
obj->priv->burn = brasero_utils_make_button (_("_Burn..."),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]