]> Pileus Git - ~andy/gtk/blobdiff - tests/testverticalcells.c
stylecontext: Do invalidation on first resize container
[~andy/gtk] / tests / testverticalcells.c
index 81a586abc03e16da4f5f7e326c857ba877414514..07cdd4ef98995172fee4bd71dae8ee969d0beab3 100644 (file)
@@ -16,9 +16,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 "config.h"
@@ -129,6 +127,7 @@ static TreeEntry other_entries[] =
       99,
       NULL
     },
+    { 0, },
   };
 
 static TreeEntry add_entries[] =
@@ -302,6 +301,9 @@ main (gint argc, gchar **argv)
   
   gtk_init (&argc, &argv);
 
+  if (g_getenv ("RTL"))
+    gtk_widget_set_default_direction (GTK_TEXT_DIR_RTL);
+
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
   gtk_window_set_title (GTK_WINDOW (window), "Vertical cells in GtkTreeViewColumn example");
   g_signal_connect (window, "destroy", gtk_main_quit, NULL);
@@ -339,7 +341,7 @@ main (gint argc, gchar **argv)
   gtk_orientable_set_orientation (GTK_ORIENTABLE (area), GTK_ORIENTATION_VERTICAL);
 
   renderer = gtk_cell_renderer_text_new ();
-  g_object_set (renderer, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
+  g_object_set (renderer, "ellipsize", PANGO_ELLIPSIZE_END, "editable", TRUE, NULL);
   gtk_tree_view_column_pack_start (column, renderer, TRUE);
   gtk_tree_view_column_set_attributes (column, renderer,
                                       "text", DESCRIPTION_COLUMN,