How do I left justify



How do I left justify objects placed into a list?

Snippett:

  qsort(clist,ncells,64,strcmp);
  for (i = 0; i < ncells; i++)
  {
    gchar         *string ;
    GtkWidget     *label
                  ,*list_item
    ;
    cp = clist[i];
    if (! strcmp("BARINFO",cp)) continue;
    label     = gtk_label_new(cp);
    list_item = gtk_list_item_new();
    gtk_container_add(GTK_CONTAINER(list_item), label);
    gtk_widget_show(label);
    gtk_container_add(GTK_CONTAINER(list), list_item);
    gtk_widget_show(list_item);
    gtk_label_get(GTK_LABEL(label), &string);
    gtk_object_set_data(GTK_OBJECT(list_item),
                        list_item_data_key,
                        string);
  }
  gtk_widget_show(mw);





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]