fix: noconfirm auto-selects first AUR match
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
res = gnome.compile_resources('testui',
|
||||
'test-resources.xml',
|
||||
source_dir : '.')
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<gresources>
|
||||
<gresource prefix="/org/Meson">
|
||||
<file compressed="true" preprocess="xml-stripblanks">test.ui</file>
|
||||
</gresource>
|
||||
</gresources>
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<!-- interface-requires gtk+ 3.8 -->
|
||||
<template class="TestWidget" parent="GtkBox">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<property name="spacing">4</property>
|
||||
<child>
|
||||
<object class="GtkEntry" id="entry">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="position">0</property>
|
||||
</packing>
|
||||
</child>
|
||||
</template>
|
||||
</interface>
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
project('test glib target version and gresources', 'c', 'vala')
|
||||
|
||||
gnome = import('gnome')
|
||||
|
||||
glib = dependency('glib-2.0', version : '>=2.38')
|
||||
gtk = dependency('gtk+-3.0')
|
||||
|
||||
subdir('gres')
|
||||
|
||||
e = executable('gtktemplate', 'test.vala', res, dependencies : [glib, gtk])
|
||||
# No X on the CI, so disable this for now
|
||||
#test('test-target-glib', e)
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
using Gtk;
|
||||
using GLib;
|
||||
|
||||
[GtkTemplate (ui = "/org/Meson/test.ui")]
|
||||
public class TestWidget : Box {
|
||||
public string text {
|
||||
get { return entry.text; }
|
||||
set { entry.text = value; }
|
||||
}
|
||||
|
||||
[GtkChild]
|
||||
private unowned Entry entry;
|
||||
|
||||
public TestWidget (string text) {
|
||||
this.text = text;
|
||||
}
|
||||
}
|
||||
|
||||
void main(string[] args) {
|
||||
Gtk.init (ref args);
|
||||
var win = new Window();
|
||||
win.destroy.connect (Gtk.main_quit);
|
||||
|
||||
var widget = new TestWidget ("SOME TEXT HERE");
|
||||
|
||||
win.add (widget);
|
||||
win.show_all ();
|
||||
|
||||
/* Exit immediately */
|
||||
Timeout.add_full (Priority.DEFAULT_IDLE, 1, () =>
|
||||
{
|
||||
Gtk.main_quit();
|
||||
return false;
|
||||
});
|
||||
|
||||
Gtk.main ();
|
||||
}
|
||||
Reference in New Issue
Block a user