testsuite: Stop setting :has-focus
This is not necessary, whenever we want to set the initial focus in a ui file, we can set GtkWindow:focus-widget.
This commit is contained in:
@@ -1403,9 +1403,9 @@ test_widget (void)
|
||||
const gchar *buffer =
|
||||
"<interface>"
|
||||
" <object class=\"GtkWindow\" id=\"window1\">"
|
||||
" <property name=\"focus-widget\">button1</property>"
|
||||
" <child>"
|
||||
" <object class=\"GtkButton\" id=\"button1\">"
|
||||
" <property name=\"has-focus\">True</property>"
|
||||
" </object>"
|
||||
" </child>"
|
||||
" </object>"
|
||||
@@ -1473,9 +1473,7 @@ test_widget (void)
|
||||
builder = builder_new_from_string (buffer, -1, NULL);
|
||||
button1 = gtk_builder_get_object (builder, "button1");
|
||||
|
||||
#if 0
|
||||
g_assert (gtk_widget_has_focus (GTK_WIDGET (button1)));
|
||||
#endif
|
||||
window1 = gtk_builder_get_object (builder, "window1");
|
||||
gtk_widget_destroy (GTK_WIDGET (window1));
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
<child>
|
||||
<object class="GtkButton" id="button1">
|
||||
<property name="name">reference</property>
|
||||
<property name="has_focus">1</property>
|
||||
<property name="receives_default">1</property>
|
||||
<style>
|
||||
<class name="button-not-image"/>
|
||||
@@ -13,7 +12,6 @@
|
||||
<child>
|
||||
<object class="GtkButton" id="button2">
|
||||
<property name="name">reference</property>
|
||||
<property name="has_focus">1</property>
|
||||
<property name="receives_default">1</property>
|
||||
<style>
|
||||
<class name="button-not-image2"/>
|
||||
@@ -22,7 +20,6 @@
|
||||
<object class="GtkButton" id="button3">
|
||||
<property name="name">reference</property>
|
||||
<property name="label" translatable="yes">Hello World</property>
|
||||
<property name="has_focus">1</property>
|
||||
<property name="receives_default">1</property>
|
||||
<style>
|
||||
<class name="button-not-image3"/>
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
<object class="GtkButton" id="button1">
|
||||
<property name="name">reference</property>
|
||||
<property name="label" translatable="yes">Hello World</property>
|
||||
<property name="has_focus">1</property>
|
||||
<property name="receives_default">1</property>
|
||||
<style>
|
||||
<class name="button-image"/>
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
<interface>
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="decorated">0</property>
|
||||
<property name="focus-widget">button1</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="button1">
|
||||
<property name="name">reference</property>
|
||||
<property name="label" translatable="yes">Hello World</property>
|
||||
<property name="has_focus">1</property>
|
||||
<property name="receives_default">1</property>
|
||||
<style>
|
||||
<class name="button-not-image"/>
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
<interface>
|
||||
<object class="GtkWindow" id="window1">
|
||||
<property name="decorated">0</property>
|
||||
<property name="focus-widget">button1</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="button1">
|
||||
<property name="name">reference</property>
|
||||
<property name="label" translatable="yes">Hello World</property>
|
||||
<property name="has_focus">1</property>
|
||||
<property name="receives_default">1</property>
|
||||
<style>
|
||||
<class name="button-image"/>
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
<object class="GtkButton" id="button1">
|
||||
<property name="name">reference</property>
|
||||
<property name="label" translatable="yes">Hello World</property>
|
||||
<property name="has_focus">1</property>
|
||||
<property name="receives_default">1</property>
|
||||
<style>
|
||||
<class name="testinherit"/>
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
<object class="GtkButton" id="button1">
|
||||
<property name="name">reference</property>
|
||||
<property name="label" translatable="yes">Hello World</property>
|
||||
<property name="has_focus">1</property>
|
||||
<property name="receives_default">1</property>
|
||||
</object>
|
||||
</child>
|
||||
|
||||
Reference in New Issue
Block a user