]> Pileus Git - ~andy/gtk/blobdiff - gtk/tests/expander.c
filechooserbutton: Do not propagate state from the dialog unless it is active
[~andy/gtk] / gtk / tests / expander.c
index 853b20aada74f87396f7f5c7c85dcb8e0df98158..87b915f683cc978551885972e2bafc91062bfc39 100644 (file)
@@ -12,9 +12,7 @@
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
  */
 
 /*
@@ -34,7 +32,7 @@ test_click_expander (void)
   gboolean expanded;
   gboolean simsuccess;
   gtk_container_add (GTK_CONTAINER (expander), label);
-  gtk_container_add (GTK_CONTAINER (GTK_BIN (window)->child), expander);
+  gtk_container_add (GTK_CONTAINER (gtk_bin_get_child (GTK_BIN (window))), expander);
   gtk_widget_show (expander);
   gtk_widget_show (label);
   gtk_widget_show_now (window);
@@ -66,7 +64,7 @@ test_click_content_widget (void)
   gboolean expanded;
   gboolean simsuccess;
   gtk_container_add (GTK_CONTAINER (expander), entry);
-  gtk_container_add (GTK_CONTAINER (GTK_BIN (window)->child), expander);
+  gtk_container_add (GTK_CONTAINER (gtk_bin_get_child (GTK_BIN (window))), expander);
   gtk_expander_set_expanded (GTK_EXPANDER (expander), TRUE);
   gtk_widget_show (expander);
   gtk_widget_show (entry);