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

View file

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