fix warning and add aspect frame

This commit is contained in:
Vivianne 2022-03-19 05:57:20 -07:00
parent 2b8624f7f5
commit 35b69747e8
2 changed files with 7 additions and 7 deletions

View File

@ -768,13 +768,13 @@
<property name="margin-start">3</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkBox" id="preview">
<property name="width-request">300</property>
<property name="height-request">200</property>
<object class="GtkAspectFrame" id="preview">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-bottom">5</property>
<property name="orientation">vertical</property>
<property name="label-xalign">0</property>
<property name="shadow-type">none</property>
<property name="ratio">1.3300000429153442</property>
<property name="obey-child">False</property>
<child>
<placeholder/>
</child>

View File

@ -64,10 +64,10 @@ namespace Deskcandy {
}
this.socket = new Gtk.Socket();
this.socket.realize();
this.socket.expand = true;
this.socket.visible = true;
this.preview.add(this.socket);
this.socket.visible = true;
this.socket.realize();
try {
this.proc = candy.launch((uint)this.socket.get_id(), name);