]> Pileus Git - ~andy/gtk/blobdiff - tests/testbuttons.c
stylecontext: Do invalidation on first resize container
[~andy/gtk] / tests / testbuttons.c
index fe19534ac1379d0eacc69b17b940a8d45e567354..74392f50136f89cbf6421630c1dee53732a77c0b 100644 (file)
@@ -12,9 +12,7 @@
  * Library General Public License for more details.
  *
  * You should have received a copy of the GNU Library 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/>.
  */
 
 #include <gtk/gtk.h>
@@ -32,11 +30,11 @@ int main (int argc, char *argv[])
 
        window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
 
-       box = gtk_vbox_new (0, FALSE);
+       box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
 
        gtk_container_add (GTK_CONTAINER (window), box);
 
-       hbox = gtk_hbox_new (0, FALSE);
+       hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
        gtk_container_add (GTK_CONTAINER (box), hbox);
        button = gtk_button_new_from_stock (GTK_STOCK_SAVE);
        gtk_container_add (GTK_CONTAINER (hbox), button);
@@ -52,7 +50,7 @@ int main (int argc, char *argv[])
        g_free (text);
        gtk_container_add (GTK_CONTAINER (hbox), label);
 
-       hbox = gtk_hbox_new (0, FALSE);
+       hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
        gtk_container_add (GTK_CONTAINER (box), hbox);
        button = g_object_new (GTK_TYPE_BUTTON,
                                "label", "document-save",
@@ -71,7 +69,7 @@ int main (int argc, char *argv[])
        g_free (text);
        gtk_container_add (GTK_CONTAINER (hbox), label);
 
-       hbox = gtk_hbox_new (0, FALSE);
+       hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
        gtk_container_add (GTK_CONTAINER (box), hbox);
        button = gtk_button_new_with_label ("_Save");
        gtk_container_add (GTK_CONTAINER (hbox), button);
@@ -87,7 +85,7 @@ int main (int argc, char *argv[])
        g_free (text);
        gtk_container_add (GTK_CONTAINER (hbox), label);
 
-       hbox = gtk_hbox_new (0, FALSE);
+       hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
        gtk_container_add (GTK_CONTAINER (box), hbox);
        button = gtk_button_new_with_mnemonic ("_Save");
        gtk_container_add (GTK_CONTAINER (hbox), button);
@@ -103,7 +101,7 @@ int main (int argc, char *argv[])
        g_free (text);
        gtk_container_add (GTK_CONTAINER (hbox), label);
 
-       hbox = gtk_hbox_new (0, FALSE);
+       hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
        gtk_container_add (GTK_CONTAINER (box), hbox);
        button = gtk_button_new_with_label ("_Save");
        gtk_button_set_image (GTK_BUTTON (button), gtk_image_new_from_stock (GTK_STOCK_ABOUT, GTK_ICON_SIZE_BUTTON));
@@ -120,7 +118,7 @@ int main (int argc, char *argv[])
        g_free (text);
        gtk_container_add (GTK_CONTAINER (hbox), label);
 
-       hbox = gtk_hbox_new (0, FALSE);
+       hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
        gtk_container_add (GTK_CONTAINER (box), hbox);
        button = gtk_button_new_with_mnemonic ("_Save");
        gtk_button_set_image (GTK_BUTTON (button), gtk_image_new_from_stock (GTK_STOCK_ABOUT, GTK_ICON_SIZE_BUTTON));