par_width = ghb_dict_get_int(ud->settings, "PicturePARWidth");
par_height = ghb_dict_get_int(ud->settings, "PicturePARHeight");
- text = g_strdup_printf("%dx%d storage, %dx%d display",
- width, height, display_width, display_height);
- widget = GHB_WIDGET(ud->builder, "dimensions_summary");
- gtk_label_set_text(GTK_LABEL(widget), text);
- g_free(text);
-
display_aspect = ghb_get_display_aspect_string(display_width,
display_height);
- text = g_strdup_printf("%d:%d PAR, %s DAR",
+ text = g_strdup_printf("%dx%d storage, %dx%d display\n"
+ "%d:%d PAR, %s DAR",
+ width, height, display_width, display_height,
par_width, par_height, display_aspect);
- widget = GHB_WIDGET(ud->builder, "aspect_summary");
+ widget = GHB_WIDGET(ud->builder, "dimensions_summary");
gtk_label_set_text(GTK_LABEL(widget), text);
+
g_free(text);
g_free(display_aspect);
}
<property name="height">4</property>
</packing>
</child>
+ <child>
+ <object class="GtkLabel" id="dimensions_summary_label">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes"><b>Size:</b></property>
+ <property name="use_markup">True</property>
+ <property name="halign">start</property>
+ <property name="xalign">0</property>
+ <property name="yalign">0</property>
+ <property name="hexpand">False</property>
+ <property name="margin-top">12</property>
+ </object>
+ <packing>
+ <property name="top_attach">14</property>
+ <property name="left_attach">0</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="dimensions_summary">
+ <property name="width_request">85</property>
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="xalign">0</property>
+ <property name="yalign">0</property>
+ <property name="hexpand">False</property>
+ <property name="margin-top">12</property>
+ <property name="label" translatable="yes">--</property>
+ </object>
+ <packing>
+ <property name="top_attach">14</property>
+ <property name="left_attach">1</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
</object>
<packing>
<property name="expand">False</property>
<property name="position">0</property>
</packing>
</child>
- <child>
- <object class="GtkGrid" id="dimensions_summary_table">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="halign">center</property>
- <property name="valign">start</property>
- <property name="column-spacing">6</property>
- <child>
- <object class="GtkLabel" id="dimensions_summary_label">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">Dimensions:</property>
- <property name="halign">start</property>
- <property name="xalign">0</property>
- </object>
- <packing>
- <property name="top_attach">0</property>
- <property name="left_attach">0</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkLabel" id="dimensions_summary">
- <property name="width_request">85</property>
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="halign">start</property>
- <property name="valign">start</property>
- <property name="label" translatable="yes">--</property>
- </object>
- <packing>
- <property name="top_attach">0</property>
- <property name="left_attach">1</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkLabel" id="aspect_summary_label">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="label" translatable="yes">Aspect Ratio:</property>
- <property name="halign">start</property>
- <property name="xalign">0</property>
- </object>
- <packing>
- <property name="top_attach">1</property>
- <property name="left_attach">0</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- <child>
- <object class="GtkLabel" id="aspect_summary">
- <property name="width_request">85</property>
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="halign">start</property>
- <property name="valign">start</property>
- <property name="label" translatable="yes">--</property>
- </object>
- <packing>
- <property name="top_attach">1</property>
- <property name="left_attach">1</property>
- <property name="width">1</property>
- <property name="height">1</property>
- </packing>
- </child>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">1</property>
- </packing>
- </child>
</object>
<packing>
<property name="expand">True</property>